Developing Web App

Developing Web App

Developing Web App This document describes how to develop web-based application for LG Smart TV. Quick Start Guide This document is provided for beginners who want to start web app developing using LG IDE. With simple sample application, we explain how to setup the project and implement the codes. App Development Guide This document provides description on the NetCast platform architecture, supported media formats, protocols, minimum LG NetCast Platform capabilities and the HTML5/CSS specifications. Also, performance considerations are provided which web application developers should know. Supported HTML5/CSS3 Standard for the NetCast Platform and Emulator This document describes HTML5 and CSS3 supported by the NetCast platform and LG Smart TV Emulator. Sample Tutorials: LG WebAPI Tutorials This document includes sample tutorials for LG WebAPI Tutorial codes. | 1 Contents Quick Start Guide ...................................................................... 8 App Development Guide ........................................................... 9 LG Web Application Overview ................................................................................................... 9 NetCast Platform Overview ..................................................................................................... 9 Specifications .......................................................................................................................... 11 Video Output .......................................................................................................................... 11 Web Engine ........................................................................................................................... 11 Cookie and Cache Support of LG Web Browser Engine .......................................................... 12 userAgent String[1]...................................................................................................................................... 12 The Accept-Language Header ............................................................................................................. 14 Protocols 14 CODEC & Container .............................................................................................................. 14 DRM 14 Using WMDRM/PlayReady .................................................................................................................... 15 Using Verimatrix ......................................................................................................................................... 15 OSD Resolution ..................................................................................................................... 16 Subtitle 16 Images 18 Cascading Style Sheets ......................................................................................................... 18 Streaming Method ................................................................................................................. 18 HTTP Streaming ......................................................................................................................................... 18 Http Live Streaming (HLS) - Adaptive Streaming ......................................................................... 18 Play List (ASX) ....................................................................................................................... 19 Local File Play........................................................................................................................ 20 Tips for Web Application Development .................................................................................... 20 Web Browser Engine ............................................................................................................. 20 Document Scrolling ................................................................................................................................... 20 Common Control Supporting ................................................................................................................. 20 Flushing Cookie and Cache Repositories ....................................................................................... 20 Font and Font Style ............................................................................................................... 20 Font style Supporting ................................................................................................................................ 21 Representation of Control Characters[6] ........................................................................................... 23 Platform Identification and Its Applications ............................................................................ 24 Identifying and Differentiating with the userAgent String .......................................................... 24 Identifying and Differentiating with Device Information APIs ................................................... 25 Input Device ........................................................................................................................... 25 Traditional IR Remote .............................................................................................................................. 25 Magic Remote.............................................................................................................................................. 25 Traditional IR Remote Key Events ...................................................................................................... 26 Key Repeat Function ................................................................................................................................ 27 | 2 Key Event Handling ................................................................................................................................... 28 Mouse Events .............................................................................................................................................. 28 Smart Text for NetCast 2.0 .................................................................................................... 29 Using LG Smart Text ................................................................................................................................ 29 System Requirements .............................................................................................................................. 29 Installing LG TV Remote 2011 Program into Android Phone .................................................. 30 Pairing LG TV Remote 2011 Program with TV ............................................................................. 32 Smart Text for NetCast 3.0 and 4.0 ....................................................................................... 33 Using LG Smart Text ................................................................................................................................ 33 System Requirements .............................................................................................................................. 33 Installing LG TV Remote Program into Android smartphone .................................................. 34 Pairing LG TV Remote Program with TV ......................................................................................... 36 Virtual Keyboard .................................................................................................................... 37 Using Virtual Keyboard Library ............................................................................................................. 37 Supported Language ................................................................................................................................ 39 Performance Consideration ................................................................................................... 39 JavaScript .............................................................................................................................. 39 General ........................................................................................................................................................... 39 Timers ............................................................................................................................................................. 40 XMLHttpRequest ........................................................................................................................................ 40 Eval 41 Popups ............................................................................................................................................................ 41 Annex A Complete List of Supported MIME Types .................................................................. 41 Annex B Complete List of Supported Codecs and Containers ................................................. 42 Annex C ISO 639 Code Conversion Table[3][8] ......................................................................... 43 Annex D Differences in Media Devices.................................................................................... 56 Annex E HTTPS Server and Client Certificated ....................................................................... 58 Annex F References ................................................................................................................ 58 Supported HTML5/CSS3 Standard for the NetCast Platform and Emulator

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    205 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us