mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Merge pull request #366 from robintown/chrome-android-sink
Fix crash when setting audio output on Chrome for Android
This commit is contained in:
commit
f1bdad0d7f
@ -55,7 +55,8 @@ export function useMediaStream(stream, audioOutputDevice, mute = false) {
|
||||
mediaRef.current !== undefined
|
||||
) {
|
||||
console.log(`useMediaStream setSinkId ${audioOutputDevice}`);
|
||||
mediaRef.current.setSinkId(audioOutputDevice);
|
||||
// Chrome for Android doesn't support this
|
||||
mediaRef.current.setSinkId?.(audioOutputDevice);
|
||||
}
|
||||
}, [audioOutputDevice]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user