mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Remove broken code.
This commit is contained in:
parent
ba1b8c79d8
commit
db83051e5e
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user