Package tvi.webrtc
Class Camera2Enumerator
- java.lang.Object
-
- tvi.webrtc.Camera2Enumerator
-
- All Implemented Interfaces:
CameraEnumerator
public class Camera2Enumerator extends java.lang.Object implements CameraEnumerator
-
-
Constructor Summary
Constructors Constructor Description Camera2Enumerator(android.content.Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CameraVideoCapturer
createCapturer(java.lang.String deviceName, CameraVideoCapturer.CameraEventsHandler eventsHandler)
java.lang.String[]
getDeviceNames()
java.util.List<CameraEnumerationAndroid.CaptureFormat>
getSupportedFormats(java.lang.String deviceName)
boolean
isBackFacing(java.lang.String deviceName)
boolean
isFrontFacing(java.lang.String deviceName)
static boolean
isSupported(android.content.Context context)
Checks if API is supported and all cameras have better than legacy support.
-
-
-
Method Detail
-
getDeviceNames
public java.lang.String[] getDeviceNames()
- Specified by:
getDeviceNames
in interfaceCameraEnumerator
-
isFrontFacing
public boolean isFrontFacing(java.lang.String deviceName)
- Specified by:
isFrontFacing
in interfaceCameraEnumerator
-
isBackFacing
public boolean isBackFacing(java.lang.String deviceName)
- Specified by:
isBackFacing
in interfaceCameraEnumerator
-
getSupportedFormats
@Nullable public java.util.List<CameraEnumerationAndroid.CaptureFormat> getSupportedFormats(java.lang.String deviceName)
- Specified by:
getSupportedFormats
in interfaceCameraEnumerator
-
createCapturer
public CameraVideoCapturer createCapturer(java.lang.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.
-
-