Move setsinkid inside if statement
This commit is contained in:
@@ -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]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user