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(
|
console.log(
|
||||||
`useMediaStream setting output setSinkId ${audioOutputDevice}`
|
`useMediaStream setting output setSinkId ${audioOutputDevice}`
|
||||||
);
|
);
|
||||||
|
// Chrome for Android doesn't support this
|
||||||
|
mediaRef.current.setSinkId(audioOutputDevice);
|
||||||
} else {
|
} else {
|
||||||
console.log("Can't set output - no setsinkid");
|
console.log("Can't set output - no setsinkid");
|
||||||
}
|
}
|
||||||
// Chrome for Android doesn't support this
|
|
||||||
mediaRef.current.setSinkId?.(audioOutputDevice);
|
|
||||||
}
|
}
|
||||||
}, [audioOutputDevice]);
|
}, [audioOutputDevice]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue