Remove broken code.

This commit is contained in:
Kavin 2022-11-16 14:22:22 +00:00
parent ba1b8c79d8
commit db83051e5e
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -1367,7 +1367,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
videosNameArray[which] == "LBRY HLS"
) {
// set the progressive media source
setMediaSource(videosUrlArray[which], MimeTypes.APPLICATION_M3U8)
setMediaSource(videosUrlArray[which].toUri(), MimeTypes.APPLICATION_M3U8)
} else {
// TODO: Fix this
}
@ -1388,9 +1388,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
BaseBottomSheet()
.setSimpleItems(audioLanguages) { index ->
val audioStreams = audioGroups.values.elementAt(index)
selectedAudioSourceUrl = PlayerHelper.getAudioSource(requireContext(), audioStreams)
selectedVideoSourceUrl = selectedVideoSourceUrl ?: streams.videoStreams!!.first().url!!
setMediaSource(selectedAudioSourceUrl!!, selectedVideoSourceUrl!!)
// TODO: Fix this
}
.show(childFragmentManager)
}