语言

Menu
Sites
Language
Video Player

Hello,

We are trying to play a MP4 video from internet in the native Tizen video player using AppControl.

The video player launches then display the following error : "Unsupported file type"

We tried with several MP4 files.

Do you have a sample URL that works with Tizen media player ?

What are the video codec/format specification for Tizen ?

响应

2 回复
Raghavendra Reddy Shiva

Currently the "appControl" just supports the "file" Scheme ONLY, i.e only local files (on device or emulator) can be played by launching the native media player using appControl method. The support for "https" or "https" Scheme isn't available for audio and video files.

Just for info, if not tried. The below code worked for me for local file,

function onSuccessCallback(network) {
    console.log("video player launched");
}

function onErrorCallback(error) {
    console.log("An error occurred launching video player");
}

function PlayVideo()  {    
   var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view",
        "file:///opt/usr/media/Videos/video003.mp4",
        "video/*", null , null);

   tizen.application.launchAppControl(appControl, null, onSuccessCallback, onErrorCallback, null);

}

The mp4 file was copied and is available in device's "/opt/usr/media/Videos/" directory.

Also refer here, for the supported multimedia formats.
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/guide/media/media_namespace.htm