Move setsinkid inside if statement
This commit is contained in:
parent
0ffd860fdb
commit
4e3345482f
1 changed files with 2 additions and 2 deletions
|
@ -72,11 +72,11 @@ export const useMediaStream = (
|
|||
console.log(
|
||||
`useMediaStream setting output setSinkId ${audioOutputDevice}`
|
||||
);
|
||||
// Chrome for Android doesn't support this
|
||||
mediaRef.current.setSinkId(audioOutputDevice);
|
||||
} else {
|
||||
console.log("Can't set output - no setsinkid");
|
||||
}
|
||||
// Chrome for Android doesn't support this
|
||||
mediaRef.current.setSinkId?.(audioOutputDevice);
|
||||
}
|
||||
}, [audioOutputDevice]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue