4waytechnologies
4 Way Technologies is a premium IT services company that develops web, mobile, and SMART TV applications using cutting-edge technologies like React, Node.JS, Deno, Go lang, AWS, and AEM. We establish our thought leadership by sharing content and insights around technology.
4 Way Technologies is a leading Samsung TV App Development Company across the globe. We have expert teams of developers who are proficient in delivering you the robust, feature-rich, and powerful Samsung TV applications. We provide a number of impeccable services to our customers such as migration of your legacy systems to Cloud, security, future support, complete application management, and more. These services are responsible for increasing the growth of your business and outperforming your competitors.
The Samsung TV app development is developed using HTML and CSS. When the native component of the Smart TV is not being used, it is used in developing the application for it to run on the different Smart TV’s like the Tizen, LG, Opera, Smart Alliance, Orsay.
This article will help you in understanding the steps required to convert a Tizen-based application to Orsay.
The Samsung TV app developer requires the Tizen code and the Samsung Smart TV SDK along with the IDE. Additionally, the Samsung TV app developer will need to have immense knowledge about HTML, JavaScript, AngularJS, and CSS. Just like the Samsung TV app development process, there are some necessary steps required for the conversion of the Tizen application to the Orsay.
So, let’s dive in!
The other file config.xml is the one that has the complete configuration of the entire project. The Samsung TV app developer will now delete the config file of the Tizen application and paste the contents in the project created.
1
<script src=”$WEBAPIS/webapis/webapis.js” type=”text/javascript”></script>
1
<!– Common widget API–><script type=”text/javascript”
1
src=”$MANAGER_WIDGET/Common/API/Plugin.js”></script>
1
<script type=”text/javascript” language=”javascript” src=”$MANAGER_WIDGET/Common/API/TVKeyValue.js”></script>
1
<!– Caph Library –>
1
<script src=”$CAPH/1.0.0/caph-level1-unified.min.js” type=”text/javascript”></script>
The function is then added to the onload of the body section to start the application.
1
<body onload=”func_onLoad();”> </body>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script>
var flag = false;
var widgetAPI = new Common.API.Widget();
var pluginAPI = new Common.API.Plugin();
function func_onLoad()
{
if (typeof curWidget != ‘undefined’)
{
curWidget.setPreference(“ready”, “true”);
}
if (!caph.platform.dtv.Browser
|| caph.platform.dtv.Browser.browserType().sectvbd)
{
}
else
{
widgetAPI.sendReadyEvent();
}
}
window.onShow = function(e);
{
if (flag === false)
{
flag = true;
widgetAPI.sendReadyEvent();
}}
</script>
1
2
3
4
5
6
7
var tvKeyOrsay = new Common.API.TVKeyValue();
var tvKey =
{
KEY_RETURN : tvKeyOrsay.KEY_RETURN,
KEY_PANEL_RETURN : tvKeyOrsay.KEY_PANEL_RETURN,
KEY_EXIT : tvKeyOrsay.KEY_EXIT
};
1
2
3
4
5
6
7
8
9
window.addEventListener(“keydown”, function (event)
{
switch (event.keyCode)
{
case tvKey.KEY_RETURN:
var widgetAPI = new Common.API.Widget();
widgetAPI.blockNavigation(event);
break;
}}
1
2
3
4
5
6
7
8
9
10
window.addEventListener (“keydown”, function (event)
{
switch (event.keyCode)
{
case tvKey.KEY_EXIT:
var widgetAPI = new Common.API.Widget();
widgetAPI.sendExitEvent(event);
break;
}
}
For the Samsung app development, the above steps should be followed sequentially to convert the Tizen application to Orsay. Features like network connection scanning, keyboard handling, application resolution can also be achieved to utilize the full advantages of the Android TV app development.
Few of the points to be noticed for the Samsung TV app developer during this conversion is to always include the platform dependent features in a single place, prefer creating unique platform dependent functions to perform the various operations like the return, exit etc.
We hope you will find this tutorial helpful. After going through the above-mentioned approaches, you as a Samsung TV app developer can easily convert Tizen to Samsung TV application development medium like Orsay thereby converting applications for different Smart TVs. Please provide your valuable feedback in the comment section below.