diff --git a/src/main/kotlin/me/proxer/app/anime/stream/StreamPlayerManager.kt b/src/main/kotlin/me/proxer/app/anime/stream/StreamPlayerManager.kt index 42c7e9af..460f5dc8 100644 --- a/src/main/kotlin/me/proxer/app/anime/stream/StreamPlayerManager.kt +++ b/src/main/kotlin/me/proxer/app/anime/stream/StreamPlayerManager.kt @@ -7,6 +7,7 @@ import com.google.android.exoplayer2.ExoPlaybackException import com.google.android.exoplayer2.Player import com.google.android.exoplayer2.SimpleExoPlayer import com.google.android.exoplayer2.audio.AudioAttributes +import com.google.android.exoplayer2.drm.DrmSessionManager import com.google.android.exoplayer2.ext.cast.CastPlayer import com.google.android.exoplayer2.ext.cast.SessionAvailabilityListener import com.google.android.exoplayer2.ext.ima.ImaAdsLoader @@ -333,5 +334,6 @@ class StreamPlayerManager(context: StreamActivity, rawClient: OkHttpClient, adTa override fun getSupportedTypes() = intArrayOf(C.TYPE_DASH, C.TYPE_HLS, C.TYPE_OTHER) override fun createMediaSource(uri: Uri) = mediaSourceFunction(okHttpDataSourceFactory, uri) + override fun setDrmSessionManager(drmSessionManager: DrmSessionManager<*>?) = this } }