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
+5 -2
View File
@@ -3,9 +3,12 @@ class LocalVideoTrackOptions {
VideoParameter params;
LocalVideoTrackOptions({
required VideoParameter params,
VideoParameter? params,
CameraPosition? position,
}) : this.params = params {
}) : params = VideoPresets.qhd {
if (params != null) {
this.params = params;
}
if (position != null) {
this.position = position;
}