TrackEncryptionBox
@UnstableApi
class TrackEncryptionBox
Encapsulates information parsed from a track encryption (tenc) box or sample group description (sgpd) box in an MP4 stream.
Summary
Public constructors |
|---|
Public properties |
|
|---|---|
TrackOutput.CryptoData! |
A |
ByteArray<Byte>? |
If |
Boolean |
Indicates the encryption state of the samples in the sample group. |
Int |
The initialization vector size in bytes for the samples in the corresponding sample group. |
String? |
The protection scheme type, as defined by the 'schm' box, or null if unknown. |
Public constructors
TrackEncryptionBox
TrackEncryptionBox(
isEncrypted: Boolean,
schemeType: String?,
perSampleIvSize: Int,
keyId: ByteArray!,
defaultEncryptedBlocks: Int,
defaultClearBlocks: Int,
defaultInitializationVector: ByteArray?
)
| Parameters | |
|---|---|
isEncrypted: Boolean |
See |
schemeType: String? |
See |
perSampleIvSize: Int |
See |
keyId: ByteArray! |
See |
defaultEncryptedBlocks: Int |
See |
defaultClearBlocks: Int |
See |
defaultInitializationVector: ByteArray? |
Public properties
cryptoData
val cryptoData: TrackOutput.CryptoData!
A TrackOutput.CryptoData instance containing the encryption information from this TrackEncryptionBox.
defaultInitializationVector
val defaultInitializationVector: ByteArray<Byte>?
If perSampleIvSize is 0, holds the default initialization vector as defined in the track encryption box or sample group description box. Null otherwise.
isEncrypted
val isEncrypted: Boolean
Indicates the encryption state of the samples in the sample group.
perSampleIvSize
val perSampleIvSize: Int
The initialization vector size in bytes for the samples in the corresponding sample group.
schemeType
val schemeType: String?
The protection scheme type, as defined by the 'schm' box, or null if unknown.