public abstract static class Session.SessionOptions
extends java.lang.Object
Constructor and Description |
---|
SessionOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
isCamera2Capable()
Return
true for devices that can use the Camera2 API
for capturing images |
boolean |
isHwDecodingSupported()
Return
true for devices that should use the Android
MediaCodec class to decode video. |
public boolean isHwDecodingSupported()
true
for devices that should use the Android
MediaCodec class to decode video. Return false
for other devices.
This can provide hardware decoding and improved performance on supported devices.
However, we recommend testing on devices that return true
for this method.public boolean isCamera2Capable()
true
for devices that can use the Camera2 API
for capturing images