opentok / opentok-react

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

Is there a way to switch speakers just like setAudioSource and setVideoSource? #171

Closed meljason closed 3 years ago

meljason commented 3 years ago

I was just wondering if there was a way to change speakers based on the ids of the speakers. Currently I managed to fetch the list of speakers in an option select tag using enumerateDevices from navigator when filterred the speakers with the "kind" audiooutput. Is there a way to switch speakers on opentok?

enricop89 commented 3 years ago

The only way is to use setSinkId but bare in mind that is an experimental feature (check browsers support)