jPlayer mp3/livestream metadata

833 views
Skip to first unread message

Bora Alp Arat

unread,
May 7, 2014, 4:46:44 AM5/7/14
to jpl...@googlegroups.com
Hi,

We are trying to stream our new internet radio with shoutcast 2 and jplayer. What we want is publishing the name of songs from metadata which comes with mp3 stream from shoutcast.
I put the link of our stream into VLC player. VLC player can parse the title and artist of the song. How could i do this in html side with jplayer. With and without flash.

You can see my basic publishing code. I'm using jplayer 2.6.0.

$(document).ready(function(){
var stream = {
title:'Radio Redd',
};
$('#jp_jplayer_1').jPlayer({
ready:function(event){
$(this).jPlayer('setMedia',stream);
$(this).jPlayer('play');
},
swfPath:'p/jplayer.swf',
solution:'html,flash',
supplied:'mp3',
preload:'none',
wmode:'window'
});
});

Mark Panaghiston

unread,
May 8, 2014, 10:54:50 AM5/8/14
to jpl...@googlegroups.com
jPlayer does not have access to that stream metadata, because HTML5 does not have access to it and neither does the Flash. VLC is a pretty awesome media player and it has all the extra bits to get the data out of the streams. The browsers and Flash does not do that for us.

I have seen a node project that gets the stream data for you, and then it uses sockets to push the state to the page.
Most devs will pole the media server every so often to get the current media playing.

in...@webentwicklungrostock.de

unread,
May 24, 2014, 3:44:23 AM5/24/14
to jpl...@googlegroups.com
You can use e.g. https://github.com/VosCast/SHOUTcast-PHP-Stats and get data from your shoutcast server.


I am using SHOUTcast-PHP-Stats and jQuery ajax to get all the info I want in this case.

Mark Panaghiston

unread,
May 26, 2014, 11:14:17 AM5/26/14
to jpl...@googlegroups.com
Thanks for sharing.

I think that Git Repo should be worth of a FAQ entry...

I'm hesitating though because I was the first to star the repo!
I would have to check it worked before we could recommend it.

Cheers though, I will keep an eye on it.
Reply all
Reply to author
Forward
0 new messages