This guide will help you integrate your THEOplayer SDK on webOS. The focus of this article is using the webOS IDE and our sample code. You may also find the Getting Started on Web to be useful.
Make sure the webOS SDK, available for download at http://webostv.developer.lge.com/sdk/installation, is correctly installed on your system.
You will find the following 2 installation options:
{installation folder}\webOS_TV_SDK\ComponentManager)
{installation folder}\webOS_TV_SDK\CLI\bin
to the PATH
variable of your OS to make it available everywhere from the command line.ares
at the command line of a new terminal. If the command is recognized, you are correctly set up.Important Note If you require interactive debugging (even if you only use the CLI), you will need to install the webOS IDE. Although you might not directly use the IDE, the CLI debugging command will open up a Chromium Inspection browser that is only available when the webOS IDE is installed on the system.
The packager will use the app
folder to build an IPK package
app
folder contains a crude solution with entry point index.html
; the only thing left is to put your THEOplayer library files in the libs
folderThe folder example-with-UI
contains a more elaborate example
to use it, optionally modify the code and run the following commands
cd example-with-ui
npm i
npm run build
js
folder, the css
folder and the index.html
file to the app folder (overwriting the existing files)Manually set up (use the guideline provided by LG)
ares-setup-device
add
9922
for physical devices (for an emulator the port is 6622)prisoner
(important note: do not use the proposed root
, this will not work)password
ares-novacom -d tv --getkey
(make sure to use the device name you choose in case you changed it)Important Note: the use of an emulator is not recommended as emulators do not implement all features (e.g. DRM).
If you decide to use an emulator: start the emulator of your choice (you might need to install it using the Component Manager - see the Prerequisites section of this document)
Note: please visit the LG webOS developer site at http://webostv.developer.lge.com/ to get more info on commands, tools and guidelines.
First make sure to cd into the root folder (this is the parent of app folder). Next run the following commands.
ares-package ./app --outdir ./
Default name for the created package is webos.theo1.0.0all.ipk, tv is the device name that was given when setting up the device in the previous step. This step will fail if there is no connection to the device, e.g. the device is offline, not on the same network, ... .
ares-install webos.theo_1.0.0_all.ipk -d tv
App id is by default web.theo (you can change this in appinfo.json
)
ares-launch webos.theo -d tv
ares-inspect webos.theo -d tv --open