Added in API level 26

MediaExtractor.CasInfo


public static final class MediaExtractor.CasInfo
extends Object

java.lang.Object
   ↳ android.media.MediaExtractor.CasInfo


Describes the conditional access system used to scramble a track.

Summary

Public methods

byte[] getPrivateData()

Retrieves the private data in the CA_Descriptor associated with a track.

MediaCas.Session getSession()

Retrieves the MediaCas.Session associated with a track.

int getSystemId()

Retrieves the system id of the conditional access system.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public methods

getPrivateData

Added in API level 29
public byte[] getPrivateData ()

Retrieves the private data in the CA_Descriptor associated with a track. Some CAS systems may need this to initialize the CAS plugin object. This private data can only be retrieved before a valid MediaCas object is set on the extractor.

Returns
byte[] a byte array containing the private data. A null return value indicates that the private data is unavailable. An empty array, on the other hand, indicates that the private data is empty (zero in length).

See also:

getSession

Added in API level 26
public MediaCas.Session getSession ()

Retrieves the MediaCas.Session associated with a track. The session is needed to initialize a descrambler in order to decode the scrambled track. The session object can only be retrieved after a valid MediaCas object is set on the extractor.

Returns
MediaCas.Session a MediaCas.Session object associated with a track.

getSystemId

Added in API level 26
public int getSystemId ()

Retrieves the system id of the conditional access system.

Returns
int CA system id of the CAS used to scramble the track.