public final class FrameworkMediaCrypto extends java.lang.Object implements ExoMediaCrypto
ExoMediaCrypto implementation that wraps the framework MediaCrypto.| Constructor and Description |
|---|
FrameworkMediaCrypto(android.media.MediaCrypto mediaCrypto) |
FrameworkMediaCrypto(android.media.MediaCrypto mediaCrypto,
boolean forceAllowInsecureDecoderComponents) |
| Modifier and Type | Method and Description |
|---|---|
android.media.MediaCrypto |
getWrappedMediaCrypto()
Returns the wrapped
MediaCrypto. |
boolean |
requiresSecureDecoderComponent(java.lang.String mimeType) |
public FrameworkMediaCrypto(android.media.MediaCrypto mediaCrypto)
mediaCrypto - The MediaCrypto to wrap.public FrameworkMediaCrypto(android.media.MediaCrypto mediaCrypto,
boolean forceAllowInsecureDecoderComponents)
mediaCrypto - The MediaCrypto to wrap.forceAllowInsecureDecoderComponents - Whether to force
requiresSecureDecoderComponent(String) to return false, rather than
MediaCrypto.requiresSecureDecoderComponent(String) of the wrapped
MediaCrypto.public android.media.MediaCrypto getWrappedMediaCrypto()
MediaCrypto.public boolean requiresSecureDecoderComponent(java.lang.String mimeType)
requiresSecureDecoderComponent in interface ExoMediaCryptoMediaCrypto.requiresSecureDecoderComponent(String)