I'm not familiar with the code, but I took a quick look and I think the relevant section is here: \vlc\modules\access\http.c.
Code: Select all
case ACCESS_GET_META:
p_meta = (vlc_meta_t*)va_arg( args, vlc_meta_t* );
if( p_sys->psz_icy_name )
vlc_meta_Set( p_meta, vlc_meta_Title, p_sys->psz_icy_name );
if( p_sys->psz_icy_genre )
vlc_meta_Set( p_meta, vlc_meta_Genre, p_sys->psz_icy_genre );
if( p_sys->psz_icy_title )
vlc_meta_Set( p_meta, vlc_meta_NowPlaying, p_sys->psz_icy_title );
I tested this out now against the following stream:
http://voxsc1.somafm.com:8090. It populates title, genre, now playing in my "Media information". I don't think it pulls down album/artist. In my limited experience, I think these fields will vary by source server (whether or not they send that data). Those I've visited provide only the title which is a concantenation of "Arist - Title."
I don't think this is exposed as an event through libvlc, though one of the developers can clarify.
Also, as a final note, you can use streamripper (
http://streamripper.sourceforge.net/) to download the stream and its meta-data. I use the following syntax:
Code: Select all
streamripper.exe http://voxsc1.somafm.com:8090 -a -t -d C:\streams\soma
It will generate an mp3 file and a cue file. If you open up the cue file in a text editor, you will see the same meta data.
Hope this helps.