• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

How to add VAST advertisement in Jwplayer

Ryumaru

New member
Sep 12, 2020
12
0
1
Someone could publish a functional example of adding advertising using VAST on jwplayer I found this topic on the official website, however even using the code shown in the topic, I don't know why the advertisements did not appear on the player, at the given time.


Topic : https://developer.jwplayer.com/jwplayer/docs/jw8-schedule-vast-ads

I used an xml file that I found online, but even putting all the settings of the topic, the advertising did not load.
 
HTML:
advertising: {
                                client: "vast",
                                    schedule: {
                                            adbreak1: {
                                            offset : "pre",                        
                                                  tag: "https://syndication.exdynsrv.com/splash.php?idzone=3824539",
                                            skipoffset: 5
                                            },
                                        adbreak2: {
                                            offset: "50%",
                                                  tag: "https://syndication.exdynsrv.com/splash.php?idzone=3824539",
                                            skipoffset: 5
                                            },
                                    },
                                },

1603253867823.png
 
HTML:
advertising: {
                                client: "vast",
                                    schedule: {
                                            adbreak1: {
                                            offset : "pre",                       
                                                  tag: "https://syndication.exdynsrv.com/splash.php?idzone=3824539",
                                            skipoffset: 5
                                            },
                                        adbreak2: {
                                            offset: "50%",
                                                  tag: "https://syndication.exdynsrv.com/splash.php?idzone=3824539",
                                            skipoffset: 5
                                            },
                                    },
                                },

1603253867823.png
In the case of the first configuration, it opens at the beginning of the player and the second one opens when the video has 50% correct reproduction.
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock