Package tvi.webrtc
Class Camera2Enumerator
java.lang.Object
tvi.webrtc.Camera2Enumerator
- All Implemented Interfaces:
CameraEnumerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCapturer
(String deviceName, CameraVideoCapturer.CameraEventsHandler eventsHandler) String[]
getSupportedFormats
(String deviceName) boolean
isBackFacing
(String deviceName) boolean
isFrontFacing
(String deviceName) static boolean
isSupported
(android.content.Context context) Checks if API is supported and all cameras have better than legacy support.
-
Constructor Details
-
Camera2Enumerator
public Camera2Enumerator(android.content.Context context)
-
-
Method Details
-
getDeviceNames
- Specified by:
getDeviceNames
in interfaceCameraEnumerator
-
isFrontFacing
- Specified by:
isFrontFacing
in interfaceCameraEnumerator
-
isBackFacing
- Specified by:
isBackFacing
in interfaceCameraEnumerator
-
getSupportedFormats
@Nullable public List<CameraEnumerationAndroid.CaptureFormat> getSupportedFormats(String deviceName) - Specified by:
getSupportedFormats
in interfaceCameraEnumerator
-
createCapturer
public CameraVideoCapturer createCapturer(String deviceName, CameraVideoCapturer.CameraEventsHandler eventsHandler) - Specified by:
createCapturer
in interfaceCameraEnumerator
-
isSupported
public static boolean isSupported(android.content.Context context) Checks if API is supported and all cameras have better than legacy support.
-