05

Focus

Anchor and Focus

Registering/Unregistering a Remote Control Key

Handling Remote Control Events

Moving the Focus

Handling a Mouse Event

Summary

Anchor and Focus

Anchor elements are often used to navigate between HTML pages in a web service. However, it is used for a somewhat different purpose in a general SmartTV application. An anchor is capable of focusing an element in addition to navigating among pages using the href property. This property is often used in SmartTV applications to control scenes.

In a SmartTV application, HTML/JavaScript focus is used to select and mark one of several items simultaneously displayed on the screen. Try to re-call using remote control directional keys (up/down/left/right) to focus different items on a SmartTV or a set-top box type IPTV service, in which the OK key activates the focused content.

Anchors and focuses are the fundamental tools of controlling a Samsung SmartTV application using a remote controller. Gesture Recognition has been added recently to allow more freedom in moving focus and selecting content with hand movement.

Registering/Unregistering a Remote Control Key

Registering a remote control key means that the application will have its own functions to handle the key input. Unregistering a key means using a SmartTV's default OSD (On Screen Display) functions to handle it. When an application is executed, basic remote control keys (directional keys and the OK key) are automatically registered for the application to use. To ...

Get Samsung SmartTV Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.