opentok / opentok-react

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

Changing audioSource doesn't work #206

Open Nureckiy opened 3 years ago

Nureckiy commented 3 years ago

Changing the videoSource destroys and creates a new publisher, but changing the audioSource has no effect. To apply this, another action should affect the publisher, such as changing the videoSource. According to the documentation (https://tokbox.com/developer/guides/audio-video/js/#setAudioSource), when the audioSource property changes, the publisher must be called using the .setAudioSource () method.

Thanks!