Languages

Menu
Sites
Language
Tizen TV Native Player ApplicationId

Hello,

I need tizen TV native player's ApplicationId, so that I'll be able to call it from launchAppControl.
 

void launchAppControl(ApplicationControl appControl,
                          optional ApplicationId? id,
                          optional SuccessCallback? successCallback,
                          optional ErrorCallback? errorCallback,
                          optional ApplicationControlDataArrayReplyCallback? replyCallback) raises(WebAPIException);
Can someone please write it here?

Thanks!

 

 

Responses

4 Replies
Armaan-Ul- Islam

Hello,

To get the application id of installed/available application you may use tizen.application.getAppsInfo() function. It gets the list of installed applications information on a device. Now you can try matching the specific app name from applist & get the desired app id.

function onListInstalledApps(applications) {
      var DesiredAppName="player";
      for (var i = 0; i < applications.length; i++){
       var appname=applications.name;
       if(appname.indexOf(DesiredAppName) !== -1)   //string matching
           console.log("Desired app ID : " + applications[i].id);
      }
  }

  tizen.application.getAppsInfo(onListInstalledApps);

For further reference or alternatives :

Application API

https://www.samsungdforum.com/TizenApiGuide/tizen861/index.html

Thank you.

Fragin

Thanks for answering!

I followed your solution, and got the following App Ids:

Desired app ID : org.tizen.mycontent-photo-player-tv
Desired app ID : org.tizen.photo-player-tv
Desired app ID : org.tizen.ontimer-player-tv
Desired app ID : org.tizen.video-player-tv
Desired app ID : org.tizen.gplayerlauncher

and none of them is the native player.

I launched them with the following command:

tizen.application.launch(AppId, onSuccess, onError)

and nothing happened.

When I launched "org.tizen.browser" the browser opened, so the command is correct.

Armaan-Ul- Islam

Please make sure you are using these priviledges

application.info :Allows the application to retrieve information related to other applications.

application.launch : Allows the application to open other applications using the application ID or application control.

 

Try to detect what kind of error you are facing while launching application using application.launch()

function onLaunchSuccess() {
      console.log("The application has launched successfully");
  }

function onLaunchError(error) {
      console.log("The application was not launched");
      console.log('Launch error: ' +  error);
  }


  // let's assume that application "targetApp0.main" has been installed
  tizen.application.launch("org.tizen.video-player-tv", onLaunchSuccess,onLaunchError);

 You would find the error in the console log if any.

 

Fragin

That's exactly what I've done.
The problem is that I don't receive an error, but the success message

"The application has launched successfully"

Maybe it's not a standalone application, but an inner service that listens for incomming requests and plays them.

According to a site I found, it's only a part of the TV application:

 

<group>
<id>tv-application</id>
<name>TV Application</name>
<description>TV Application</description>
<uservisible>true</uservisible>
<packagelist>
<packagereq type="default">org.tizen.homescreen-tv-ref</packagereq>
<packagereq type="default">org.tizen.video-player-tv-ref</packagereq>
<packagereq type="default">app-content-provider</packagereq>
<packagereq type="default">app-content-favorite</packagereq>
<packagereq type="default">application-common</packagereq>
<packagereq type="default">org.tizen.file-browser-tv-ref</packagereq>
<packagereq type="default">org.tizen.gallery-tv-ref</packagereq>
<packagereq type="default">org.tizen.music-player-tv-ref</packagereq>
<packagereq type="default">org.tizen.source-list-tv-ref</packagereq>
<packagereq type="default">org.tizen.live-tv-ref</packagereq>
<packagereq type="default">org.tizen.noti-agent-tv-ref</packagereq>
<packagereq type="default">org.tizen.settings-tv-ref</packagereq>
<packagereq type="default">org.tizen.app-launcher-tv-ref</packagereq>
<packagereq type="default">app-content-history</packagereq>
<packagereq type="default">app-content-category</packagereq>
<packagereq type="default">org.tizen.setup-wizard-tv-ref</packagereq>
<packagereq type="default">app-installers</packagereq>
<packagereq type="default">tpk-backend</packagereq>
<packagereq type="default">wgt-backend</packagereq>
</packagelist>
</group>