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  | 
| 
        
        
        
        
        
        int | 
      getSystemId()
      Retrieves the system id of the conditional access system. | 
| Inherited methods | |
|---|---|
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.
 
| Returns | |
|---|---|
| MediaCas.Session | a MediaCas.Sessionobject associated with a track. | 
See also:
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. | 
