Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

reference image for running app on browser

  • Pre-build refapp code

Download customized pre-build refapp code which has lightning sdk video player integrated: build.zip

(or)

  • Create dist (build)

    • run below command to make build.


Code Block
$ lng dist


reference image for dist creation

Or 

  • Pre-build refapp code

...

Hosting Lighting refapp

  1. copy the lighting build app from dist folder.
  2. host build folder into any http server.
  3. test the hosted application on browser 

...

Lighting refapp integration 


  • Pre-build rdk-generic-hybrid-image-raspberrypi image

Download pre-build rdk-generic-hybrid-image-raspberrypi image from here: rdk-generic-hybrid-image-raspberrypi-rdk-hybrid.zip

(or)

  • Build

    To build 

    rdk-generic-hybrid-image-raspberrypi follow below instructions


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 

...

-

...

image

Download pre-build rdk-generic-hybrid-image-raspberrypi image from here: rdk-generic-hybrid-image-raspberrypi-rdk-hybrid.zip


  • Flash

    the

    image on the SD

    card

    card 

    • Execute the following command to flash the image on the SD card

...

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
Download)

Windows user can download and install Balena Etcher to write the Raspberry Pi SD card: https://www.balena.io/etcher/

...

2. add startup_app_conf variable into referenceApp.sh config file, if you are not seeing referenceApp.sh file is not available in /lib/rdk then refer below mentioned steps refer method 2 below to validate refapp in method 2.


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 

     

  • Method 2:

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

...

  • Lightning RefApp on Operator reference image (rdk-generic-hybrid-refapp-image)

...