Stay organized with collections
Save and categorize content based on your preferences.
public
static
final
class
MediaExtractor.CasInfo
extends Object
Describes the conditional access system used to scramble a track.
Summary
Inherited methods |
From class
java.lang.Object
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
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). |
getSession
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.
getSystemId
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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaExtractor.CasInfo\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nMediaExtractor.CasInfo\n======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaExtractor.CasInfo \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\nfinal\n\nclass\nMediaExtractor.CasInfo\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.media.MediaExtractor.CasInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDescribes the conditional access system used to scramble a track.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` byte[]` | ` `[getPrivateData](/reference/android/media/MediaExtractor.CasInfo#getPrivateData())`() ` Retrieves the private data in the CA_Descriptor associated with a track. |\n| ` `[MediaCas.Session](/reference/android/media/MediaCas.Session) | ` `[getSession](/reference/android/media/MediaExtractor.CasInfo#getSession())`() ` Retrieves the [MediaCas.Session](/reference/android/media/MediaCas.Session) associated with a track. |\n| ` int` | ` `[getSystemId](/reference/android/media/MediaExtractor.CasInfo#getSystemId())`() ` Retrieves the system id of the conditional access system. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(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](/reference/java/lang/Object#wait(long))`(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](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nPublic methods\n--------------\n\n### getPrivateData\n\nAdded in [API level 29](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic byte[] getPrivateData ()\n```\n\nRetrieves the private data in the CA_Descriptor associated with a track.\nSome CAS systems may need this to initialize the CAS plugin object. This\nprivate data can only be retrieved before a valid [MediaCas](/reference/android/media/MediaCas) object\nis set on the extractor.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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). \u003cbr /\u003e |\n\n**See also:**\n\n- [](/reference/android/media/MediaExtractor#setMediaCas(android.media.MediaCas))\n\n[](/reference/android/media/MediaExtractor#setMediaCas(android.media.MediaCas)) \n\n### getSession\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic MediaCas.Session getSession ()\n```\n\nRetrieves the [MediaCas.Session](/reference/android/media/MediaCas.Session) associated with a track. The\nsession is needed to initialize a descrambler in order to decode the\nscrambled track. The session object can only be retrieved after a valid\n[MediaCas](/reference/android/media/MediaCas) object is set on the extractor.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| [MediaCas.Session](/reference/android/media/MediaCas.Session) | a [MediaCas.Session](/reference/android/media/MediaCas.Session) object associated with a track. \u003cbr /\u003e |\n\n**See also:**\n\n- [MediaExtractor.setMediaCas(MediaCas)](/reference/android/media/MediaExtractor#setMediaCas(android.media.MediaCas))\n- [](/reference/android/media/MediaDescrambler#setMediaCasSession(android.media.MediaCas.Session))\n\n[](/reference/android/media/MediaDescrambler#setMediaCasSession(android.media.MediaCas.Session)) \n\n### getSystemId\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic int getSystemId ()\n```\n\nRetrieves the system id of the conditional access system.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|------------------------------------------------------------|\n| `int` | CA system id of the CAS used to scramble the track. \u003cbr /\u003e |"]]