Dynamic Ad Insertion (DAI)
DAI stitches your video content and ads into a single stream, independent of a web page or app, and removes the ad request and ad response process from the SDK. This reduces the likelihood of client-side errors and produces a seamless TV-like experience without latency or buffering between content and ads.
With DAI, you can target individual ads for live linear and video on demand programming, obtain multi-screen reach with broad device support, and take advantage of programmatic monetization across all devices with Ad Exchange for Video. Regardless of the original format of your content, once it becomes digital, DAI can stitch custom targeted video ads into the stream, based on the individual user viewing the content.
To learn more about how to implement DAI in Lura Player, check out IMA Plugin
VOD
const config = {
...
ads: {
clientSide: {
provider: "gam",
gam: {
enabled: true,
cmsId: "2528370",
videoId: "tears-of-steel",
},
},
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);
Live
const config = {
...
ads: {
clientSide: {
provider: "gam",
gam: {
enabled: true,
assetKey: "c-rArva4ShKVIAkNfy6HUQ",
},
}
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);
Pod Serving
The Pod Serving API provides access to adaptive-bitrate video ad pods prepared in such a way that they can be stitched directly into a user-facing HLS media playlist.
This API is intended for advanced publishers and video technology partners. Using this API at scale requires design and implementation of a sophisticated media serving workflow which is outside the scope of this documentation.
To learn more about how to implement DAI Pod Serving in Lura Player, check out IMA Plugin
const config = {
...
content: {
...
media:[
{
url: "https://encodersim.sandbox.google.com/masterPlaylist/9c654d63-5373-4673-8c8d-6d92b66b9d46/master.m3u8?gen-seg-redirect=true&network=51636543&event=google-sample&pids=devrel4628000,devrel896000,devrel3528000,devrel1428000,devrel2628000,devrel1928000&seg-host=dai.google.com&stream_id=[[STREAMID]]",
type: "application/x-mpegURL"
}
]
...
},
ads: {
clientSide: {
provider: "gam",
gam: {
enabled: true,
networkCode: "51636543",
customAssetKey: "google-sample",
},
},
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);