User Interface developed using Lightning Application Framework for RDK’s Video Accelerator Platform
-
Pre-requisites:
- Install Node.js 10.x and npm
- Install Lightning-CLI globally
npm install -g @lightningjs/cli
(There is a new lightning version release dated 14 Oct 2020, if you are already using lightning , then please refer 'Lightning carbon release' section before moving to next steps)
-
Clone the Accelerator-UI project
git clone [email protected]:rdkcentral/AcceleratorUI.git
-
Navigate to the project folder in terminal
-
Run:
npm install
orsudo npm install
It will download all the dependent packages. -
Run
lng build
: will create a standalone bundle that you can run in the browser. -
Run
lng serve
: will start a local webserver and run the App. The port information and the host IP information of the server will be shown in the terminal. Application will be up and will run at (http://{hostIP}:8080)
eg: http://127.0.0.1:8080, http://192.168.1.8:8080
Prerequisites - The device and your machine should be connected to the same network.
- Launch Controller UI in your web browser by giving IP address and port number of the device/box (eg: http://192.168.1.6:9998/ ).
- In Controller UI, navigate to Resident App tab
- Enter the Application URL ( URL of the application getting from 'lng serve' ) in 'Custom URL' field and click on 'SET' button.
- The Lightning accelerator UI will get loaded in the Resident App(webkit browser instance)
Keys used in Remote | Keys used in Keyboard |
---|---|
Home | Backspace |
Up Arrow | Up Arrow |
Down Arrow | Down Arrow |
Right Arrow | Right Arrow |
Left Arrow | Left Arrow |
OK | Enter |
Volume Up | - |
Volume Down | - |
Mute | - |
If you have already installed lightning cli version < 2.0.0 , then to upgrade to lightning CLI 2.0.0, please follow the below steps
- Uninstall the old version:
npm uninstall -g wpe-lightning-cli
- Install the latest lightning cli
npm install -g @lightningjs/cli
Release document - http://www.lightningjs.io/announcements/carbon-release
For further information refer https://wiki.rdkcentral.com/display/RDK/Tata+Elxsi+Accelerator+UI