mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Make DrmSessionException extend IOException
Makes it throwable from SampleStream.maybeThrowError PiperOrigin-RevId: 253600396
This commit is contained in:
parent
c05cb3f6f4
commit
3204cf8ffa
1 changed files with 3 additions and 4 deletions
|
|
@ -18,6 +18,7 @@ package com.google.android.exoplayer2.drm;
|
||||||
import android.media.MediaDrm;
|
import android.media.MediaDrm;
|
||||||
import androidx.annotation.IntDef;
|
import androidx.annotation.IntDef;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
import java.io.IOException;
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
|
@ -42,10 +43,8 @@ public interface DrmSession<T extends ExoMediaCrypto> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Wraps the throwable which is the cause of the error state. */
|
||||||
* Wraps the throwable which is the cause of the error state.
|
class DrmSessionException extends IOException {
|
||||||
*/
|
|
||||||
class DrmSessionException extends Exception {
|
|
||||||
|
|
||||||
public DrmSessionException(Throwable cause) {
|
public DrmSessionException(Throwable cause) {
|
||||||
super(cause);
|
super(cause);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue