Ads
Run your own ads: an ad schedule names the breaks and the tags, and a player that uses it plays them.
In the dashboard
Open Ads and create a schedule. A schedule is a list of breaks — pre-roll, mid-roll at a time or a share of the video, post-roll — each with one or more VAST 4 or VMAP 1 tag URLs tried in order as a waterfall, plus the rules that decide how often ads play. Then choose the schedule on a player. Every page that uses that player plays its ads; a page using another player does not.
A tag that fails, times out or returns no ad is skipped and the video plays: an ad never stops playback. The tags are your ad server's; PB Play does not sell or fill inventory.
With the API
- adSchedulesCreateCreate a schedule: its breaks, tags and rules.
- adSchedulesReplaceReplace it whole.
- adSchedulesListThe property's schedules.
- adSchedulesRemoveDelete it. Players that used it let go of it and play without ads.
- publicAdSchedulesGetThe public schedule a player reads.
On your page
Name the player that carries the schedule:
<div id="pb-player"></div>
<script
src="https://cdn.stream.tulip-tech.app/sdk/web/index"
data-key="pbp_live_…"
data-playlist="ply_…"
data-player="plr_…"
data-target="pb-player"></script>