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

Using jwplayer().playAd() inside onBeforePlay callback causes adverts to play in a loop


Using the normal setup for jwplayer advertising works, but it looks like using the onBeforePlay method just causes adverts to loop indefinitely.

I've set up a test page at http://www.madman.com.au/test-vid.html that shows what happens.

The trailer for "LAGRANGE: THE FLOWER OF RIN-NE" is the "feature", any other videos are prerolls.

3 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Hm, that method works with HTTP, but seems to have issues with RTMP. Can you try to use onBuffer instead?

webmaster

User  
0 rated :

No worries - not a huge issue for us at the moment, but just thought you should know.

Cheers,

Rane

Ethan Feldman

JW Player Support Agent  
0 rated :

Ok, thanks.

This question has received the maximum number of answers.