Languages

Menu
Sites
Language
VideoPlayer AppControl

Hi all,

I am trying to start VideoPlayer

String uri = "http://video.sport-express.ru/userfiles/videoreports/23/23746.mp4";
AppControl* pAc = AppManager::FindAppControlN(L"tizen.videoplayer", L"http://tizen.org/appcontrol/operation/view");
String mime = L"video/*";
if (pAc)
{
	pAc->Start(&uri, &mime, null, null);
	delete pAc;
}

However, I see this message "Unsupported format".

What's wrong?

Thanks.

 

Update: SDK Tizen 2.2. Device RD-PQ with Tizen 2.2.0.

Edited by: Ruslan on 10 Oct, 2013

Responses

8 Replies
Shilpa N S

I guess the MIME type should be "video/mp4".

Ruslan

Thanks for your answer, but it does not help.

Shilpa N S

Does this happen for only the above mentioned uri or for all ?

Ruslan

For all.

And this uri opened in Tizen 2.1.

Alex Ashirov

Are you able to download and play this file locally (not via the Internet)?

Ruslan

I am trying now. And this file don't play locally.

But it's working in version 2.1!

when the video player deos not find the file, it will show the "unsupported file type error"

This code plays video file locally - tested and works

 

----------------------------------

String uri = String(L"file://") + App::GetInstance()->GetAppSharedPath()
                    + "data/test.mp4";

            AppControl* pAc = AppManager::FindAppControlN(L"tizen.videoplayer",
                    L"http://tizen.org/appcontrol/operation/view");
            if (pAc) {
                pAc->Start(&uri, null, null, null);
                delete pAc;
            }

-----------------------------------

hmm I have never tried to play video file online but maybe you need to find the correct uri string format.. maybe replace (file://) with (uri://) ...

 

 

hgw7

I guess videoplayer appcontrol doesn't support http streaming. Maybe player class can be used.