-
-
Notifications
You must be signed in to change notification settings - Fork 898
Closed
Description
Hello.
Android TV app
There are two cameras (the facing is both Back)
How can i switch camera with cameraId.
Camera2Source camera2Source = new Camera2Source(mContext);
String currentCameraId = camera2Source.getCurrentCameraId();
if (!currentCameraId.equals(cameraId)) {
camera2Source.switchCamera(); // not work, because both Facing.Back.
camera2Source.openCameraId(cameraId); // Camera2ApiManager need be prepared, Camera2ApiManager not enabled
}
...
genericStream.changeVideoSource(camera2Source);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels