Skip navigation links
A B C D E F G H I K L M N O P Q R S T U V W 

A

absoluteStreamPosition - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
Use DataSpec.position except for specific use cases where the absolute position within the resource is required within a DataSource chain. Where the absolute position is required, use uriPositionOffset + position.
accept(T) - Method in interface tv.danmaku.ijk.media.drm.util.Consumer
Performs this operation on the given argument.
acquire(DrmSessionEventListener.EventDispatcher) - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Increments the reference count.
acquire() - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
acquire(DrmSessionEventListener.EventDispatcher) - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
acquire() - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Increments the reference count.
acquire() - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
acquireExoMediaDrm(UUID) - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.AppManagedProvider
 
acquireExoMediaDrm(UUID) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm.Provider
Returns an ExoMediaDrm instance with an incremented reference count.
acquireSession(Looper, DrmSessionEventListener.EventDispatcher, DrmInitData, String) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
 
acquireSession(Looper, DrmSessionEventListener.EventDispatcher, DrmInitData, String) - Method in interface tv.danmaku.ijk.media.drm.DrmSessionManager
Returns a DrmSession for the specified DrmInitData, with an incremented reference count.
acquireSession(DrmInitInfo, int) - Method in class tv.danmaku.ijk.media.drm.wrapper.DefaultDrmManager
 
add(E) - Method in class tv.danmaku.ijk.media.drm.util.CopyOnWriteMultiset
Adds element to the multiset.
addEventListener(Handler, DrmSessionEventListener) - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
Adds a listener to the event dispatcher.
addTransferListener(TransferListener) - Method in class tv.danmaku.ijk.media.drm.upstream.BaseDataSource
 
addTransferListener(TransferListener) - Method in interface tv.danmaku.ijk.media.drm.upstream.DataSource
Adds a TransferListener to listen to data transfers.
addTransferListener(TransferListener) - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
 
AppManagedProvider(ExoMediaDrm) - Constructor for class tv.danmaku.ijk.media.drm.ExoMediaDrm.AppManagedProvider
Creates an instance that provides the given ExoMediaDrm.
areEqual(Object, Object) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Tests two objects for Object.equals(Object) equality, handling the case where one or both may be null.
Assertions - Class in tv.danmaku.ijk.media.drm.util
Provides methods for asserting the truth of expressions and properties.
AUDIO_MP4 - Static variable in class tv.danmaku.ijk.media.drm.util.MimeTypes
 

B

BASE_TYPE_AUDIO - Static variable in class tv.danmaku.ijk.media.drm.util.MimeTypes
 
BASE_TYPE_VIDEO - Static variable in class tv.danmaku.ijk.media.drm.util.MimeTypes
 
BaseDataSource - Class in tv.danmaku.ijk.media.drm.upstream
Base DataSource implementation to keep a list of TransferListeners.
BaseDataSource(boolean) - Constructor for class tv.danmaku.ijk.media.drm.upstream.BaseDataSource
Creates base data source.
BaseFactory() - Constructor for class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.BaseFactory
 
bitsLeft() - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Returns the number of bits yet to be read.
build(MediaDrmCallback) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Builds a DefaultDrmSessionManager instance.
build() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
Builds a DataSpec with the builder's current values.
Builder() - Constructor for class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Creates a builder with default values.
Builder() - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
Creates a new instance with default values.
buildPsshAtom(UUID, byte[]) - Static method in class tv.danmaku.ijk.media.drm.util.PsshAtomUtil
Builds a version 0 PSSH atom for a given system id, containing the given data.
buildPsshAtom(UUID, UUID[], byte[]) - Static method in class tv.danmaku.ijk.media.drm.util.PsshAtomUtil
Builds a PSSH atom for the given system id, containing the given key ids and data.
buildUpon() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns a DataSpec.Builder initialized with the values of this instance.
byteAlign() - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Aligns the position to the next byte boundary.
bytesLeft() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Returns the number of bytes yet to be read.
bytesLoaded - Variable in exception tv.danmaku.ijk.media.drm.MediaDrmCallbackException
The number of bytes obtained from the server.
bytesRead() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSourceInputStream
Returns the total number of bytes that have been read or skipped.
bytesRead() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Returns the number of bytes that have been read since the most recent call to DefaultHttpDataSource.open(DataSpec).
bytesRemaining() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Returns the number of bytes that are still to be read for the current DataSpec.
bytesSkipped() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Returns the number of bytes that have been skipped since the most recent call to DefaultHttpDataSource.open(DataSpec).
bytesTransferred(int) - Method in class tv.danmaku.ijk.media.drm.upstream.BaseDataSource
Notifies listeners that bytes were transferred.

C

C - Class in tv.danmaku.ijk.media.drm.util
 
C() - Constructor for class tv.danmaku.ijk.media.drm.util.C
 
canReplace(DrmInitData.SchemeData) - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
Returns whether this DrmInitData.SchemeData can be used to replace other.
capacity() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Returns the capacity of the array, which may be larger than the limit.
castNonNull(T) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Casts a nullable variable to a non-null variable without runtime null check.
CENC_TYPE_cbc1 - Static variable in class tv.danmaku.ijk.media.drm.util.C
"cbc1" scheme type name as defined in ISO/IEC 23001-7:2016.
CENC_TYPE_cbcs - Static variable in class tv.danmaku.ijk.media.drm.util.C
"cbcs" scheme type name as defined in ISO/IEC 23001-7:2016.
CENC_TYPE_cenc - Static variable in class tv.danmaku.ijk.media.drm.util.C
"cenc" scheme type name as defined in ISO/IEC 23001-7:2016.
CENC_TYPE_cens - Static variable in class tv.danmaku.ijk.media.drm.util.C
"cens" scheme type name as defined in ISO/IEC 23001-7:2016.
Charsets - Class in tv.danmaku.ijk.media.drm.util
 
checkArgument(boolean) - Static method in class tv.danmaku.ijk.media.drm.util.Assertions
Throws IllegalArgumentException if expression evaluates to false.
checkArgument(boolean, Object) - Static method in class tv.danmaku.ijk.media.drm.util.Assertions
Throws IllegalArgumentException if expression evaluates to false.
checkNotNull(T) - Static method in class tv.danmaku.ijk.media.drm.util.Assertions
Throws NullPointerException if reference is null.
checkState(boolean) - Static method in class tv.danmaku.ijk.media.drm.util.Assertions
Throws IllegalStateException if expression evaluates to false.
checkState(boolean, Object) - Static method in class tv.danmaku.ijk.media.drm.util.Assertions
Throws IllegalStateException if expression evaluates to false.
checkStateNotNull(T, Object) - Static method in class tv.danmaku.ijk.media.drm.util.Assertions
Throws IllegalStateException if reference is null.
clear() - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.RequestProperties
Clears all request properties.
clearAllKeyRequestProperties() - Method in class tv.danmaku.ijk.media.drm.HttpMediaDrmCallback
Clears all headers for key requests made by the callback.
clearAllRequestProperties() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
clearAllRequestProperties() - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
Clears all request headers that were set by HttpDataSource.setRequestProperty(String, String).
clearAndSet(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.RequestProperties
Removes all properties previously existing and sets the keys and values of the map.
CLEARKEY_UUID - Static variable in class tv.danmaku.ijk.media.drm.util.C
UUID for the ClearKey DRM scheme.
clearKeyRequestProperty(String) - Method in class tv.danmaku.ijk.media.drm.HttpMediaDrmCallback
Clears a header for key requests made by the callback.
clearRequestProperty(String) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
clearRequestProperty(String) - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
Clears the value of a request header.
CleartextNotPermittedException(IOException, DataSpec) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.CleartextNotPermittedException
 
close() - Method in interface tv.danmaku.ijk.media.drm.upstream.DataSource
Closes the source.
close() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSourceInputStream
 
close() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
close() - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
 
close() - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
 
closeQuietly(Closeable) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Closes a Closeable, suppressing any IOException that may occur.
closeSession(byte[]) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
closeSession(byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Closes a DRM session.
closeSession(byte[]) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
COMMON_PSSH_UUID - Static variable in class tv.danmaku.ijk.media.drm.util.C
UUID for the W3C Common PSSH box.
compare(DrmInitData.SchemeData, DrmInitData.SchemeData) - Method in class tv.danmaku.ijk.media.drm.DrmInitData
 
Consumer<T> - Interface in tv.danmaku.ijk.media.drm.util
Represents an operation that accepts a single input argument and returns no result.
contentType - Variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidContentTypeException
 
CopyOnWriteMultiset<E> - Class in tv.danmaku.ijk.media.drm.util
An unordered collection of elements that allows duplicates, but also allows access to a set of unique elements.
CopyOnWriteMultiset() - Constructor for class tv.danmaku.ijk.media.drm.util.CopyOnWriteMultiset
 
copyWithData(byte[]) - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
Returns a copy of this instance with the specified data.
copyWithSchemeType(String) - Method in class tv.danmaku.ijk.media.drm.DrmInitData
Returns a copy with the specified protection scheme type.
createDataSource() - Method in interface tv.danmaku.ijk.media.drm.upstream.DataSource.Factory
Creates a DataSource instance.
createDataSource() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
 
createDataSource() - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.BaseFactory
 
createDataSource() - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource.Factory
 
createDataSourceInternal(HttpDataSource.RequestProperties) - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.BaseFactory
createMediaCrypto(byte[]) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
createMediaCrypto(byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Creates an ExoMediaCrypto for a given session.
createMediaCrypto(byte[]) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
createSessionCreationData(DrmInitData, DrmInitData) - Static method in class tv.danmaku.ijk.media.drm.DrmInitData
Merges DrmInitData obtained from a media manifest and a media stream.
CREATOR - Static variable in class tv.danmaku.ijk.media.drm.DrmInitData
 
CREATOR - Static variable in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
 
customData - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Application specific data.

D

data - Variable in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
The initialization data.
data - Variable in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
 
DataReader - Interface in tv.danmaku.ijk.media.drm.upstream
Reads bytes from a data stream.
DataSource - Interface in tv.danmaku.ijk.media.drm.upstream
Reads data from URI-identified resources.
DataSource.Factory - Interface in tv.danmaku.ijk.media.drm.upstream
A factory for DataSource instances.
DataSourceException - Exception in tv.danmaku.ijk.media.drm.upstream
Used to specify reason of a DataSource error.
DataSourceException(int) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.DataSourceException
Constructs a DataSourceException.
DataSourceInputStream - Class in tv.danmaku.ijk.media.drm.upstream
Allows data corresponding to a given DataSpec to be read from a DataSource and consumed through an InputStream.
DataSourceInputStream(DataSource, DataSpec) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSourceInputStream
 
dataSpec - Variable in exception tv.danmaku.ijk.media.drm.MediaDrmCallbackException
The DataSpec associated with the request.
DataSpec - Class in tv.danmaku.ijk.media.drm.upstream
Defines a region of data in a resource.
DataSpec(Uri) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Constructs an instance.
DataSpec(Uri, long, long) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Constructs an instance.
DataSpec(Uri, int) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
DataSpec(Uri, long, long, String) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
DataSpec(Uri, long, long, String, int) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
DataSpec(Uri, long, long, String, int, Map<String, String>) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
DataSpec(Uri, long, long, long, String, int) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
DataSpec(Uri, byte[], long, long, long, String, int) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
Use DataSpec.Builder. Note that the httpMethod must be set explicitly for the Builder.
DataSpec(Uri, int, byte[], long, long, long, String, int) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
DataSpec(Uri, int, byte[], long, long, long, String, int, Map<String, String>) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DataSpec
Deprecated.
dataSpec - Variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
The DataSpec associated with the current connection.
DataSpec.Builder - Class in tv.danmaku.ijk.media.drm.upstream
Builds DataSpec instances.
DataSpec.Flags - Annotation Type in tv.danmaku.ijk.media.drm.upstream
The flags that apply to any request for data.
DataSpec.HttpMethod - Annotation Type in tv.danmaku.ijk.media.drm.upstream
HTTP methods supported by ExoPlayer HttpDataSources.
DEFAULT_CONNECT_TIMEOUT_MILLIS - Static variable in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
The default connection timeout, in milliseconds.
DEFAULT_PROVIDER - Static variable in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
ExoMediaDrm.Provider that returns a new FrameworkMediaDrm for the requested UUID.
DEFAULT_READ_TIMEOUT_MILLIS - Static variable in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
The default read timeout, in milliseconds.
DEFAULT_SESSION_KEEPALIVE_MS - Static variable in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
DefaultDrmManager - Class in tv.danmaku.ijk.media.drm.wrapper
 
DefaultDrmManager(String, Map<String, String>, UUID, boolean) - Constructor for class tv.danmaku.ijk.media.drm.wrapper.DefaultDrmManager
 
DefaultDrmSessionManager - Class in tv.danmaku.ijk.media.drm
A DrmSessionManager that supports playbacks using ExoMediaDrm.
DefaultDrmSessionManager(UUID, ExoMediaDrm, MediaDrmCallback, HashMap<String, String>) - Constructor for class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Deprecated.
DefaultDrmSessionManager(UUID, ExoMediaDrm, MediaDrmCallback, HashMap<String, String>, boolean) - Constructor for class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Deprecated.
DefaultDrmSessionManager(UUID, ExoMediaDrm, MediaDrmCallback, HashMap<String, String>, boolean, int) - Constructor for class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Deprecated.
DefaultDrmSessionManager.Builder - Class in tv.danmaku.ijk.media.drm
Builder for DefaultDrmSessionManager instances.
DefaultDrmSessionManager.MissingSchemeDataException - Exception in tv.danmaku.ijk.media.drm
DefaultDrmSessionManager.Mode - Annotation Type in tv.danmaku.ijk.media.drm
Determines the action to be done after a session acquired.
DefaultHttpDataSource - Class in tv.danmaku.ijk.media.drm.upstream
An HttpDataSource that uses Android's HttpURLConnection.
DefaultHttpDataSource() - Constructor for class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Deprecated.
DefaultHttpDataSource(String) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Deprecated.
DefaultHttpDataSource(String, int, int) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Deprecated.
DefaultHttpDataSource(String, int, int, boolean, HttpDataSource.RequestProperties) - Constructor for class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Deprecated.
DefaultHttpDataSource.Factory - Class in tv.danmaku.ijk.media.drm.upstream
describeContents() - Method in class tv.danmaku.ijk.media.drm.DrmInitData
 
describeContents() - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
 
DRM_UNSUPPORTED - Static variable in interface tv.danmaku.ijk.media.drm.DrmSessionManager
An instance that supports no DRM schemes.
DrmInitData - Class in tv.danmaku.ijk.media.drm
Initialization data for one or more DRM schemes.
DrmInitData(List<DrmInitData.SchemeData>) - Constructor for class tv.danmaku.ijk.media.drm.DrmInitData
 
DrmInitData(String, List<DrmInitData.SchemeData>) - Constructor for class tv.danmaku.ijk.media.drm.DrmInitData
 
DrmInitData(DrmInitData.SchemeData...) - Constructor for class tv.danmaku.ijk.media.drm.DrmInitData
 
DrmInitData(String, DrmInitData.SchemeData...) - Constructor for class tv.danmaku.ijk.media.drm.DrmInitData
 
DrmInitData.SchemeData - Class in tv.danmaku.ijk.media.drm
Scheme initialization data.
drmKeysLoaded() - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
drmKeysRemoved() - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
drmKeysRestored() - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
DrmSession - Interface in tv.danmaku.ijk.media.drm
A DRM session.
DrmSession.DrmSessionException - Exception in tv.danmaku.ijk.media.drm
Wraps the throwable which is the cause of the error state.
DrmSession.State - Annotation Type in tv.danmaku.ijk.media.drm
The state of the DRM session.
drmSessionAcquired(boolean) - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
DrmSessionEventListener - Interface in tv.danmaku.ijk.media.drm
Listener of DrmSessionManager events.
DrmSessionEventListener.EventDispatcher - Class in tv.danmaku.ijk.media.drm
Dispatches events to DrmSessionEventListeners.
DrmSessionException(Throwable) - Constructor for exception tv.danmaku.ijk.media.drm.DrmSession.DrmSessionException
 
DrmSessionManager - Interface in tv.danmaku.ijk.media.drm
Manages a DRM session.
drmSessionManagerError(Exception) - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
drmSessionReleased() - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
DUMMY - Static variable in interface tv.danmaku.ijk.media.drm.DrmSessionManager
DummyExoMediaDrm - Class in tv.danmaku.ijk.media.drm
An ExoMediaDrm that does not support any protection schemes.
DummyExoMediaDrm() - Constructor for class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 

E

elementSet() - Method in class tv.danmaku.ijk.media.drm.util.CopyOnWriteMultiset
Returns a snapshot of the unique elements currently in this multiset.
EMPTY_BYTE_ARRAY - Static variable in class tv.danmaku.ijk.media.drm.util.Util
An empty byte array.
ensureCapacity(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Ensures the backing array is at least requiredCapacity long.
equals(Object) - Method in class tv.danmaku.ijk.media.drm.DrmInitData
 
equals(Object) - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
 
ErrorStateDrmSession - Class in tv.danmaku.ijk.media.drm
A DrmSession that's in a terminal error state.
ErrorStateDrmSession(DrmSession.DrmSessionException) - Constructor for class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
EVENT_KEY_EXPIRED - Static variable in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Event indicating that keys have expired, and are no longer usable.
EVENT_KEY_REQUIRED - Static variable in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Event indicating that keys need to be requested from the license server.
EVENT_PROVISION_REQUIRED - Static variable in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Event indicating that a certificate needs to be requested from the provisioning server.
EventDispatcher() - Constructor for class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
Creates an event dispatcher.
executeKeyRequest(UUID, ExoMediaDrm.KeyRequest) - Method in class tv.danmaku.ijk.media.drm.HttpMediaDrmCallback
 
executeKeyRequest(UUID, ExoMediaDrm.KeyRequest) - Method in interface tv.danmaku.ijk.media.drm.MediaDrmCallback
Executes a key request.
executeProvisionRequest(UUID, ExoMediaDrm.ProvisionRequest) - Method in class tv.danmaku.ijk.media.drm.HttpMediaDrmCallback
 
executeProvisionRequest(UUID, ExoMediaDrm.ProvisionRequest) - Method in interface tv.danmaku.ijk.media.drm.MediaDrmCallback
Executes a provisioning request.
ExoMediaCrypto - Interface in tv.danmaku.ijk.media.drm
Enables decoding of encrypted data using keys in a DRM session.
ExoMediaDrm - Interface in tv.danmaku.ijk.media.drm
Used to obtain keys for decrypting protected media streams.
ExoMediaDrm.AppManagedProvider - Class in tv.danmaku.ijk.media.drm
Provides an ExoMediaDrm instance owned by the app.
ExoMediaDrm.KeyRequest - Class in tv.danmaku.ijk.media.drm
Contains data used to request keys from a license server.
ExoMediaDrm.KeyRequest.RequestType - Annotation Type in tv.danmaku.ijk.media.drm
Key request types.
ExoMediaDrm.KeyStatus - Class in tv.danmaku.ijk.media.drm
Defines the status of a key.
ExoMediaDrm.OnEventListener - Interface in tv.danmaku.ijk.media.drm
Called when a DRM event occurs.
ExoMediaDrm.OnExpirationUpdateListener - Interface in tv.danmaku.ijk.media.drm
Called when a session expiration update occurs.
ExoMediaDrm.OnKeyStatusChangeListener - Interface in tv.danmaku.ijk.media.drm
Called when the keys in a DRM session change state.
ExoMediaDrm.Provider - Interface in tv.danmaku.ijk.media.drm
Provider for ExoMediaDrm instances.
ExoMediaDrm.ProvisionRequest - Class in tv.danmaku.ijk.media.drm
Contains data to request a certificate from a provisioning server.

F

Factory() - Constructor for class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
Creates an instance.
FLAG_ALLOW_CACHE_FRAGMENTATION - Static variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Allows fragmentation of this request into multiple cache files, meaning a cache eviction policy will be able to evict individual fragments of the data.
FLAG_ALLOW_GZIP - Static variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Allows an underlying network stack to request that the server use gzip compression.
FLAG_DONT_CACHE_IF_LENGTH_UNKNOWN - Static variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Prevents caching if the length cannot be resolved when the DataSource is opened.
FLAG_MIGHT_NOT_USE_FULL_NETWORK_SPEED - Static variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Indicates there are known external factors that might prevent the data from being loaded at full network speed (e.g.
flags - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Request flags.
forceAllowInsecureDecoderComponents - Variable in class tv.danmaku.ijk.media.drm.FrameworkMediaCrypto
Whether to allow use of insecure decoder components even if the underlying platform says otherwise.
FrameworkMediaCrypto - Class in tv.danmaku.ijk.media.drm
An ExoMediaCrypto implementation that contains the necessary information to build or update a framework MediaCrypto.
FrameworkMediaCrypto(UUID, byte[], boolean) - Constructor for class tv.danmaku.ijk.media.drm.FrameworkMediaCrypto
 
FrameworkMediaDrm - Class in tv.danmaku.ijk.media.drm
An ExoMediaDrm implementation that wraps the framework MediaDrm.
fromUtf8Bytes(byte[]) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Returns a new String constructed by decoding UTF-8 encoded bytes.
fromUtf8Bytes(byte[], int, int) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Returns a new String constructed by decoding UTF-8 encoded bytes in a subarray.

G

get(int) - Method in class tv.danmaku.ijk.media.drm.DrmInitData
Retrieves the DrmInitData.SchemeData at a given index.
getBytePosition() - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Returns the current byte offset.
getBytesRead() - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
Returns the total number of bytes that have been read from the data source.
getConnection() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Returns the current connection, or null if the source is not currently opened.
getData() - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Returns the opaque key request data.
getData() - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.ProvisionRequest
Returns the opaque provisioning request data.
getData() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Returns the underlying array.
getDefaultRequestProperties() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
getDefaultRequestProperties() - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.BaseFactory
getDefaultRequestProperties() - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource.Factory
getDefaultUrl() - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.ProvisionRequest
Returns the default URL of the provisioning server to which the request can be made, or the empty string if not known.
getDrmSessionState(int, int) - Method in class tv.danmaku.ijk.media.drm.wrapper.DefaultDrmManager
 
getDummyDrmSessionManager() - Static method in interface tv.danmaku.ijk.media.drm.DrmSessionManager
getError() - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Returns the cause of the error state, or null if DrmSession.getState() is not DrmSession.STATE_ERROR.
getError() - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
getExoMediaCryptoType(DrmInitData, String) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
 
getExoMediaCryptoType(DrmInitData, String) - Method in interface tv.danmaku.ijk.media.drm.DrmSessionManager
Returns the ExoMediaCrypto type associated to sessions acquired for the given DrmInitData.
getExoMediaCryptoType() - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
getExoMediaCryptoType() - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
getExoMediaCryptoType() - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
getHttpMethodString() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns the uppercase HTTP method name (e.g., "GET", "POST", "HEAD") corresponding to the DataSpec.httpMethod.
getInstance() - Static method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
Returns a new instance.
getKeyId() - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyStatus
Returns the ID of the key.
getKeyRequest(byte[], List<DrmInitData.SchemeData>, int, HashMap<String, String>) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
getKeyRequest(byte[], List<DrmInitData.SchemeData>, int, HashMap<String, String>) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Generates a key request.
getKeyRequest(byte[], List<DrmInitData.SchemeData>, int, HashMap<String, String>) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
getLastOpenedUri() - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
Returns the Uri associated with the last StatsDataSource.open(DataSpec) call.
getLastResponseHeaders() - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
Returns the response headers associated with the last StatsDataSource.open(DataSpec) call.
getLicenseDurationRemainingSec(DrmSession) - Static method in class tv.danmaku.ijk.media.drm.WidevineUtil
Returns license and playback durations remaining in seconds.
getLicenseServerUrl() - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Returns the URL of the license server to which the request should be made.
getMediaCrypto() - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Returns an ExoMediaCrypto for the open session, or null if called before the session has been opened or after it's been released.
getMediaCrypto() - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
getMediaCrypto(int) - Method in class tv.danmaku.ijk.media.drm.wrapper.DefaultDrmManager
 
getMetrics() - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
getMetrics() - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Returns metrics data for this ExoMediaDrm instance, or null if metrics are unavailable.
getMetrics() - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
getOfflineLicenseKeySetId() - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Returns the key set id of the offline license loaded into this session, or null if there isn't one.
getOfflineLicenseKeySetId() - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
getPosition() - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Returns the current bit offset.
getPosition() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Returns the current offset in the array, in bytes.
getPropertyByteArray(String) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
getPropertyByteArray(String) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Returns the value of a byte array property.
getPropertyByteArray(String) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
getPropertyString(String) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
getPropertyString(String) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Returns the value of a string property.
getPropertyString(String) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
getProvisionRequest() - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
getProvisionRequest() - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Generates a provisioning request.
getProvisionRequest() - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
getRequestType() - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Returns the type of the request, or ExoMediaDrm.KeyRequest.REQUEST_TYPE_UNKNOWN if the underlying key request does not specify a type.
getResponseCode() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
getResponseCode() - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
When the source is open, returns the HTTP response status code associated with the last HttpDataSource.open(tv.danmaku.ijk.media.drm.upstream.DataSpec) call.
getResponseHeaders() - Method in interface tv.danmaku.ijk.media.drm.upstream.DataSource
When the source is open, returns the response headers associated with the last DataSource.open(tv.danmaku.ijk.media.drm.upstream.DataSpec) call.
getResponseHeaders() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
getResponseHeaders() - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
 
getResponseHeaders() - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
 
getSchemeUuid() - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Returns the DRM scheme UUID for this session.
getSchemeUuid() - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
getSnapshot() - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.RequestProperties
Gets a snapshot of the request properties.
getState() - Method in interface tv.danmaku.ijk.media.drm.DrmSession
getState() - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
getStatusCode() - Method in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyStatus
Returns the status of the key, as defined by MediaDrm.KeyStatus#getStatusCode().
getStringForHttpMethod(int) - Static method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns an uppercase HTTP method name (e.g., "GET", "POST", "HEAD") corresponding to the given DataSpec.HttpMethod.
getTrackType(String) - Static method in class tv.danmaku.ijk.media.drm.util.MimeTypes
Returns the C.TRACK_TYPE_* constant corresponding to a specified MIME type, or C.TRACK_TYPE_UNKNOWN if it could not be determined.
getUri() - Method in interface tv.danmaku.ijk.media.drm.upstream.DataSource
When the source is open, returns the Uri from which data is being read.
getUri() - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
getUri() - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
 
getUtf8Bytes(String) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Returns a new byte array containing the code points of a String encoded using UTF-8.

H

hasData() - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
Returns whether DrmInitData.SchemeData.data is non-null.
hashCode() - Method in class tv.danmaku.ijk.media.drm.DrmInitData
 
hashCode() - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
 
headerFields - Variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidResponseCodeException
An unmodifiable map of the response header fields and values.
HTTP_METHOD_GET - Static variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
HTTP GET method.
HTTP_METHOD_HEAD - Static variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
HTTP HEAD method.
HTTP_METHOD_POST - Static variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
HTTP POST method.
httpBody - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
The HTTP request body, null otherwise.
HttpDataSource - Interface in tv.danmaku.ijk.media.drm.upstream
An HTTP DataSource.
HttpDataSource.BaseFactory - Class in tv.danmaku.ijk.media.drm.upstream
Base implementation of HttpDataSource.Factory that sets default request properties.
HttpDataSource.CleartextNotPermittedException - Exception in tv.danmaku.ijk.media.drm.upstream
Thrown when cleartext HTTP traffic is not permitted.
HttpDataSource.Factory - Interface in tv.danmaku.ijk.media.drm.upstream
A factory for HttpDataSource instances.
HttpDataSource.HttpDataSourceException - Exception in tv.danmaku.ijk.media.drm.upstream
Thrown when an error is encountered when trying to read from a HttpDataSource.
HttpDataSource.HttpDataSourceException.Type - Annotation Type in tv.danmaku.ijk.media.drm.upstream
 
HttpDataSource.InvalidContentTypeException - Exception in tv.danmaku.ijk.media.drm.upstream
Thrown when the content type is invalid.
HttpDataSource.InvalidResponseCodeException - Exception in tv.danmaku.ijk.media.drm.upstream
Thrown when an attempt to open a connection results in a response code not in the 2xx range.
HttpDataSource.RequestProperties - Class in tv.danmaku.ijk.media.drm.upstream
Stores HTTP request properties (aka HTTP headers) and provides methods to modify the headers in a thread safe way to avoid the potential of creating snapshots of an inconsistent or unintended state.
HttpDataSourceException(DataSpec, int) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 
HttpDataSourceException(String, DataSpec, int) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 
HttpDataSourceException(IOException, DataSpec, int) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 
HttpDataSourceException(String, IOException, DataSpec, int) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 
HttpMediaDrmCallback - Class in tv.danmaku.ijk.media.drm
A MediaDrmCallback that makes requests using HttpDataSource instances.
HttpMediaDrmCallback(String, HttpDataSource.Factory) - Constructor for class tv.danmaku.ijk.media.drm.HttpMediaDrmCallback
 
HttpMediaDrmCallback(String, boolean, HttpDataSource.Factory) - Constructor for class tv.danmaku.ijk.media.drm.HttpMediaDrmCallback
 
httpMethod - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
The HTTP method to use when requesting the data.
httpRequestHeaders - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Additional HTTP headers to use when requesting the data.

I

INDEX_UNSET - Static variable in class tv.danmaku.ijk.media.drm.util.C
Represents an unset or unknown index.
INITIAL_DRM_REQUEST_RETRY_COUNT - Static variable in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Number of times to retry for initial provisioning and key request for reporting error.
InvalidContentTypeException(String, DataSpec) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidContentTypeException
 
InvalidResponseCodeException(int, Map<String, List<String>>, DataSpec) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidResponseCodeException
InvalidResponseCodeException(int, String, Map<String, List<String>>, DataSpec) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidResponseCodeException
InvalidResponseCodeException(int, String, Map<String, List<String>>, DataSpec, byte[]) - Constructor for exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidResponseCodeException
 
isAudio(String) - Static method in class tv.danmaku.ijk.media.drm.util.MimeTypes
Returns whether the given string is an audio MIME type.
isCausedByPositionOutOfRange(IOException) - Static method in exception tv.danmaku.ijk.media.drm.upstream.DataSourceException
Returns whether the given IOException was caused by a DataSourceException whose DataSourceException.reason is DataSourceException.POSITION_OUT_OF_RANGE in its cause stack.
isCryptoSchemeSupported(UUID) - Static method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
Returns whether the DRM scheme with the given UUID is supported on this device.
isFlagSet(int) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns whether the given flag is set.
isLinebreak(int) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Returns whether the given character is a carriage return ('\r') or a line feed ('\n').
isPsshAtom(byte[]) - Static method in class tv.danmaku.ijk.media.drm.util.PsshAtomUtil
Returns whether the data is a valid PSSH atom.
isVideo(String) - Static method in class tv.danmaku.ijk.media.drm.util.MimeTypes
Returns whether the given string is a video MIME type.
iterator() - Method in class tv.danmaku.ijk.media.drm.util.CopyOnWriteMultiset
Returns an iterator over a snapshot of all the elements currently in this multiset (including duplicates).

K

key - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
A key that uniquely identifies the resource.
KEY_TYPE_OFFLINE - Static variable in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Key request type for keys that will be used for offline use.
KEY_TYPE_RELEASE - Static variable in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Key request type indicating that saved offline keys should be released.
KEY_TYPE_STREAMING - Static variable in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Key request type for keys that will be used for online use.
KeyRequest(byte[], String) - Constructor for class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
KeyRequest(byte[], String, int) - Constructor for class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Creates an instance.
KeysExpiredException - Exception in tv.danmaku.ijk.media.drm
Thrown when the drm keys loaded into an open session expire.
KeysExpiredException() - Constructor for exception tv.danmaku.ijk.media.drm.KeysExpiredException
 
KeyStatus(int, byte[]) - Constructor for class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyStatus
Creates an instance.

L

length - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
The length of the data, or C.LENGTH_UNSET.
LENGTH_UNSET - Static variable in class tv.danmaku.ijk.media.drm.util.C
Represents an unset or unknown length.
licenseServerUrl - Variable in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
The URL of the server to which license requests should be made.
limit() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Returns the limit.
linearSearch(int[], int) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Returns the index of the first occurrence of value in array, or C.INDEX_UNSET if value is not contained in array.

M

MANUFACTURER - Static variable in class tv.danmaku.ijk.media.drm.util.Util
Like Build.MANUFACTURER, but in a place where it can be conveniently overridden for local testing.
matches(UUID) - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
Returns whether this initialization data applies to the specified scheme.
MediaDrmCallback - Interface in tv.danmaku.ijk.media.drm
Performs ExoMediaDrm key and provisioning requests.
MediaDrmCallbackException - Exception in tv.danmaku.ijk.media.drm
Thrown when an error occurs while executing a DRM key or provisioning request.
MediaDrmCallbackException(DataSpec, Uri, Map<String, List<String>>, long, Throwable) - Constructor for exception tv.danmaku.ijk.media.drm.MediaDrmCallbackException
Creates a new instance with the given values.
merge(DrmInitData) - Method in class tv.danmaku.ijk.media.drm.DrmInitData
Returns an instance containing the DrmInitData.schemeDatas from both this and other.
MILLIS_PER_SECOND - Static variable in class tv.danmaku.ijk.media.drm.util.C
The number of milliseconds in one second.
mimeType - Variable in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
MimeTypes - Class in tv.danmaku.ijk.media.drm.util
Defines common MIME types and helper methods.
MimeTypes() - Constructor for class tv.danmaku.ijk.media.drm.util.MimeTypes
 
MODE_DOWNLOAD - Static variable in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Downloads an offline license or renews an existing one.
MODE_PLAYBACK - Static variable in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Loads and refreshes (if necessary) a license for playback.
MODE_QUERY - Static variable in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Restores an offline license to allow its status to be queried.
MODE_RELEASE - Static variable in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Releases an existing offline license.
MODEL - Static variable in class tv.danmaku.ijk.media.drm.util.Util
Like Build.MODEL, but in a place where it can be conveniently overridden for local testing.

N

newInstance(UUID) - Static method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
Creates an instance with an initial reference count of 1.
nullSafeArrayConcatenation(T[], T[]) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Creates a new array containing the concatenation of two non-null type arrays.

O

onBytesTransferred(DataSource, DataSpec, boolean, int) - Method in interface tv.danmaku.ijk.media.drm.upstream.TransferListener
Called incrementally during a transfer.
onDrmKeysLoaded() - Method in interface tv.danmaku.ijk.media.drm.DrmSessionEventListener
Called each time keys are loaded.
onDrmKeysRemoved() - Method in interface tv.danmaku.ijk.media.drm.DrmSessionEventListener
Called each time offline keys are removed.
onDrmKeysRestored() - Method in interface tv.danmaku.ijk.media.drm.DrmSessionEventListener
Called each time offline keys are restored.
onDrmSessionAcquired(boolean) - Method in interface tv.danmaku.ijk.media.drm.DrmSessionEventListener
Called each time a drm session is acquired.
onDrmSessionManagerError(Exception) - Method in interface tv.danmaku.ijk.media.drm.DrmSessionEventListener
Called when a drm error occurs.
onDrmSessionReleased() - Method in interface tv.danmaku.ijk.media.drm.DrmSessionEventListener
Called each time a drm session is released.
onEvent(ExoMediaDrm, byte[], int, int, byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm.OnEventListener
Called when an event occurs that requires the app to be notified
onExpirationUpdate(ExoMediaDrm, byte[], long) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm.OnExpirationUpdateListener
Called when a session expiration update occurs, to inform the app about the change in expiration time.
onKeyStatusChange(ExoMediaDrm, byte[], List<ExoMediaDrm.KeyStatus>, boolean) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm.OnKeyStatusChangeListener
Called when the keys in a session change status, such as when the license is renewed or expires.
onTransferEnd(DataSource, DataSpec, boolean) - Method in interface tv.danmaku.ijk.media.drm.upstream.TransferListener
Called when a transfer ends.
onTransferInitializing(DataSource, DataSpec, boolean) - Method in interface tv.danmaku.ijk.media.drm.upstream.TransferListener
Called when a transfer is being initialized.
onTransferStart(DataSource, DataSpec, boolean) - Method in interface tv.danmaku.ijk.media.drm.upstream.TransferListener
Called when a transfer starts.
open(DataSpec) - Method in interface tv.danmaku.ijk.media.drm.upstream.DataSource
Opens the source to read the specified data.
open() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSourceInputStream
Optional call to open the underlying DataSource.
open(DataSpec) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
Opens the source to read the specified data.
open(DataSpec) - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
Opens the source to read the specified data.
open(DataSpec) - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
 
openSession() - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
openSession() - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Opens a new DRM session.
openSession() - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 

P

ParsableBitArray - Class in tv.danmaku.ijk.media.drm.util
Wraps a byte array, providing methods that allow it to be read as a bitstream.
ParsableBitArray() - Constructor for class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Creates a new instance that initially has no backing data.
ParsableBitArray(byte[]) - Constructor for class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Creates a new instance that wraps an existing array.
ParsableBitArray(byte[], int) - Constructor for class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Creates a new instance that wraps an existing array.
ParsableByteArray - Class in tv.danmaku.ijk.media.drm.util
Wraps a byte array, providing a set of methods for parsing data from it.
ParsableByteArray() - Constructor for class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Creates a new instance that initially has no backing data.
ParsableByteArray(int) - Constructor for class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Creates a new instance with limit bytes and sets the limit.
ParsableByteArray(byte[]) - Constructor for class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Creates a new instance wrapping data, and sets the limit to data.length.
ParsableByteArray(byte[], int) - Constructor for class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Creates a new instance that wraps an existing array.
parseSchemeSpecificData(byte[], UUID) - Static method in class tv.danmaku.ijk.media.drm.util.PsshAtomUtil
Parses the scheme specific data from a PSSH atom.
parseUuid(byte[]) - Static method in class tv.danmaku.ijk.media.drm.util.PsshAtomUtil
Parses the UUID from a PSSH atom.
parseVersion(byte[]) - Static method in class tv.danmaku.ijk.media.drm.util.PsshAtomUtil
Parses the version from a PSSH atom.
peekChar() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Peeks at the next char.
peekUnsignedByte() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Peeks at the next byte as an unsigned value.
playClearSamplesWithoutKeys() - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Returns whether this session allows playback of clear samples prior to keys being loaded.
playClearSamplesWithoutKeys() - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
PLAYREADY_CUSTOM_DATA_KEY - Static variable in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
A key for specifying PlayReady custom data in the key request parameters passed to DefaultDrmSessionManager.Builder.setKeyRequestParameters(Map).
PLAYREADY_UUID - Static variable in class tv.danmaku.ijk.media.drm.util.C
UUID for the PlayReady DRM scheme.
position - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
The position of the data when read from DataSpec.uri.
POSITION_OUT_OF_RANGE - Static variable in exception tv.danmaku.ijk.media.drm.upstream.DataSourceException
 
postOrRun(Handler, Runnable) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Posts the Runnable if the calling thread differs with the Looper of the Handler.
prepare() - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
 
prepare() - Method in interface tv.danmaku.ijk.media.drm.DrmSessionManager
Acquires any required resources.
prepare() - Method in class tv.danmaku.ijk.media.drm.wrapper.DefaultDrmManager
 
PROPERTY_LICENSE_DURATION_REMAINING - Static variable in class tv.danmaku.ijk.media.drm.WidevineUtil
Widevine specific key status field name for the remaining license duration, in seconds.
PROPERTY_PLAYBACK_DURATION_REMAINING - Static variable in class tv.danmaku.ijk.media.drm.WidevineUtil
Widevine specific key status field name for the remaining playback duration, in seconds.
provideKeyResponse(byte[], byte[]) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
provideKeyResponse(byte[], byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
provideKeyResponse(byte[], byte[]) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
provideProvisionResponse(byte[]) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
provideProvisionResponse(byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Provides a provisioning response for the last request to be generated using ExoMediaDrm.getProvisionRequest().
provideProvisionResponse(byte[]) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
ProvisionRequest(byte[], String) - Constructor for class tv.danmaku.ijk.media.drm.ExoMediaDrm.ProvisionRequest
Creates an instance.
PsshAtomUtil - Class in tv.danmaku.ijk.media.drm.util
Utility methods for handling PSSH atoms.
putInt(int, int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Overwrites numBits from this array using the numBits least significant bits from value.

Q

queryKeyStatus() - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Returns a map describing the key status for the session, or null if called before the session has been opened or after it's been released.
queryKeyStatus(byte[]) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
queryKeyStatus() - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
queryKeyStatus(byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Returns the key status for a given session, as {name, value} pairs.
queryKeyStatus(byte[]) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 

R

read(byte[], int, int) - Method in interface tv.danmaku.ijk.media.drm.upstream.DataReader
Reads up to length bytes of data from the input.
read() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSourceInputStream
 
read(byte[]) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSourceInputStream
 
read(byte[], int, int) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSourceInputStream
 
read(byte[], int, int) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
read(byte[], int, int) - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
 
read(byte[], int, int) - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
 
readBit() - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Reads a single bit.
readBits(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Reads up to 32 bits.
readBits(byte[], int, int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Reads numBits bits into buffer.
readBitsToLong(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Reads up to 64 bits.
readBytes(byte[], int, int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Reads the next length bytes into buffer.
readBytes(ParsableBitArray, int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next length bytes into bitArray, and resets the position of bitArray to zero.
readBytes(byte[], int, int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next length bytes into buffer at offset.
readBytes(ByteBuffer, int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next length bytes into buffer.
readBytesAsString(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Reads the next length bytes as a UTF-8 string.
readBytesAsString(int, Charset) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Reads the next length bytes as a string encoded in Charset.
readDelimiterTerminatedString(char) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads up to the next delimiter byte (or the limit) as UTF-8 characters.
readDouble() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next eight bytes as a 64-bit floating point value.
readFloat() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes as a 32-bit floating point value.
readInt() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes as a signed value
readInt24() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next three bytes as a signed value.
readLine() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads a line of text.
readLittleEndianInt() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes as a signed value in little endian order.
readLittleEndianInt24() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next three bytes as a signed value in little endian order.
readLittleEndianLong() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next eight bytes as a signed value in little endian order.
readLittleEndianShort() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next two bytes as a signed value.
readLittleEndianUnsignedInt() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes as an unsigned value in little endian order.
readLittleEndianUnsignedInt24() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next three bytes as an unsigned value in little endian order.
readLittleEndianUnsignedIntToInt() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes as a little endian unsigned integer into an integer, if the top bit is a zero.
readLittleEndianUnsignedShort() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next two bytes as an unsigned value.
readLong() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next eight bytes as a signed value.
readNullTerminatedString(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next length bytes as UTF-8 characters.
readNullTerminatedString() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads up to the next NUL byte (or the limit) as UTF-8 characters.
readShort() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next two bytes as a signed value.
readString(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next length bytes as UTF-8 characters.
readString(int, Charset) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next length bytes as characters in the specified Charset.
readSynchSafeInt() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads a Synchsafe integer.
readUnsignedByte() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next byte as an unsigned value.
readUnsignedFixedPoint1616() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.
readUnsignedInt() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes as an unsigned value.
readUnsignedInt24() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next three bytes as an unsigned value.
readUnsignedIntToInt() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.
readUnsignedLongToLong() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.
readUnsignedShort() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads the next two bytes as an unsigned value.
readUtf8EncodedLong() - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Reads a long value encoded by UTF-8 encoding
reason - Variable in exception tv.danmaku.ijk.media.drm.UnsupportedDrmException
reason - Variable in exception tv.danmaku.ijk.media.drm.upstream.DataSourceException
The reason of this DataSourceException.
REASON_INSTANTIATION_ERROR - Static variable in exception tv.danmaku.ijk.media.drm.UnsupportedDrmException
There device advertises support for the requested DRM scheme, but there was an error instantiating it.
REASON_UNSUPPORTED_SCHEME - Static variable in exception tv.danmaku.ijk.media.drm.UnsupportedDrmException
The requested DRM scheme is unsupported by the device.
release() - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
 
release(DrmSessionEventListener.EventDispatcher) - Method in interface tv.danmaku.ijk.media.drm.DrmSession
Decrements the reference count.
release() - Method in interface tv.danmaku.ijk.media.drm.DrmSessionManager
Releases any acquired resources.
release() - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
release(DrmSessionEventListener.EventDispatcher) - Method in class tv.danmaku.ijk.media.drm.ErrorStateDrmSession
 
release() - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Decrements the reference count.
release() - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
release() - Method in class tv.danmaku.ijk.media.drm.wrapper.DefaultDrmManager
 
remove(String) - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.RequestProperties
Removes a request property by name.
remove(E) - Method in class tv.danmaku.ijk.media.drm.util.CopyOnWriteMultiset
Removes element from the multiset.
removeEventListener(DrmSessionEventListener) - Method in class tv.danmaku.ijk.media.drm.DrmSessionEventListener.EventDispatcher
Removes a listener from the event dispatcher.
replaceSession(DrmSession, DrmSession) - Static method in interface tv.danmaku.ijk.media.drm.DrmSession
Acquires newSession then releases previousSession.
REQUEST_TYPE_INITIAL - Static variable in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Key request type for an initial license request.
REQUEST_TYPE_NONE - Static variable in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Key request type if keys are already loaded and available for use.
REQUEST_TYPE_RELEASE - Static variable in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Key request type for license release.
REQUEST_TYPE_RENEWAL - Static variable in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Key request type for license renewal.
REQUEST_TYPE_UNKNOWN - Static variable in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Value returned from ExoMediaDrm.KeyRequest.getRequestType() if the underlying key request does not specify a type.
REQUEST_TYPE_UPDATE - Static variable in class tv.danmaku.ijk.media.drm.ExoMediaDrm.KeyRequest
Key request type if keys have been loaded, but an additional license request is needed to update their values.
RequestProperties() - Constructor for class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.RequestProperties
 
reset(byte[]) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Updates the instance to wrap data, and resets the position to zero.
reset(ParsableByteArray) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Sets this instance's data, position and limit to match the provided parsableByteArray.
reset(byte[], int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Updates the instance to wrap data, and resets the position to zero.
reset(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Resets the position to zero and the limit to the specified value.
reset(byte[]) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Updates the instance to wrap data, and resets the position to zero and the limit to data.length.
reset(byte[], int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Updates the instance to wrap data, and resets the position to zero.
resetBytesRead() - Method in class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
Resets the number of bytes read as returned from StatsDataSource.getBytesRead() to zero.
responseBody - Variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidResponseCodeException
The response body.
responseCode - Variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidResponseCodeException
The response code that was outside of the 2xx range.
responseHeaders - Variable in exception tv.danmaku.ijk.media.drm.MediaDrmCallbackException
The HTTP request headers included in the response.
responseMessage - Variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.InvalidResponseCodeException
The http status message.
restoreKeys(byte[], byte[]) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
restoreKeys(byte[], byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Restores persisted offline keys into a session.
restoreKeys(byte[], byte[]) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
RESULT_END_OF_INPUT - Static variable in class tv.danmaku.ijk.media.drm.util.C
A return value for methods where the end of an input was encountered.

S

SchemeData(UUID, String, byte[]) - Constructor for class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
 
SchemeData(UUID, String, String, byte[]) - Constructor for class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
 
schemeDataCount - Variable in class tv.danmaku.ijk.media.drm.DrmInitData
schemeType - Variable in class tv.danmaku.ijk.media.drm.DrmInitData
The protection scheme type, or null if not applicable or unknown.
SDK_INT - Static variable in class tv.danmaku.ijk.media.drm.util.Util
Like Build.VERSION#SDK_INT, but in a place where it can be conveniently overridden for local testing.
sessionId - Variable in class tv.danmaku.ijk.media.drm.FrameworkMediaCrypto
The DRM session id.
set(String, String) - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.RequestProperties
Sets the specified property value for the specified name.
set(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.RequestProperties
Sets the keys and values contained in the map.
setAllowCrossProtocolRedirects(boolean) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
Sets whether to allow cross protocol redirects.
setConnectTimeoutMs(int) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
Sets the connect timeout, in milliseconds.
setContentTypePredicate(String) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
Sets a content type String.
setContentTypePredicate(String) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
setCustomData(Object) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setDefaultRequestProperties(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
 
setDefaultRequestProperties(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.upstream.HttpDataSource.BaseFactory
 
setDefaultRequestProperties(Map<String, String>) - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource.Factory
Sets the default request headers for HttpDataSource instances created by the factory.
setFlags(int) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
Sets the DataSpec.flags.
setHttpBody(byte[]) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setHttpMethod(int) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setHttpRequestHeaders(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setKey(String) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
Sets the DataSpec.key.
setKeyRequestParameters(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Sets the key request parameters to pass as the last argument to ExoMediaDrm.getKeyRequest(byte[], List, int, HashMap).
setKeyRequestProperty(String, String) - Method in class tv.danmaku.ijk.media.drm.HttpMediaDrmCallback
Sets a header for key requests made by the callback.
setLength(long) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
Sets the DataSpec.length.
setLimit(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Sets the limit.
setMode(int, byte[]) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager
Sets the mode, which determines the role of sessions acquired from the instance.
setMultiSession(boolean) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Sets whether this session manager is allowed to acquire multiple simultaneous sessions.
setOnDrmErrorListener(OnDrmErrorListener) - Method in class tv.danmaku.ijk.media.drm.wrapper.DefaultDrmManager
 
setOnEventListener(ExoMediaDrm.OnEventListener) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
setOnEventListener(ExoMediaDrm.OnEventListener) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Sets the listener for DRM events.
setOnEventListener(ExoMediaDrm.OnEventListener) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
setOnExpirationUpdateListener(ExoMediaDrm.OnExpirationUpdateListener) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
setOnExpirationUpdateListener(ExoMediaDrm.OnExpirationUpdateListener) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Sets the listener for session expiration events.
setOnExpirationUpdateListener(ExoMediaDrm.OnExpirationUpdateListener) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
Sets the listener for session expiration events.
setOnKeyStatusChangeListener(ExoMediaDrm.OnKeyStatusChangeListener) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
setOnKeyStatusChangeListener(ExoMediaDrm.OnKeyStatusChangeListener) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Sets the listener for key status change events.
setOnKeyStatusChangeListener(ExoMediaDrm.OnKeyStatusChangeListener) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
Sets the listener for key status change events.
setPlayClearSamplesWithoutKeys(boolean) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Sets whether clear samples within protected content should be played when keys for the encrypted part of the content have yet to be loaded.
setPosition(long) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setPosition(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Sets the current bit offset.
setPosition(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Sets the reading offset in the array.
setPropertyByteArray(String, byte[]) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
setPropertyByteArray(String, byte[]) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Sets the value of a byte array property.
setPropertyByteArray(String, byte[]) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
setPropertyString(String, String) - Method in class tv.danmaku.ijk.media.drm.DummyExoMediaDrm
 
setPropertyString(String, String) - Method in interface tv.danmaku.ijk.media.drm.ExoMediaDrm
Sets the value of a string property.
setPropertyString(String, String) - Method in class tv.danmaku.ijk.media.drm.FrameworkMediaDrm
 
setReadTimeoutMs(int) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
Sets the read timeout, in milliseconds.
setRequestProperty(String, String) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource
 
setRequestProperty(String, String) - Method in interface tv.danmaku.ijk.media.drm.upstream.HttpDataSource
Sets the value of a request header.
setSessionKeepaliveMs(long) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Sets the time to keep DrmSessions alive when they're not in use.
setTransferListener(TransferListener) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
Sets the TransferListener that will be used.
setUri(String) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setUri(Uri) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setUriPositionOffset(long) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec.Builder
setUseDrmSessionsForClearContent(int...) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Sets whether this session manager should attach DrmSessions to the clear sections of the media content.
setUserAgent(String) - Method in class tv.danmaku.ijk.media.drm.upstream.DefaultHttpDataSource.Factory
Sets the user agent that will be used.
setUuidAndExoMediaDrmProvider(UUID, ExoMediaDrm.Provider) - Method in class tv.danmaku.ijk.media.drm.DefaultDrmSessionManager.Builder
Sets the UUID of the DRM scheme and the ExoMediaDrm.Provider to use.
skipBit() - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Skips a single bit.
skipBits(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Skips bits and moves current reading position forward.
skipBytes(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableBitArray
Skips the next length bytes.
skipBytes(int) - Method in class tv.danmaku.ijk.media.drm.util.ParsableByteArray
Moves the reading offset by bytes.
STATE_ERROR - Static variable in interface tv.danmaku.ijk.media.drm.DrmSession
The session has encountered an error.
STATE_OPENED - Static variable in interface tv.danmaku.ijk.media.drm.DrmSession
The session is open, but does not have keys required for decryption.
STATE_OPENED_WITH_KEYS - Static variable in interface tv.danmaku.ijk.media.drm.DrmSession
The session is open and has keys required for decryption.
STATE_OPENING - Static variable in interface tv.danmaku.ijk.media.drm.DrmSession
The session is being opened.
STATE_RELEASED - Static variable in interface tv.danmaku.ijk.media.drm.DrmSession
The session has been released.
StatsDataSource - Class in tv.danmaku.ijk.media.drm.upstream
DataSource wrapper which keeps track of bytes transferred, redirected uris, and response headers.
StatsDataSource(DataSource) - Constructor for class tv.danmaku.ijk.media.drm.upstream.StatsDataSource
Creates the stats data source.
subrange(long) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns a data spec that represents a subrange of the data defined by this DataSpec.
subrange(long, long) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns a data spec that represents a subrange of the data defined by this DataSpec.

T

TIME_UNSET - Static variable in class tv.danmaku.ijk.media.drm.util.C
Special constant representing an unset or unknown time or duration.
toByteArray(InputStream) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Converts the entirety of an InputStream to a byte array.
toLong(int, int) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Return the long that is composed of the bits of the 2 specified integers.
toLowerInvariant(String) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Converts text to lower case using Locale.US.
toString() - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
 
toUnsignedLong(int) - Static method in class tv.danmaku.ijk.media.drm.util.Util
Converts an integer to a long by unsigned conversion.
TRACK_TYPE_AUDIO - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for audio tracks.
TRACK_TYPE_CAMERA_MOTION - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for camera motion tracks.
TRACK_TYPE_CUSTOM_BASE - Static variable in class tv.danmaku.ijk.media.drm.util.C
Applications or extensions may define custom TRACK_TYPE_* constants greater than or equal to this value.
TRACK_TYPE_DEFAULT - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for tracks of some default type, where the type itself is unknown.
TRACK_TYPE_IMAGE - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for image tracks.
TRACK_TYPE_METADATA - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for metadata tracks.
TRACK_TYPE_NONE - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for a fake or empty track.
TRACK_TYPE_TEXT - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for text tracks.
TRACK_TYPE_UNKNOWN - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for tracks of unknown type.
TRACK_TYPE_VIDEO - Static variable in class tv.danmaku.ijk.media.drm.util.C
A type constant for video tracks.
transferEnded() - Method in class tv.danmaku.ijk.media.drm.upstream.BaseDataSource
Notifies listeners that a transfer ended.
transferInitializing(DataSpec) - Method in class tv.danmaku.ijk.media.drm.upstream.BaseDataSource
Notifies listeners that data transfer for the specified DataSpec is being initialized.
TransferListener - Interface in tv.danmaku.ijk.media.drm.upstream
A listener of data transfer events.
transferStarted(DataSpec) - Method in class tv.danmaku.ijk.media.drm.upstream.BaseDataSource
Notifies listeners that data transfer for the specified DataSpec started.
tv.danmaku.ijk.media.drm - package tv.danmaku.ijk.media.drm
 
tv.danmaku.ijk.media.drm.upstream - package tv.danmaku.ijk.media.drm.upstream
 
tv.danmaku.ijk.media.drm.util - package tv.danmaku.ijk.media.drm.util
 
tv.danmaku.ijk.media.drm.wrapper - package tv.danmaku.ijk.media.drm.wrapper
 
type - Variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 
TYPE_CLOSE - Static variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 
TYPE_OPEN - Static variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 
TYPE_READ - Static variable in exception tv.danmaku.ijk.media.drm.upstream.HttpDataSource.HttpDataSourceException
 

U

UnsupportedDrmException - Exception in tv.danmaku.ijk.media.drm
Thrown when the requested DRM scheme is not supported.
UnsupportedDrmException(int) - Constructor for exception tv.danmaku.ijk.media.drm.UnsupportedDrmException
 
UnsupportedDrmException(int, Exception) - Constructor for exception tv.danmaku.ijk.media.drm.UnsupportedDrmException
 
UnsupportedDrmException.Reason - Annotation Type in tv.danmaku.ijk.media.drm
The reason for the exception.
UnsupportedMediaCrypto - Class in tv.danmaku.ijk.media.drm
ExoMediaCrypto type that cannot be used to handle any type of protected content.
UnsupportedMediaCrypto() - Constructor for class tv.danmaku.ijk.media.drm.UnsupportedMediaCrypto
 
uri - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
A Uri from which data belonging to the resource can be read.
uriAfterRedirects - Variable in exception tv.danmaku.ijk.media.drm.MediaDrmCallbackException
The Uri after redirections, or dataSpec.uri if no redirection occurred.
uriPositionOffset - Variable in class tv.danmaku.ijk.media.drm.upstream.DataSpec
The offset of the data located at DataSpec.uri within the resource.
UTF_16LE - Static variable in class tv.danmaku.ijk.media.drm.util.Charsets
UTF-16LE: sixteen-bit UCS Transformation Format, little-endian byte order.
UTF_8 - Static variable in class tv.danmaku.ijk.media.drm.util.Charsets
UTF-8: eight-bit UCS Transformation Format.
Util - Class in tv.danmaku.ijk.media.drm.util
Miscellaneous utility methods.
uuid - Variable in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
The UUID of the DRM scheme, or C.UUID_NIL if the data is universal (i.e.
uuid - Variable in class tv.danmaku.ijk.media.drm.FrameworkMediaCrypto
The DRM scheme UUID.
UUID_NIL - Static variable in class tv.danmaku.ijk.media.drm.util.C
The Nil UUID as defined by RFC4122.

V

VIDEO_MP4 - Static variable in class tv.danmaku.ijk.media.drm.util.MimeTypes
 

W

WIDEVINE_UUID - Static variable in class tv.danmaku.ijk.media.drm.util.C
UUID for the Widevine DRM scheme.
WidevineUtil - Class in tv.danmaku.ijk.media.drm
Utility methods for Widevine.
withAdditionalHeaders(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns a copy this data spec with additional HTTP request headers.
withRequestHeaders(Map<String, String>) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns a copy of this data spec with the specified HTTP request headers.
withUri(Uri) - Method in class tv.danmaku.ijk.media.drm.upstream.DataSpec
Returns a copy of this data spec with the specified Uri.
WORKAROUND_DEVICE_NEEDS_KEYS_TO_CONFIGURE_CODEC - Static variable in class tv.danmaku.ijk.media.drm.FrameworkMediaCrypto
Whether the device needs keys to have been loaded into the DrmSession before codec configuration.
writeToParcel(Parcel, int) - Method in class tv.danmaku.ijk.media.drm.DrmInitData.SchemeData
 
writeToParcel(Parcel, int) - Method in class tv.danmaku.ijk.media.drm.DrmInitData
 
A B C D E F G H I K L M N O P Q R S T U V W 
Skip navigation links