fix: playback of live videos

This commit is contained in:
Bnyro 2023-08-07 18:06:27 +02:00
parent 81b8caa077
commit 77fd3e9288

View File

@ -1339,8 +1339,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
MimeTypes.APPLICATION_M3U8
)
)
exoPlayer.setMediaSource(mediaSource)
ProxyHelper.unwrapStreamUrl(streams.hls!!).toUri() to MimeTypes.APPLICATION_M3U8
withContext(Dispatchers.Main) { exoPlayer.setMediaSource(mediaSource) }
return
}
// NO STREAM FOUND
else -> {