[Android] Fix the wrong position of audio playback for audio on TV

Nicolas Pomepuy git at videolan.org
Fri Oct 8 09:54:31 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Oct  8 09:51:13 2021 +0200| [0bfb47523057dd17d8d618ef2022b062bb0c28b6] | committer: Nicolas Pomepuy

Fix the wrong position of audio playback for audio on TV

Fixes #2203

> https://code.videolan.org/videolan/vlc-android/commit/0bfb47523057dd17d8d618ef2022b062bb0c28b6
---

 .../java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt b/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt
index 958cac154..d9e588fda 100644
--- a/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt
@@ -101,7 +101,7 @@ class AudioPlayerActivity : BaseTvActivity() {
         model.playerState.observe(this, { playerState -> update(playerState) })
         val position = intent.getIntExtra(MEDIA_POSITION, 0)
         if (intent.hasExtra(MEDIA_PLAYLIST))
-            intent.getLongExtra(MEDIA_PLAYLIST, -1L).let { MediaUtils.openPlaylist(this, it) }
+            intent.getLongExtra(MEDIA_PLAYLIST, -1L).let { MediaUtils.openPlaylist(this, it, position) }
         else
             intent.getParcelableArrayListExtra<MediaWrapper>(MEDIA_LIST)?.let { MediaUtils.openList(this, it, position) }
         playToPause = AnimatedVectorDrawableCompat.create(this, R.drawable.anim_play_pause_video)!!



More information about the Android mailing list