Closed (fixed)
Project:
jPlayer
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2011 at 05:00 UTC
Updated:
8 Jun 2012 at 13:21 UTC
I'm using Views to print out the jPlayer in a row along with some other info. How would I use jQuery to access the jPlayer object so that I can attach event handlers? In particular, I want to set a handler for the $.jPlayer.event.ended event.
I tried something like this but it doesn't do anything:
$('.jplayer').bind($.jPlayer.event.ended, function() { alert('a'); });
Any thoughts? Thanks!
Comments
Comment #1
neotohin commentedThis worked for me.
Comment #2
deviantintegral commented#1 will work. See lines 11 and 13 from jplayer-protect.js for another example.