Commit 88f1dfcb by aquilescanta Committed by Oliver Woodman

Add generic DrmSessionManager.getDummyDrmSessionManager

PiperOrigin-RevId: 254372134
parent 04aaf25a
......@@ -27,6 +27,12 @@ import java.lang.annotation.RetentionPolicy;
*/
public interface DrmSessionManager<T extends ExoMediaCrypto> {
/** Returns {@link #DUMMY}. */
@SuppressWarnings("unchecked")
static <T extends ExoMediaCrypto> DrmSessionManager<T> getDummyDrmSessionManager() {
return (DrmSessionManager<T>) DUMMY;
}
/** {@link DrmSessionManager} that supports no DRM schemes. */
DrmSessionManager<ExoMediaCrypto> DUMMY =
new DrmSessionManager<ExoMediaCrypto>() {
......
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