Versions Compared

Key

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


...

 RDK Emulator

...

Overview of RDK Emulator

  • Executes on x86-based platforms including virtualization environments such as Virtual Box and QEMU.
  • Multiple build types - media client, hybrid etc
  • Supports the RDK Browser startup application.
  • Up to date with the RDK generic trunk and any x86-specific platform code.
  • Built using Yocto and RDK build frameworks

Key Features

  • RMF Support
  • RDK Browser as start up application supporting playback of local TS file.
  • Video/Audio playback using fbdevsink and autoaudiosink gstreamer elements.
  • Remote control - x86-based QT application that is useful for  navigation  in RDK Browser and XRE Applications
  • Support for X2 guide.

Build Setup Instructions

Setting up the Host Environment

Host Requirements

Build Setup Instructions

...

Setting up the Host Environment

...

Host Requirements

RequirementRemarks
Linux                           32 bit Ubuntu
RequirementRemarks
Linux                           32 bit Ubuntu 16.04 operating system
Free HDD SpaceMinimum 100GB Free Memory
Oracle Virtual Box4.3.18 or higher

...

Note: For latest code iteration, check the RDK-V Releases page to get the latest iteration branchreleases page of your desired platform.

$ repo sync

...

-       ${HOME}/emulator/build-qemux86hyb-morty<build folder name>/tmp/deploy/images/(Build Type)

...

  • In the screenshot below<your_spts_file_name> is assumed to be "received_spts1.ts" as an example.

Image Removed

 

...


Logging into your VM

...

As described in the previous section, you can log in to your emulator VM from your Host Machine using the ssh command.

$ ssh root@x.x.x.x

Note: In order to learn the IP address of your VM, use the RDK Browser application “tab” key to navigate to "Device Info" which will provide you the IP address. Press "Enter" key to enter Device Info

Closedcaption support in RDK Emulator

1)Boot the VM in NAT mode and ssh in to the VM to get the console.

ex: ssh -p 3022 root@localhost

2)To check the closedcaption in rmfapp start the rmfapp and launch a video as shown below

ex: cd /usr/bin; ./rmfApp

rmfApp->launch -source hnsource -sink mediaplayersink http://127.0.0.1:50050/received_spts1.ts

now you will be able to see ccdata displayed on sccsreen

Image Removed

3)To enable or disable closedcaption rendering in rmfApp user “e” or “enable” to enable closedcaption and “d” or “disable” to disable the closedcaption

ex: rmfApp->d

expexted output: closedcaption rendering should stop on screen.

Image Removed

To enable closedcaption again type the command "e" as shown below.

rmfApp->e

expected output: Closedcaption rendering should start on screen

Image Removed

4)To show and hide the closedcaption after enabling the cc rendering user “s” or “show” tp show the cc window and “h” or “hide” to hide the cc window

example: rmfApp->h

expected output: CC window should not be visible on screen

Image Removed

To show the closedcaption again type the command "s" in rmfapp as shown below.

rmfApp->s

expected output: CC window should be visible on screen.

Image Removed

5)To pause and play the video after launching the video as shown below

ex: rmfApp->launch -source hnsource -sink mediaplayersink http://127.0.0.1:50050/received_spts1.ts

rmfApp->p (To Pause the video)

expected output: Stop the playing video also closedcaption rendering should stop

Image Removed

To resume the video paused type the command "p" again in rmfapp as shown below.

rmfApp->p (To play the video)

expected output: Video playing should resume and closedcaption rendering aswell.

Image Removed

6)To test for the video playing with tsb do as shown below.

Ex: rmfApp-> launch -source hnsource -sink mediaplayersink -tsb http://127.0.0.1:8080/vldms/tuner?ocap_locator=ocap://0x125d&tsb=60

rmfApp->p (to pause the video)

expected output: The video playing should stop and cc rendering aswell.

Image Removed

rmfApp->l (to switch to live)

expected output: Video should switch back to live and cc rendering should resume

Image Removed

7)Checking closedcaptioning in recorded content. 

After recording the video using the method provided in the above link using rmfApp try to play the recorded content.

Ex: To view the recording list

rmfApp-> l

expected output : To show the list.

total Space: 1886208000 bytes

free Space: 358744064 bytes

number of recordings= 1

-------------------------------------

recording 0 id 30 title "Recording_tile"

-------------------------------------

Image Removed

Now play the recorded content as shown below.

RmfApp->launch -source dvrsource -sink mediaplayersink dvr://local/30

expected output: Recording content should play along with closedcaption rendering.

Image Removed

Note: To play the recorded content use dvr://local/id where id is the recordingid.

8) To exit from the rmfApp first kill the running proccess and then press q to quit

Ex: rmfApp->kill 1

rmfApp->q

Bringing up the Emulator on VMWare Player

Install VMplayer in Host Machine

Use the below Link download to install VMware Player on host

https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0|PLAYER-504|product_downloads

After downloading

sudo ./VMware-Player-<Version>.bundle (LInux OS)

Run  VMware-Player-<Version>.exe  (Windows OS)

Reason for VMplayer: in Mesa Higher versions EGL-PLATFORM fbdev is not available as it is deprecated so we tried using DRM (Direct Rendering Manager driver for graphics)

for DRM driver is available only in vmware only (vmwgfx so we have gone for VMware Player)
 

Steps to bring up RDK Emulator on VMware Player

1        Once VMware Player is installed, open the VMWare Player  using the command

...

vmplayer &  or open using GUI

2       Click File --> Create a New Virtual Machine --> Select  'i will install my operating system later' --> click Next

3       Select 'Linux' --> Version  'Other Linux 3.x kernel' --> Click Next --> Give name --> Click Next

4       Maximum Disk Size : 8 Gb --> Select 'Store Virtual Disk as a Single File' --> Click Next --> Memory for this Virtual Machine '512 Mb' --> Click 'Close'  --> Click  'Finish'

5       Click 'Edit virtual machine settings' --> select Hard Disk (IDE) --> Click 'Remove'   -->Click  'Add'  --> Select Hard Disk  --> Select  'Use existing Virtual Hard disk'

6       File browse and set the path to the *.vmdk  file --> Click Finish --> Click 'Keep Existing Format'

7       Network Adapter select Bridge Adapter  --> Click Save

8       Click Play Virtual Machine

         Cannot connect the virtual device ide1:0 because no corresponding device is available on the host.
         Do you want to try to connect this virtual device every time you power on the virtual machine? [YES] [NO]

          You select [NO]

9       This will bring the emulator up with the initial splash screen followed by RDK-Browser as startup application.

*** Note :  No support for Shared Folder.

step 1:

Image Removed

Step 2:

Image Removed

Step3:

Image Removed

Step 4:

Image Removed

Step 5:

Image Removed

Click 'Save'  --> Click  'Finish'

Click 'Edit virtual machine settings' --> select Hard Disk (IDE) --> Click 'Remove'   -->Click  'Add'  --> Select Hard Disk  --> Select  'Use existing Virtual Hard disk'

Step 6:

Image Removed

Step 7:

Image Removed

Step 8:

...



Step 9:

Step 10:

Step 11:

step 12:

...