Add DecryptionResource to FormatHolder
PiperOrigin-RevId: 243243975
This commit is contained in:
parent
936bc244b6
commit
bd841b18f2
@ -16,12 +16,24 @@
|
||||
package com.google.android.exoplayer2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.drm.DecryptionResource;
|
||||
|
||||
/**
|
||||
* Holds a {@link Format}.
|
||||
*/
|
||||
public final class FormatHolder {
|
||||
|
||||
/**
|
||||
* Whether the object expected to populate {@link #format} is also expected to populate {@link
|
||||
* #decryptionResource}.
|
||||
*/
|
||||
// TODO: Remove once all Renderers and MediaSources have migrated to the new DRM model [Internal
|
||||
// ref: b/129764794].
|
||||
public boolean decryptionResourceIsProvided;
|
||||
|
||||
/** An accompanying context for decrypting samples in the format. */
|
||||
@Nullable public DecryptionResource<?> decryptionResource;
|
||||
|
||||
/** The held {@link Format}. */
|
||||
public @Nullable Format format;
|
||||
@Nullable public Format format;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user