[RDK Central Wiki]


[Code Releases]


RDK Forums Home

Page tree

Skip to end of metadata
Go to start of metadata

ComcastRDK package rdkv4.0_2021q1_b21.1_20210419 on target BCM972180HBV_V30

Running own web app on this platform

Current approach:
Using rdkbrowser2 / rdkbrowser2.sh

The following very basic test code allocates a canvas object, reads its image data and writes it back to the canvas.  
In contrast to other browsers, it only works correctly with rdkbrowser2 as long as the canvas area is below 70000px (e. g. 350x200px).
If this canvas is above this value, we get invalid graphic output (see also attached images below).


<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <style type="text/css">
      canvas { border: 1px solid black; }
    <script src="example.js"></script>
  <body onload="init()" style="background-color: #0000FF">
    <canvas id="theCanvas" style="border-width: 15px; border-color: #404040"></canvas>


let canvas;

function init(){
    canvas = document.getElementById("theCanvas");
    canvas.width  = 350;
    canvas.height = 200;

    var ctx       = canvas.getContext("2d");
    var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);

    // modify imageData
    // ...
    // write back imageData to canvas
    ctx.putImageData(imageData, 0, 0 );


  • Is this a known issue on other RDK based systems also?
  • Is it the correct approach to use rdkbrowser2.sh to run web apps?
  • Do I have to modify some system configurations to be able to use bigger canvas areas?

  • No labels


  1. I tried this with webkit-browser plugin on RPi with 2021q2-dunfell build and it worked fine. 

  2. Thanks for your comment!
    I also have it up and running on RPi and also on RDK emulator.
    However, using Broadcom reference platform 'BCM972180HBV_V30' I have this issue.