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 :
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8
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.