@Deprecated
public static interface Session.SessionOptionsProvider
Session(Context context, String apiKey, String
sessionId, SessionOptionsProvider optionsProvider)
constructor when creating the session,
and pass in an object that implements this interface as the optionsProvider
parameter. Then implement the isHwDecodingSupported()
method to define whether the
Session will use the Android
MediaCodec
class to decode video. This can provide hardware decoding on supported devices.
We recommend testing on devices that return true
for this method.
This interface is now deprecated, please subclass SessionOptions class in order
to configure the sessionModifier and Type | Method and Description |
---|---|
boolean |
isHwDecodingSupported()
Deprecated.
Return
true for devices that should use the Android
MediaCodec class to decode video. |
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.