Webrtc streaming keep camera ON when not publishing

infinascape

New Member
Hello, is there a way to keep the camera on in the localvideo viewport when the stream stops publishing? Right now it seems the camera only goes on when .publish() is executed, and turns off when .stop() is executed. I want the camera to stay on even when the stream has stopped, in case the user wants to stop the stream to make adjustments (such as switching between front and rear camera which I know you can't do mid-stream) before re-starting the stream. I'd like the camera to stay on so they can see the view before restarting the stream. Thanks.
 
Last edited:
Top