applyCameraInput method
Implementation
Future<void> applyCameraInput({required String input}) async {
Log().info("applyCameraInput $input");
if (input == "off") {
turnCameraOff();
sendMuteVideo(isMuted: true);
} else if (input == "on") {
final facingMode = CameraManager().currentFacingMode;
if (facingMode == "user") {
turnCameraOn(isFront: true);
} else {
turnCameraOn(isFront: false);
}
sendMuteVideo(isMuted: false);
} else if (input == "front") {
turnCameraOn(isFront: true);
sendMuteVideo(isMuted: false);
} else if (input == "back") {
turnCameraOn(isFront: false);
sendMuteVideo(isMuted: false);
}
}