opentok / opentok-react

React components for OpenTok.js
https://www.npmjs.com/package/opentok-react
MIT License
107 stars 105 forks source link

cycleVideo causes publisher stream freeze on android #205

Open og1sha opened 3 years ago

og1sha commented 3 years ago

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.