简体   繁体   English

打开Tizen TV时如何启动网络应用程序?

[英]How can I start a web app when I open my Tizen TV?

I have a web app for a Tizen TV. 我有一个Tizen电视的网络应用程序。 How can I make so that the app starts when the TV opens ? 如何在电视打开时启动应用程序? Thanks. 谢谢。

Assuming it is as described a Web Application: 假设它是描述的Web应用程序:

Your app needs to be uploaded somewhere in form of a .wgt archive. 您的应用需要以.wgt存档的形式上传到某处。 There must also be an sssp_config.xml, which tells the display what widget to use as well as some basic settings, as soon as the display connects to wherever you uploaded the .wgt as well as the .xml. 还必须有一个sssp_config.xml,它告诉显示器使用哪个小部件以及一些基本设置,只要显示连接到您上传.wgt和.xml的位置。

In the display settings you need to turn off "choose source automatically" and choose URL launcher as source. 在显示设置中,您需要关闭“自动选择源”并选择URL启动器作为源。 Also set it as the default option in the display menu. 同时将其设置为显示菜单中的默认选项。 Finally in the URL launcher settings you need to set the URL to your .wgt/.xml, so that the display can download the app. 最后,在URL启动器设置中,您需要将URL设置为.wgt / .xml,以便显示器可以下载应用程序。

From what I've seen this will work if you have your application running when the display is going into standby. 从我看到的情况来看,如果你的应用程序在显示器进入待机状态时运行,它将会起作用。 On startup it will connect to the adress by default, update the app if the sssp_config.xml dictates so and then launch the app. 在启动时,它将默认连接到地址,如果sssp_config.xml指示,则更新应用程序,然后启动应用程序。

I have however not found an option to reliably force the usage of the URL launcher if the source has been changed somehow. 但是,如果源已经以某种方式更改,我没有找到可靠地强制使用URL启动器的选项。

Here is the Solution, 这是解决方案,

1.Take the .wgt file and upload in to Server and add sssp_config.xml. 1.获取.wgt文件并上传到服务器并添加sssp_config.xml。

2.In sssp_config.xml,add your wgt name and version of the app. 2.在sssp_config.xml中,添加您的wgt名称和应用程序版本。

Code below: 代码如下:

<?xml version="1.0" encoding="UTF-8"?>
<widget>
<ver>Your Version Number</ver>
<size>80</size>
<widgetname>Project name</widgetname>
</widget>

3.Go to tizen tv,tab on URl setting button. 3.转到tizen tv,选择URl设置按钮。

4.Enter your Server Address till the folder. 4.输入您的服务器地址直到该文件夹​​。

Example: localhost/8080/tizen(Folder contain .wgt file) 示例:localhost / 8080 / tizen(文件夹包含.wgt文件)

5.Finally , Tap on URL Launcher. 5.最后,点击URL启动器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM