RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Status | ||||||
---|---|---|---|---|---|---|
|
Table of Contents |
---|
To validate lightning refapp on rdk 4.0 (rdk-generic-hybrid-image-raspberrypi) along with video playback, need to do some necessary code customizations/modifications in lightning refapp side for media video player implementation provided by lightning-sdk framework and rdk library side for variable setting and url configurations.
Please follow the below instructions to validate lightning refapp on rdk-generic-hybrid-image.
Before you follow the steps below, make sure you have installed all the required prerequisites in your dev PC - Node.js , npm, Lightning-CLI
...
reference image for Lightning-CLI install
pull code from source repo using below command
Code Block |
---|
$ git clone https://github.com/LibertyGlobalnaseemshekh20/refapp.git |
goto refapp directory
Code Block |
---|
$ cd refapp |
checkout to branch refapp-vid-playback-validation-on-rdk-4.0
Code Block |
---|
$ git checkout refapp-vid-playback-validation-on-rdk-4.0 |
install the NPM dependencies by running below command
Code Block |
---|
$ npm install |
run copyAssets.sh command to create static folder and copy images, json files etc
Code Block |
---|
$./copyAssets.sh |
run below command for testing in
browserbrowser
Code Block |
---|
$ lng dev |
or
Download customized pre-build refapp code which has lightning sdk media player integrated: build.zip
refer below screenshots for reference
...
reference images for build instructions-4
by default vscode launch generated url on chrome browser in dev pc.
...
reference image for running app on browser
Download customized pre-build refapp code which has lightning sdk video player integrated: build.zip
(or)
Code Block |
---|
$ lng dist |
reference image for dist creation
...
Download pre-build rdk-generic-hybrid-image-raspberrypi image from here: rdk-generic-hybrid-image-raspberrypi-rdk-hybrid.zip
(or)
Code Block |
---|
$ repo init -u https://code.rdkcentral.com/r/manifests -b yocto-dunfell-upgrade -m rdkv-nosrc.xml
$ repo sync -j4 --no-clone-bundle
$ MACHINE=raspberrypi-rdk-hybrid source meta-cmf-raspberrypi/setup-environment
$ bitbake rdk-generic-hybrid-image |
or
...
Code Block |
---|
# sudo dd if=<r-pi sdimg> of=<SD card device> bs=1M
for ex: # sudo dd if=rdk-mc-rpi.sdimg of=/dev/sdb bs=1M |
(or)
Windows user can download and install Balena Etcher to write the Raspberry Pi SD card: https://www.balena.io/etcher/
...
Code Block |
---|
$ ssh root@<<IP address>> # after login into box $ cd /lib/rdk/ |
2. add startup_app_conf variable into variable into referenceApp.sh config file, if referenceApp.sh file is not available in /lib/rdk then refer method 2 below to validate refapp.
Code Block |
---|
startup_app_conf=/opt/residentapp.conf |
...
Code Block |
---|
url="http://192.168.0.106:8080/" echo $url |
4. replace exting url https://px-apps.sys.comcast.net/lightning_apps/SwitcherApp/dist/index.html in /opt/residentapp.conf with lighting app url which is hosted on server
for for example your server providing url url http://192.168.56.1:8080
5. reboot the box
Validated on rdk-generic-hybrid-wpe-image_rdk-next image, download image link: https://drive.google.com/file/d/1_VgFDk_lRWLoMwv0JKQrZ4HUifN-F6Qa/view?usp=sharing
step 1: login to box $ ssh root@<your box ip>
step 2: copy refapp build into /opt/www
step3: $ cd /lib/rdk
step 4: $ vi residentApp.sh
step 5: configure refapp url into residentApp.sh > find in residentApp.sh line "offlineApp="http://127.0.0.1:50050/lxresui/index.html" and replace with refapp url, Example: "offlineApp="http://127.0.0.1:50050/refapp/index.html"
Note: if you are downloading prebuild refapp from download link: build.zip after extract you will see build/build/<files>, you can copy build folder as it is and in this case url will be "offlineApp="http://127.0.0.1:50050/build/build/index.html".
step 6: After reboot app come up with a splash screen. Lighting application will launch instead of switcher app. Main menu screen is displayed which allows users to launch apps, vod, and play video content.
Multimedia | ||
---|---|---|
|