[Android] Broadcast the right metadata title for internet radio
Nicolas Pomepuy
git at videolan.org
Wed Oct 19 08:11:07 UTC 2022
vlc-android | branch: 3.5.x | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Oct 13 14:24:45 2022 +0200| [eeeb65b03b38c9e7be995a54d650e75dd6563dcc] | committer: Nicolas Pomepuy
Broadcast the right metadata title for internet radio
Fixes #2721
(cherry picked from commit 1a9ba63d3f6cf5f1e4cef77cc8a2abb3e5768326)
> https://code.videolan.org/videolan/vlc-android/commit/eeeb65b03b38c9e7be995a54d650e75dd6563dcc
---
application/vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 8a94fb53f..d10b6b80c 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -1249,7 +1249,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner, CoroutineSc
if (media == null || isVideoPlaying) return
if (lifecycleScope.isActive) lifecycleScope.launch(Dispatchers.Default) {
sendBroadcast(Intent("com.android.music.metachanged")
- .putExtra("track", media.title)
+ .putExtra("track", media.nowPlaying ?: media.title)
.putExtra("artist", media.artist)
.putExtra("album", media.album)
.putExtra("duration", media.length)
More information about the Android
mailing list