I have a button for camera switch which upon clicking executes cycleVideo function
if(this.mainPublisher && this.mainPublisher.current) { this.mainPublisher.current.getPublisher().cycleVideo().catch(console.error); }
This works fine for IOS and desktop devices. But with android devices, cycling video results in zooming in/out, freezing the current stream on both publisher and subscriber side, or going just to no video at all. Error returned from cycleVideo promise is empty, so i have no idea why is this happening. Tested on chrome and firefox browsers.
I have a button for camera switch which upon clicking executes cycleVideo function
if(this.mainPublisher && this.mainPublisher.current) { this.mainPublisher.current.getPublisher().cycleVideo().catch(console.error); }
This works fine for IOS and desktop devices. But with android devices, cycling video results in zooming in/out, freezing the current stream on both publisher and subscriber side, or going just to no video at all. Error returned from cycleVideo promise is empty, so i have no idea why is this happening. Tested on chrome and firefox browsers.