OvenPlayer
OME Home
GitHub
About Us
Search…
v0.10.x
Introduction
Initialization
Error Handling
Builds
UI Customize
API Reference
API
Event
Examples
Playlist
Captions
Ads
Run-on WebServer
Powered By
GitBook
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!
Examples - Previous
Captions
Next - Examples
Run-on WebServer
Last modified
8mo ago
Copy link