feature: switch between front and back cameras

This commit is contained in:
David Zhao
2021-08-06 21:20:21 -07:00
parent f1a7591ec7
commit 509a037936
6 changed files with 77 additions and 10 deletions
@@ -49,6 +49,9 @@ class RemoteTrackPublication extends TrackPublication {
_participant.delegate?.onTrackUnmuted(_participant, this);
_participant.roomDelegate?.onTrackUnmuted(_participant, this);
}
if (subscribed) {
track?.mediaTrack.enabled = !val;
}
_participant.muteChanged();
}