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

09

Server-Side Data Processing

API Design

API Processing

Optimizing API Requests

Summary

The Samsung SmartTV does not support server-side services, including database servers, or a standard connectivity model such as ODBC. Instead, Ajax-type server-side data handling is common using XML or the JSON API.

images

Figure 9-1. The Samsung SmartTV and Server-Side Data Request

Chapter 9 will cover data exchanging between a Samsung SmartTV and a server, including necessary API design, API data processing, and optimizing server-side requests.

API Design

The design of an application depends on how efficiently its data server responds to API requests on necessary data for the application. A well-designed application development project can significantly reduce its development schedule. For efficient API data exchanges, it is vital for a developer to familiarize oneself with the server API, and actively consult with the data provider.

Chapter 9 will use the previously developed Hands Frame application to explain the API design practice.

Designing API for a VOD Gallery

images

Figure 9-2. An Example VOD Gallery Application

The application shown in Figure 9-2 has a static menu list of titles in the left pane, and a focused menu item shows a list of VOD files for the item. To display meta information for ...

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