There are common elements within the two platforms' app structures:
config and metadata files
index.html
CSS files
files and folders of any required payload
A payloaded App's contents look very similar to an App destined to work with a hosted SDK and player location. In the diagrams below, green highlighted folders and files are what makes the payload difference. The configuration and metadata also differ to indicate whether the Web App is found within the App payload or whether it redirects to a hosted site. Each of the key files' contents are described below.
Tizen
Click here to see the Tizen diagram.
Tizen payload
The config.xml here lists the App requirements and privileges, including the permitted navigation domains. The <content> XML field directs the App to the internal index.html.
This is supported by the index.html and any JavaScript and CSS needed to support the presentation of the entry page. Our simple example contains minimal text and icons with hyperlinks to the Web Apps within the payload folders.
Click here to see the Tizen payload index.html.
tizen payload index.html
XML
<!DOCTYPE html>
<html lang="en-gb" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Nagra webOS Demo App</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body><center>
<img src="https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/OpenTV_Player.svg">
<h1>Nagra CONNECT Player Demo App</h1>
<img width="25%" src="https://download.tizen.org/misc/Tizen-Brand/01-Primary-Assets/Lockup/On-Light/01-RGB/Tizen-Lockup-On-Light-RGB.png">
<p>
<a href="webapp-connecttv/index.html"><img src="
https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/Connected_TV.svg">opy-sdk-js Webapp embedded within payload of App</a>
</p>
<p>
<a href="example-code/index.html">opy-sdk-js Example Code embedded within payload of App<img src="
https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/Development_Tools.svg"></a>
</p>
<p>
<a href="dasc/sample_application/index.html"><img src="https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/ENABLE.svg">das-web-client Sample Application embedded within payload of App</a>
</p>
<p>
<a
href="https://otvplayer.nagra.com/demo/html5/latest/connecttv-router/"
>Browse to Hosted versions<img src="https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/Cloud_TV.svg"></a
>
</p></center>
</body>
</html>
Tizen hosted
The config.xml here again lists the simpler App requirements and privileges. However, the significant difference is the <content> XML field, which directs the App to the hosted URL and renders the index.html effectively redundant.
The appInfo.json file determines whether this is a Web or Native App via the type field, and the main field directs the App to the index.html file within the App.
The index.html then provides the HTML and any JavaScript and CSS needed to support the entry page's presentation. The simple example contains only minimal text and icons with hyperlinks to the Web Apps within the payload folders.
Click here to see the webOS payload index.html.
webOS payload index.html
XML
<!DOCTYPE html>
<html lang="en-gb" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Nagra webOS Demo App</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body><center>
<img src="https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/OpenTV_Player.svg">
<h1>Nagra CONNECT Player Demo App</h1>
<img src="https://upload.wikimedia.org/wikipedia/commons/5/59/LG_WebOS_New.svg">
<p>
<a href="webapp-connecttv/index.html"><img src="
https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/Connected_TV.svg">opy-sdk-js Webapp embedded within payload of App</a>
</p>
<p>
<a href="example-code/index.html">opy-sdk-js Example Code embedded within payload of App<img src="
https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/Development_Tools.svg"></a>
</p>
<p>
<a href="dasc/sample_application/index.html"><img src="https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/ENABLE.svg">das-web-client Sample Application embedded within payload of App</a>
</p>
<p>
<a
href="https://otvplayer.nagra.com/demo/html5/latest/connecttv-router/"
>Browse to Hosted versions<img src="https://docs.nagra.com/sites/default/files/svg_icons/icons_blue/Cloud_TV.svg"></a
>
</p></center>
</body>
</html>
webOS hosted
The appInfo.json file will be identical to the payloaded example. The only difference for hosted is that the index.html file directs the App to the hosted URL specified.