Skip to content Skip to sidebar Skip to footer

Jplayer 2.2.0: Display Track Title In Separate Div On Page Load

I'm working with jPlayer directly since the mp3-jplayer plugin for WordPress broke with the WP 3.5 update, and it seems to be abandoned by the developer. One of the nice features o

Solution 1:

Jplayer also provides a ready event: $.jPlayer.event.ready. It should be possible to use this to do the same thing once the player has loaded.

Solution 2:

change the line:

 $("#jquery_jplayer_1").bind($.jPlayer.event.play, function (event) {

to

 $("#jquery_jplayer_1").bind($.jPlayer.event.ready, function (event) {

so that the div is updated once the player is ready.

Post a Comment for "Jplayer 2.2.0: Display Track Title In Separate Div On Page Load"