[Android] Broadcast the right metadata title for internet radio
Nicolas Pomepuy
git at videolan.org
Fri Oct 14 09:27:18 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Oct 13 14:24:45 2022 +0200| [1a9ba63d3f6cf5f1e4cef77cc8a2abb3e5768326] | committer: Duncan McNamara
Broadcast the right metadata title for internet radio
Fixes #2721
> https://code.videolan.org/videolan/vlc-android/commit/1a9ba63d3f6cf5f1e4cef77cc8a2abb3e5768326
---
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 67491f057..bcd670202 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -1242,7 +1242,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