Smart TV App Development examples, tutorials, best-practices and documentation.
(nice intro needed…)
Developer site: http://developer.lge.com/
Forum: LG Official Forum
Documentation Link: http://developer.lgappstv.com/TV_HELP/index.jsp
I find myself searching the documentation far too often, so here's the most important stuff so far. Feel free to make suggestions.
LG Software Development Kit consists in a VirtualBox image that contains the LG Emulator and RCU (Remote Control Unit).
LG Smart TV SDK V3.0
Release Date: 08-FEB-2013
Supported Platforms: Windows, Linux, Mac
Download: LG SDK
General official documentation link.
All three models (NetCast 2.0 (2011), NetCast 3.0 H12 (2012), NetCast 3.0 M12 (2012) support the following protocols:
- HTML file transportation: HTTP, HTTPS
- VoD media file transportation: MMSH, HTTP, RTMP, RTMPE Linear or live broadcasting: HLS, Widevine
And the following Codecs/Containers:
- mp4, wmv, asf, mov, wvm, avi, ts, mp3, wma
HTML5 Audio and Video tags supported. Most HTML5 Video events also supported.
MIME Types
In order to play media in LG Smart TVs is necessary to use a media object. Example:
<object type="application/x-netcast-av" data="" autostart="false" width="500" height="500" id="lgPlayer" style="position:absolute; top:0px; left:0px; z-index: 1;"></object>
The "data" attribute can be changed using Javascript to play whatever supported media. The "type" attributes that can be used are:
- application/x-netcast-av - general supported media
- video/x-ms-asf, video/x-ms-wmv - WMV (ASF)
- audio/x-ms-wma - WMA
- audio/mpeg, audio/mp3 - MP3
- video/mp4, video/mpeg - MP4
- application/vnd.apple.mpegurl - m3u8
Here are some useful official documentation links about these topics:
(TO-DO)
Real TV
First, use the "Export App Test" option in the LG IDE. Then, update the package to the "App Test" option in the LG Developer site and download the DRM applied file. You create lgapps/installed/{appid} folder structure inside a usb stick, unzip the downloaded file into it and insert the usb stick into the LG TV.
When you upload the web app into the LG Developer site, you have to insert an URL in the form. This is really good, because it means that you don't have to go over this process every time you change something in your app.
So, I just create and upload a package that allows the TV to connect to my web server. After that I can continue/start to code the app and instantly test on the real device by reloading the TV app.
It's always good to read the official documentation about deployment.
Emulator
The best way to test an LG App is to have a local web server and to open the app link using the RCU.
Read the official documentation about testing on Emulator.
LG Store submission is managed in the LG Seller Lounge.
It is important to read the "Seller Lounge Guide", easily spotted once you log in.
Required Documents for App Submission
Two documents are mandatory for submiting an app:
-
AppDescription (appdescription.ppt)
-
Self-Evaluation Checklist (app_self_evaluation_checklist.xls)
Download: Required Documents for Application Submission to LG Seller Lounge -> "documents for app qa.zip"
LG App icon & screenshots
Exactly one icon is mandatory and needs to be accourdingly to these rules:
- 200 * 200
- PNG, JPG or GIF
- max size 100kb
At least two screenshots, as per:
- 1280 * 720 (browser, plex) or 960 * 540 (flash)
- PNG, JPG or GIF
- max size 200kb
- max number of screenshots = 6
Download: LG Smart TV Guidelines for App Icon and Screenshot -> "LG Smart TV Guidelines for App Icon and Screenshot_V4.1.pdf"
LG Smart TV models list: http://www.lg.com/uk/smart-tvs
LG Smart TV for development suggestion: 32LM620T
(...)
last update: 23/04/2013