![](https://secure.gravatar.com/avatar/35079053833e8d9fd045778e7f709bd8?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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