'Using @cycjimmy/jsmpeg-player library doesn't show live camera video

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>

`



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source