OvenPlayer
OME HomeGitHubAbout Us
v0.10.x
v0.10.x
  • Introduction
  • Initialization
  • Error Handling
  • Builds
  • UI Customize
  • API Reference
    • API
    • Event
  • Examples
    • Playlist
    • Captions
    • Ads
    • Run-on WebServer
Powered by GitBook
On this page

Was this helpful?

  1. Examples

Ads

This example shows you how to set Ads in OvenPlayer.

PreviousCaptionsNextRun-on WebServer

Last updated 1 year ago

Was this helpful?

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 .

let player = OvenPlayer.create("player", {
    adTagUrl : "https://pubads.g.doubleclick.net/gampad/ads?...",
    sources : [
        type : "mp4", 
        file :  "https://path.to/your_video", 
        label : "360P"
    ]
});
Support and Compatibility