I tried to follow the instructions`
new JSMpeg.VideoElement("#video-canvas", ws://my_ip:port, {
autoplay: true,
});
Show live video
<div id="video-canvas" style={{height: "480px", width: "640px"}}></div>
`