opentok / opentok-react

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

Audio issues on moderate internet connections #201

Open adeelnawaz opened 3 years ago

adeelnawaz commented 3 years ago

Hi, I'm using this package with ReactJs for multi-user calls. The sessions are always routed, and the audio/video streams are set to low quality (audioBitrate: 8000, frameRate: 15, resolution: 320x240). Everything works relatively well when all parties have good connection. But if a party has mediocre connection e.g. 8Mbps download, 2Mbps upload, then more often than not the participant's voice starts breaking. In some cases other participants see red bars with this subscriber and when that happens, some of the participants are unable to hear that participant at all, while the rest are hearing him fine. All the while, the participant himself is able to hear everyone else fine. The bandwidth (2Mbps upload) isn't bad for such a low bitrate, and turning the video stream off doesn't help either. Leaving the call and rejoining helps for 2, 3 minutes and then the issue reappears. The other call methods e.g. Google Meet or Skype work perfectly fine on same network with same participants, so the reason seems to be something else. If I can help with debugging the issue, please let me know and I'll make the necessary changes to my setup. Right now I don't know where to start.