public final class FrameworkMediaCrypto extends Object implements ExoMediaCrypto
ExoMediaCrypto
implementation that wraps the framework MediaCrypto
.Constructor and Description |
---|
FrameworkMediaCrypto(MediaCrypto mediaCrypto) |
FrameworkMediaCrypto(MediaCrypto mediaCrypto,
boolean forceAllowInsecureDecoderComponents) |
Modifier and Type | Method and Description |
---|---|
MediaCrypto |
getWrappedMediaCrypto()
Returns the wrapped
MediaCrypto . |
boolean |
requiresSecureDecoderComponent(String mimeType) |
public FrameworkMediaCrypto(MediaCrypto mediaCrypto)
mediaCrypto
- The MediaCrypto
to wrap.public FrameworkMediaCrypto(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 MediaCrypto getWrappedMediaCrypto()
MediaCrypto
.public boolean requiresSecureDecoderComponent(String mimeType)
requiresSecureDecoderComponent
in interface ExoMediaCrypto
MediaCrypto.requiresSecureDecoderComponent(String)