Wednesday, April 3, 2013
Samsung TV programming basics
You don't need to learn new language. You don't need to learn a new complex IDE. Do things using what you already.
Yeah, the love tool javascript. Smart TV SDK makes it very easy. Using the Smart TV SDK you can :
Bind event handlers to the remote control keys
Access camera
Yeah, the love tool javascript. Smart TV SDK makes it very easy. Using the Smart TV SDK you can :
Bind event handlers to the remote control keys
Access camera
Smamsung smart TV how to write a "Hello World" app
Step 1:
Create a new pplication:
Goto File > New Project > Select "Javascript Project".
Selecting project type of javascript means more controll over you app and code.
Step: 2:
Write this line in the body of the index.html:
<div id="outputDiv"></div>
We will populate our output from javascript and update this div. To make the body background color white write "background:#fff" in the body style as in the following figure.
Step: 3:
Write this line in the main.js file (The main.js file is inside the app/javascript folder)
Write this line in the main.js file (The main.js file is inside the app/javascript folder)
Step: 4
Run the application and press the Enter button from the remote conroller. You the word "Hello World" will be appended inside the "outputDiv" dive.
And its done!
Subscribe to:
Posts
(Atom)