Dregu / visio

Ultra fast live streaming raw h264 from Raspberry Pi to multiple browser clients with Node, websockets and Broadway
MIT License
37 stars 13 forks source link

How to enable(re-start) and disable(stop) the streaming on the fly. #5

Closed VigibotDev closed 6 years ago

VigibotDev commented 6 years ago

Hello,

What is the clean way to enable(re-start) and disable(stop) the streaming on the fly ?

Thanks, Pascal

Dregu commented 6 years ago

I dunno, figure it out

Thanks.

VigibotDev commented 6 years ago

I work on this myself if you are interested for visio

VigibotDev commented 6 years ago

Solved : it's easy as ws.close and re-open:) I reworked the code to permit this (we must disable the auto-reconnect before the close)