Getting additional information from Samsung Smart TV

Samsung Smart TV

In this article, we are going to discuss on getting some additional TV information from a Samsung Smart TV environment. In my previous article we have discussed on stuff like finding the product information and resizing the TV display etc. Here we will take on the Application Manager api a little bit further by getting some extra information from the Samsung Smart TV. The extra information includes the stuff like country code, language code, region code, product category etc. For this article, i am going to assume that the Samsung Smart TV development environment is set up and the user is able to create a basic Samsung Smart TV JavaScript application. For those of you who have no idea of what is it, the following link will give you a basic idea of how to do it.

 Samsung Smart TV development

A little bit introduction

We will go and take a look at how the mechanics on how the Smart TV environment will detect the extra information using the Application Manager. As we all know that the Samsung Smart TV runs the applications as full fledged web applications with some external add-on libraries for accessing the TV related functionalities. The applications are run inside a webkit based JavaScript engine that processes and renders the application in the TV screen. So every web application can be accessed by a web URL. This URL has some parameters passed along with it when invoking or accessing the corresponding application. These parameters can be accessed and manipulated by the current active application. The areas like language code, region code, area code etc are passed by the TV application manager to the current active application. The TV application manager manages almost all the areas of the application including startup of application, memory management, resource allocation etc. When the extra information is passed as URL parameters the active application can get hold of those params using the Application Manager.



The web application parameters can be accessed using the window.location.search object. This will give the list of the attributes and their values that provide useful information regarding the TV and the current application. The following are the values list, their names and what they indicate in a Samsung Smart TV environment perspective.

country
The assigned country code

language
Replaced with lang attribute

modelid
The Samsung Smart TV model id

server
The type of server environment that runs the current application. The application is run by a browser engine. This browser will be getting the content for display from a server environment. The server environment runs in two modes. They are operational mode and development mode. These are the two values for this parameter.

remocon
This variable has not any documented use so far.

area
Region code that has been assigned to this application when running. Probably may be used for tracking purposes.

id
The id that is assigned to the application, after getting into the application through the SSO(single sign on) process. This id should be assigned after the URL decoding process is done. This will help in boosting up the application security to a certain level.

pw
The password that is given during an sso operation. This is passed to the application after the successful login through sso. This should also be used after the url decode operation is completed.

Project
The type of the product in which the current application is running. The product type ranges from TV, monitor, set top box etc



mgrver
The minimum required server version that is needed for running your application. The application will not be enabled when the current running web server is lesser than the specified version.

payload
Additional information that is necessary and supplied along with the app that helps in its smooth running. The payload ranges from resource files, help content, statically bundled stuff like images, other files etc.

By using the Application Manger, the application can get hold of some basic and crucial information from the Samsung Smart TV. This information that is accessible can be used by the application for various needs like tracking and analytics, taking content and region specific actions etc. I hope this tutorial gave a little bit idea on getting the additional information from the Smart TV environment and utilizing it for conditions, that enhances the current application a little bit further.




No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *