jPlayer - how to find out if it's playing

simPod picture simPod · Feb 5, 2012 · Viewed 11k times · Source

How can I find out if jPlayer is playing? I tried this alert($.jPlayer.event.playing); but it doesn't work.

Answer

Kyle Macey picture Kyle Macey · Feb 6, 2012

I've not worked with Jplayer specifically, but playing around, this returned false if the media was playing and true if it wasn't.

$('#jquery_jplayer_1').data().jPlayer.status.paused