mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-12 21:30:30 +05:30
fix: crash when trying to start audio before playback started
This commit is contained in:
parent
94e848700e
commit
03f95e8983
@ -741,10 +741,12 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
}
|
||||
|
||||
private fun playOnBackground() {
|
||||
val currentPosition = if (::playerController.isInitialized) playerController.currentPosition else 0
|
||||
|
||||
BackgroundHelper.playOnBackground(
|
||||
requireContext(),
|
||||
videoId,
|
||||
playerController.currentPosition,
|
||||
currentPosition,
|
||||
playlistId,
|
||||
channelId,
|
||||
keepQueue = true,
|
||||
|
Loading…
Reference in New Issue
Block a user