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

onReady is not triggered sometimes


Hello,

We are developing subtitles plugin which connects to JW player via JS api.

This is plugin - http://d.pr/i/jwQh

This is place where client is using it in production - http://ecorner.stanford.edu/authorMaterialInfo.html?mid=3103 (all results below are by using this page)

And this is our demo page - http://vsync.tunezee.com/js-plugin

In short - this is how plugin works:

1) It loads supporting files (*.js and *.css)
2) In second steps it just registers onReady() callback for jwplayer instance
3) Once callback is triggered instance of our plugin instance is created

Officially we claim that our plugin is working in IE6+, Chrome, Safari and FF.

We have received complaints that our subtitles plugin "sometimes" doesn't show up after page reload.

I tested it in Safari, Chrome and Firefox. Initial page rendering went fine all browsers.

Safari: worked 5/5.
Chrome: it didn't show up after 3rd reload
Firefox: worked 5/5

I have also asked few guys from to office to help me out with testing.

bc.. Safari Chrome Firefox
Sale no data 3/5 15/15
Marko 5/5 4/5 no data
Vladimir* no data 4/5 1/5
Milos 5/5 5/5 5/5
Me 5/5 4/5 5/5



* Vladimir is using Ubuntu all others are on Mac.

I have tried do come up scientific explanation why onReady was not fired after N-th time but failed so far.

Any piece of advice would be much appreciated.

Thanks,
Darko

2 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

We will take a look.

JeroenW

JW Player Support Agent  
0 rated :

Can you check if JW Player is already actually setup at the point you listen to onReady()? My guess is that JW Player is sometimes already setup, b/c you seem to listen to it from a separate JavaScript file that first need loaded/inserted into the page.

One way to do this is e.g. request jwplayer().getRenderingMode();

This question has received the maximum number of answers.