CasInfo
class CasInfo
| kotlin.Any | |
| ↳ | android.media.MediaExtractor.CasInfo | 
Describes the conditional access system used to scramble a track.
Summary
| Public methods | |
|---|---|
| ByteArray? | Retrieves the private data in the CA_Descriptor associated with a track. | 
| MediaCas.Session! | Retrieves the  | 
| Int | Retrieves the system id of the conditional access system. | 
Public methods
getPrivateData
fun getPrivateData(): ByteArray?
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. 
| Return | |
|---|---|
| ByteArray? | 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
fun getSession(): MediaCas.Session!
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. 
| Return | |
|---|---|
| MediaCas.Session! | a MediaCas.Sessionobject associated with a track. | 
getSystemId
fun getSystemId(): Int
Retrieves the system id of the conditional access system.
| Return | |
|---|---|
| Int | CA system id of the CAS used to scramble the track. | 
