Versions Compared

Key

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


Table of Contents

Overview

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 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.

Prerequisites

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

Build instructions

  • Create Lightning refapp dev build

    1. pull code from source repo using below command

      Code Block
      $ git clone https://github.com/naseemshekh20/refapp.git


    2. goto refapp directory

      Code Block
      $ cd refapp


    3. checkout to branch refapp-vid-playback-validation-on-rdk-4.0

      Code Block
      $ git checkout refapp-vid-playback-validation-on-rdk-4.0


    4. install the NPM dependencies by running below command

      Code Block
      $ npm install


    5. run copyAssets.sh command to create static folder and copy images, json files etc

      Code Block
      $./copyAssets.sh


    6.  run below command for testing in browser 

      Code Block
      $ lng dev


...

reference images for build instructions-4

Running refapp

by default vscode launch generated url on chrome browser in dev pc.

...

reference image for running app on browser

Create dist (build)

  • run below command to make build.
Code Block
$ lng dist


Image Modified

reference image for dist creation

Or 

  • Pre-build refapp code

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

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 


  • 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 

  • 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


  • Flash the image on the SD card

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

...

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.


RefApp Video Playback

  • RDK 4.0 (rdk-generic-hybrid-image) Vs LGI  RefApp (rdk-generic-hybrid-refapp-image)



Dependencies


 Reference Video

Multimedia
namevideo_20210129_143944.mp4