A little bit introduction
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.
The assigned country code
Replaced with lang attribute
The Samsung Smart TV model id
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.
This variable has not any documented use so far.
Region code that has been assigned to this application when running. Probably may be used for tracking purposes.
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.
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.
The type of the product in which the current application is running. The product type ranges from TV, monitor, set top box etc
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.
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.