O'Reilly logo

Samsung SmartTV Application Development by Handstudio Co., Ltd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required