mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
fix exo controller
This commit is contained in:
parent
bae1182f21
commit
31c71d3002
@ -442,14 +442,15 @@ class PlayerFragment : Fragment() {
|
|||||||
if (response.chapters != null) initializeChapters(response.chapters)
|
if (response.chapters != null) initializeChapters(response.chapters)
|
||||||
// set media sources for the player
|
// set media sources for the player
|
||||||
setResolutionAndSubtitles(view, response)
|
setResolutionAndSubtitles(view, response)
|
||||||
|
exoPlayer.prepare()
|
||||||
initializePlayerView(view, response)
|
initializePlayerView(view, response)
|
||||||
// support for time stamped links
|
// support for time stamped links
|
||||||
if (arguments?.getLong("timeStamp") != null) {
|
if (arguments?.getLong("timeStamp") != null) {
|
||||||
val position = arguments?.getLong("timeStamp")!! * 1000
|
val position = arguments?.getLong("timeStamp")!! * 1000
|
||||||
exoPlayer.seekTo(position)
|
exoPlayer.seekTo(position)
|
||||||
}
|
}
|
||||||
exoPlayer.prepare()
|
|
||||||
exoPlayer.play()
|
exoPlayer.play()
|
||||||
|
exoPlayerView.useController = true
|
||||||
initializePlayerNotification(requireContext())
|
initializePlayerNotification(requireContext())
|
||||||
fetchSponsorBlockSegments()
|
fetchSponsorBlockSegments()
|
||||||
// show comments if related streams disabled
|
// show comments if related streams disabled
|
||||||
@ -545,6 +546,7 @@ class PlayerFragment : Fragment() {
|
|||||||
setRepeatToggleModes(RepeatModeUtil.REPEAT_TOGGLE_MODE_ALL)
|
setRepeatToggleModes(RepeatModeUtil.REPEAT_TOGGLE_MODE_ALL)
|
||||||
// controllerShowTimeoutMs = 1500
|
// controllerShowTimeoutMs = 1500
|
||||||
controllerHideOnTouch = true
|
controllerHideOnTouch = true
|
||||||
|
useController = false
|
||||||
player = exoPlayer
|
player = exoPlayer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user