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

JWPLAYER 7 playAd not working

I'm facing the problem in playAd function, i was try fire the playAd on "beforePlay" but nothing happen.

jwplayer().on('beforePlay', function(){

I am using platinium version in my office.

Please advice.

2 Community Answers


JW Player Support Agent  
1 rated :

Make sure that you have an advertising block in your player configuration with the client set to either ‘vast’ or ‘googima’, depending on your ad tag. There is no need to pass the ad tag in the advertising block since you are calling it with jwplayer().playAd()

  file: 'assets/myVideo.mp4',
  advertising: {
    client: 'vast',


0 rated :

Hi, thanks for the answer. after added the ad block is working perfect !
But another question is any API to call the skipOffset instead of add inside the block ?

This question has received the maximum number of answers.