Close a web_video_server stream via mjpegcanvasjs

31 views
Skip to first unread message

ha...@northstar-robotics.com

unread,
Mar 3, 2017, 2:53:18 PM3/3/17
to Robot Web Tools
Is there a way to manually close/remove video streams in a web_video_server node via mjpegcanvas?

I'm developing an app using Angular 2 and I'm using mjpegcanvasjs to stream video from a robot running web_video_server. I'd like to be able to close a video stream when I destroy Angular components (i.e. remove them from the DOM). 

Currently I get a new stream every time I create my Angular component (this is the desired behaviour), and this seems to result in video lag after multiple components have been created with one stream for each. There will only ever be one of these components visible in the DOM at any one time, so I'd like to be able to open and close the stream, as I create and destroy the components.
Reply all
Reply to author
Forward
0 new messages