Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

jwplayer 7.0 events not firing

I am trying to tap various events fired by the jwplayer. I am playing the following public link just as a test stream :

I tried the following code to tap the events but they do not seem to be firing at all

playerInstance = jwplayer("vplayer");

//Register for various events
playerInstance.on('ready', function(setupTime){
console.log('Time taken is : ' + setupTime);

playerInstance.on('playAttempt', function(e){
console.log('Play started');

My video is playing fine - am able to play/pause, mute etc the video. However, events are not firing.

I am unable to figure out what the problem might be. In some similar queries somebody mentioned this might be a cross domain issue. Is that what this is ? My page and the content are certainly not in the same domain.

Will appreciate any insight.

2 Community Answers


0 rated :

Well silly me, I was registering for the events before invoking 'setup' player. Events are firing, not a problem anymore.


JW Player Support Agent  
0 rated :

Great to hear, Ashwin!

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.