Top Banner

Click here to load reader

Introduction to Samsung Smart TV SDK

Oct 17, 2014

ReportDownload

Technology

Overview of getting started with Samsung Smart TV SDK 4.5 for an app developer. Outlines the different programming languages supported by the platform including HTML5, and some devices APIs.

Publishing to Samsung Smart TV

Samsung Smart TV SDK

Manikantan K

[email protected]@manikantan_k

What is Samsung SMART TV App?

Samsung Smart TV applications are web-based small software programs that run on Digital TVs connected to the Internet.

Applications are installed on TVs via Internet and run on App Engine

Application Manager

App Engine

Operating Principle

Visit www.samsungdforum.com to download the latest SDK

Samsung D Forum

Smart TV SDK evolution

2.x

Designed for 2011 Devices ( D Model )

HTML5/CSS3 Support

Maple Web Engine

3.x

Designed for 2012 Devices ( E Model )

Smart Interaction, In-Apps Ads & Convergence Support

WebKit Web Engine

4.x

Designed for 2013 Devices ( F Model )

Smart Interaction 2.0 Support

Eclipse Based IDE (Linux & Mac OS SDK Available)

http://www.samsungdforum.com

Project Types

Flash 11.1Native Client

SDK 4.5+

Improved HTML5 support

Support for and tags

For formats & support, see link

http://www.samsungdforum.com/Guide/art00066/index.html

No HTML5 video tag support.

Improved HTML5 support

Support for tag

http://www.samsungdforum.com/Guide/art00066/index.html

This text is displayed if your browser does not support HTML5 canvas.

var example = document.getElementById(example);var context = example.getContext(2d);context.fillStyle = rgd(255,0,0);context.fillRect(30,30,50,50);

Web Device APIList of APIs to access low level functionalities of the Smart TV like

Network capabilities

TV channels

Gamepad connectivity

External Camera support

Microphone

Filesystem

Voice recognition

MIDI etc

Web Device API > Network

Check network connection

Set Listeners for changes

http://www.samsungdforum.com/Guide/ref00008/network/dtv_network_module.html

try { webapis.network.getAvailableNetworks(successCB, errorCB);

} catch(err) {alert(err.name);

}

function successCB(networks) {for(var i=0; I < networks.length; i++) {

if(networks[i].isActive() ) {networks[i].setWatchListener(watchCB, errCB);

} }}

Web Device API > TVChannel

Get ProgramList for current channel

http://www.samsungdforum.com/Guide/ref00008/tvchannel/dtv_tvchannel_module.html

try { var channel = webapis.tv.channel.getCurrentChannel();webapis.tv.channel.getProgramList(channel, webapis.tv.info.getEpochTime(),

successCB, errorCB, 3600 );} catch(err) {

alert(err.name);}

function successCB(programs) {console.log(program query success);

}

Single Handed Gestures You need to include mouse support in

config.xmly

Mouse listener like the web. Create a div in scene1.htmlButton