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

Issue with playAd method

I am trying to use playAd method of JW Player in the beforePlay event (as per API document recommendation). I am using the playAd method because my requirement is place ads dynamically for the videos i.e. some videos might have ads and others might not. Due to this restriction I can't use advertising attribute of setup configuration.

When I do use advertising section inside setup, ads play as expected. When I try to use playAd method, ads do not play.

Can anybody help me with this issue? I am using platinum version of JW Player (which has Ads enabled).

1 Community Answers


JW Player Support Agent  
0 rated :


You can use on(‘firstFrame’) instead. I’ve replied to your email, let’s continue the conversation there

This question has received the maximum number of answers.