Commit bd841b18 by aquilescanta Committed by Oliver Woodman

Add DecryptionResource to FormatHolder

PiperOrigin-RevId: 243243975
parent 936bc244
...@@ -16,12 +16,24 @@ ...@@ -16,12 +16,24 @@
package com.google.android.exoplayer2; package com.google.android.exoplayer2;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.google.android.exoplayer2.drm.DecryptionResource;
/** /**
* Holds a {@link Format}. * Holds a {@link Format}.
*/ */
public final class FormatHolder { 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}. */ /** The held {@link Format}. */
public @Nullable Format format; @Nullable public Format format;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment