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

jwplayrer


I want to add advertising in video
and my code is that
<script type="text/JavaScript">
var playerInstance = jwplayer("myElement");
jwplayer("myElement").setup({
"file": "http://content.jwplatform.com/videos/HkauGhRi-640.mp4",
"advertising": {
"client": "vast",
"schedule": {
"adbreak-preroll": {
"tag": "http://example.com/myVideo.mp4",
"offset": "pre"
},
"adbreak-midroll": {
"tag": "http://content.jwplatform.com/videos/HkauGhRi-640.mp4",
"offset": "50%"
}
}
}
});
this code is not working

1 Community Answers

Jessenia

JW Player Support Agent  
0 rated :

An Ads license is required to access advertising features. You must also use an ad tag URL, not a video. If you have an Ads license, please contact Support directly from within your account dashboard so we can better assist you. https://support.jwplayer.com/customer/portal/emails/new

You may also find the following the following support article helpful: https://support.jwplayer.com/customer/portal/articles/1431665-basic-preroll-video-a#fndtn-code

This question has received the maximum number of answers.