Skip to content

VLC not sending station name with intent com.android.music.metachanged on online streams

Description

I am using an app with an broadcast receiver for intent "com.android.music.metachanged". This intent get's fired by VLC in file application/vlc-android/src/org/videolan/vlc/PlaybackService.kt with function broadcastMetadata().

When VLC Android is playing online radio stream the track from the stream is now broadcasted with an intent and the correct track metadata. See closed & merged issue here: #2721 (closed)

The mediacontrol widget in android's notification area and VLC in the UI itself shows the correct track name (see picture - top line) and the station name (see picture - bottom line), so the station name info is there and just get's not correctly broadcasted.

I know that currently the following intents extra strings are sent:

  • track (which now also broadcasts title (= artist - track)), see issue #2721 (closed)
  • artist
  • album

Now it's a design decision in which extra intent string to put the station name!?

m3u8 to test:

#EXTM3U
#EXTINF:0,Welle 1
http://live.welle1.at:7128/stream

Expected behavior

broadcast the station name (like in the widget & ui) as an intent extra string

Actual behavior

it's not sent at all, here is the debug output of my app on android:

artist: null, album: null, track: Kelvin Jones - Ghost

Steps to reproduce

  1. start VLC with the provided m3u8 which has some radio streams in it
  2. look at the playlist in the ui or notification media control widget, the track infos are now overwritten with the track name (fixed in 2721) and correct station name
  3. sadly the station name is not broadcasted (see my app debug log above)

Screenshot / video

station_name

Context

App version

VLC-Android-3.5.3-Beta-1-x86-20221018-0127.apk

Android version

Android 11

Device model

Android Studio Emulator (Nexus 10) but also several different tablets

App mode

Smartphone

Edited by popy popy