htmlfile (HTML custom block)
Posted: Monday 11 January 2021 15:28
Hi,
I followed the manual to create an HTML custom block (want to view my camera's as hls streams since multiple concurrent mjpeg streams crash the browser on android).
so I create the block as follows:
and the html file contains to <video> elements.
But when I load it I get 'unknown string block' on console in chrome.
Any idea what I'm doing wrong.
Could not find any mention of this functionality in the forum so probably isn't used that much?
I followed the manual to create an HTML custom block (want to view my camera's as hls streams since multiple concurrent mjpeg streams crash the browser on android).
so I create the block as follows:
Code: Select all
blocks['hkhk'] = {
htmlfile: 'webcam.html'
}
But when I load it I get 'unknown string block' on console in chrome.
Code: Select all
unknown string block
{type: "hkhk", htmlfile: "webcam.html", c: 1, key: "hkhk", $mountPoint: jQuery.fn.init(1), …}
$mountPoint: jQuery.fn.init(1)
0: div#block_31
length: 1
__proto__: Object(0)
c: 1
entry: "block_31"
htmlfile: "webcam.html"
key: "hkhk"
mountPoint: "#block_31"
type: "hkhk"
width: 12
Could not find any mention of this functionality in the forum so probably isn't used that much?