public final class

TrackOutput.CryptoData

extends java.lang.Object

 java.lang.Object

↳androidx.media3.extractor.TrackOutput.CryptoData

Overview

Holds data required to decrypt a sample.

Summary

Fields
public final intclearBlocks

The number of clear blocks in the encryption pattern, 0 if pattern encryption does not apply.

public final intcryptoMode

The encryption mode used for the sample.

public final intencryptedBlocks

The number of encrypted blocks in the encryption pattern, 0 if pattern encryption does not apply.

public final byte[]encryptionKey

The encryption key associated with the sample.

Constructors
publicCryptoData(int cryptoMode, byte[] encryptionKey[], int encryptedBlocks, int clearBlocks)

Methods
public booleanequals(java.lang.Object obj)

public inthashCode()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public final int cryptoMode

The encryption mode used for the sample.

public final byte[] encryptionKey

The encryption key associated with the sample. Its contents must not be modified.

public final int encryptedBlocks

The number of encrypted blocks in the encryption pattern, 0 if pattern encryption does not apply.

public final int clearBlocks

The number of clear blocks in the encryption pattern, 0 if pattern encryption does not apply.

Constructors

public CryptoData(int cryptoMode, byte[] encryptionKey[], int encryptedBlocks, int clearBlocks)

Parameters:

cryptoMode: See TrackOutput.CryptoData.cryptoMode.
encryptionKey: See TrackOutput.CryptoData.encryptionKey.
encryptedBlocks: See TrackOutput.CryptoData.encryptedBlocks.
clearBlocks: See TrackOutput.CryptoData.clearBlocks.

Methods

public boolean equals(java.lang.Object obj)

public int hashCode()