Rabbit-R1/switch port/java/sources/androidx/media3/exoplayer/drm/DummyExoMediaDrm.java

116 lines
3.7 KiB
Java
Raw Permalink Normal View History

2024-05-21 16:08:36 -05:00
package androidx.media3.exoplayer.drm;
import android.media.MediaDrmException;
import android.os.PersistableBundle;
import androidx.media3.common.DrmInitData;
import androidx.media3.common.util.Util;
import androidx.media3.decoder.CryptoConfig;
import androidx.media3.exoplayer.drm.ExoMediaDrm;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/* loaded from: classes2.dex */
public final class DummyExoMediaDrm implements ExoMediaDrm {
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void acquire() {
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void closeSession(byte[] bArr) {
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public int getCryptoType() {
return 1;
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public PersistableBundle getMetrics() {
return null;
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public String getPropertyString(String str) {
return "";
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void release() {
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void setOnEventListener(ExoMediaDrm.OnEventListener onEventListener) {
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void setOnExpirationUpdateListener(ExoMediaDrm.OnExpirationUpdateListener onExpirationUpdateListener) {
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void setOnKeyStatusChangeListener(ExoMediaDrm.OnKeyStatusChangeListener onKeyStatusChangeListener) {
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void setPropertyByteArray(String str, byte[] bArr) {
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void setPropertyString(String str, String str2) {
}
public static DummyExoMediaDrm getInstance() {
return new DummyExoMediaDrm();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public byte[] openSession() throws MediaDrmException {
throw new MediaDrmException("Attempting to open a session using a dummy ExoMediaDrm.");
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public ExoMediaDrm.KeyRequest getKeyRequest(byte[] bArr, List<DrmInitData.SchemeData> list, int i, HashMap<String, String> hashMap) {
throw new IllegalStateException();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public byte[] provideKeyResponse(byte[] bArr, byte[] bArr2) {
throw new IllegalStateException();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public ExoMediaDrm.ProvisionRequest getProvisionRequest() {
throw new IllegalStateException();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void provideProvisionResponse(byte[] bArr) {
throw new IllegalStateException();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public Map<String, String> queryKeyStatus(byte[] bArr) {
throw new IllegalStateException();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public boolean requiresSecureDecoder(byte[] bArr, String str) {
throw new IllegalStateException();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public void restoreKeys(byte[] bArr, byte[] bArr2) {
throw new IllegalStateException();
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public byte[] getPropertyByteArray(String str) {
return Util.EMPTY_BYTE_ARRAY;
}
@Override // androidx.media3.exoplayer.drm.ExoMediaDrm
public CryptoConfig createCryptoConfig(byte[] bArr) {
throw new IllegalStateException();
}
}