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

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.