You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jPlayer: HTML5 Audio & Video for jQuery
Hi im using your excellent software to play an mp3 shoutcast stream
and i would like to know if its possible to display the currently
playing song/artist in a div, if not, please consider this a feature
request :)
That's the page where I found this:
$("#jquery_jplayer_2").bind($.jPlayer.event.play, function(event) {
var current = myPlaylist.current;
var playlist = myPlaylist.playlist;
$.each(playlist, function(index, object) {
if(index == current) {
$("#theDiv").html(object.title + " - " + object.artist);
}
});
});
You must change $("#theDiv") for your div id.
Bye