Add DecryptionResource to FormatHolder

PiperOrigin-RevId: 243243975
This commit is contained in:
aquilescanta 2019-04-12 12:58:40 +01:00 committed by Oliver Woodman
parent 936bc244b6
commit bd841b18f2

View File

@ -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;
} }