mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
switch to speaker if either video active
This commit is contained in:
parent
9ccbbe6838
commit
7268f1c380
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user