Skip to content

Commit

Permalink
Fix incompatibility with latest video player library
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Feb 15, 2020
1 parent 154c9ed commit 17bb0ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}

0 comments on commit 17bb0ca

Please sign in to comment.