Samsung SmartTV Web Application - dummies

By Handstudio Co., Ltd

A Samsung SmartTV application is implemented as a web application. While this does not support all web technologies including server side containers or server side programming languages, a Samsung SmartTV application has almost a similar front-end structure that allows using custom web client development practices.

This also means it is critical to understand general web environments and HTML (its building blocks); CSS (its style maker); and JavaScript (its binding agent).

HTML in SmartTV programming

There are different HTML file structures to accommodate scene design, which is a page or a screen layer design of a SmartTV application. You can use a scene-based programming technique that uses layers, instead of separate HTML files, to handle each scene. Therefore, only one top-level HTML file—index.html—will be used.

Screens contained in HTML layers, anchors to handle focuses, and objects with necessary device APIs are all included in the index.html file. As in a website, the HTML file represents the application itself as its starting point.

CSS in SmartTV programming

CSS defines display styles. It is even more vital to handle design elements with CSS on an application that runs on a SmartTV with limited processing power and screen resolution.

JavaScript in SmartTV programming

JavaScript is the execution code that runs the application. It calls device APIs, handles DOM elements for events, and manages focus and scene transactions for a SmartTV application. All necessary functions and event handling can be implemented using JavaScript.