switch to speaker if either video active

This commit is contained in:
Roland Osborne 2023-04-12 14:49:15 -07:00
parent 9ccbbe6838
commit 7268f1c380

View File

@ -468,6 +468,7 @@ export function useRingContext() {
if (track.kind === 'video') {
videoTrack.current = track;
pc.current.addTrack(track, stream);
InCallManager.setForceSpeakerphoneOn(true);
const localStream = new MediaStream();
localStream.addTrack(track, localStream);
updateState({ localVideo: true, localStream });