Ads
This example shows you how to set Ads in OvenPlayer.
OvenPlayer supports VAST 4, VAST 3, VAST 2, VPAID 2 (HTML 5), and VMAP 1.0.1, so you can easily use various ads. If you need more information, please see Support and Compatibility.
1
let player = OvenPlayer.create("player", {
2
adTagUrl : "https://pubads.g.doubleclick.net/gampad/ads?...",
3
sources : {
4
type : "mp4",
5
file : "https://path.to/your_video",
6
label : "360P"
7
]
8
});
Copied!
Last modified 1mo ago
Copy link