Commit 5cf1c705 authored by Geoffrey Métais's avatar Geoffrey Métais

PlayerController: Don't dispatch mediaplayer evts

parent 480d1419
......@@ -285,7 +285,7 @@ class PlayerController(val context: Context) : IVLCVout.Callback, MediaPlayer.Ev
}
private var lastTime = 0L
private val eventActor = actor<MediaPlayer.Event>(capacity = Channel.UNLIMITED) {
private val eventActor = actor<MediaPlayer.Event>(capacity = Channel.UNLIMITED, start = CoroutineStart.UNDISPATCHED) {
for (event in channel) {
when (event.type) {
MediaPlayer.Event.Playing -> playbackState = PlaybackStateCompat.STATE_PLAYING
......
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 to comment