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
+2
View File
@@ -22,6 +22,8 @@ class Track {
Track(this.kind, this.name, this.mediaTrack);
bool get muted => mediaTrack.muted == null ? false : mediaTrack.muted!;
RTCRtpMediaType get mediaType {
switch (kind) {
case TrackType.AUDIO: