Versions Compared

Key

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


Table of Contents

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/LibertyGlobal/refapp.git


    2. goto refapp directory

      Code Block
      $ cd refapp


    3. install the NPM dependencies by running below command

      Code Block
      $ npm install


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

      Code Block
      $./copyAssets.sh


    5.  run below command for testing in browser

...

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

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



  • Lighting refapp integration into rdk-generic-hybrid-image-raspberrypi

...

  1. login into raspberrypi :
Code Block
$ ssh root@<<IP address>>

...

      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

Lightning RefApp on Accelerator

Uses lighting sdk media player to play video, verified video playback using mp4 and HLS streams. 

...

sessionmanager, rmfstreamer, spark environment, nodejs and LGI based IP player not required.


Lightning RefApp on rdk-generic-hybrid-refapp

uses rmfstreamer with sessionmanager and spark environment to play video streams (hls/dash) using (aamp and Liberty IPplayer)

...