@mattebox/player-ads
v1.2.2
Published
Ads in <mattebox-player>: HLS interstitials, DASH alternative MPD, SCTE-35 cue-outs, VAST 4 and VMAP, with the ad controls and the beacons.
Maintainers
Readme
Ads for the Mattebox player.
- It adds the engine's
interstitialsstage to every player: HLS interstitials, DASH alternative MPD events and SCTE-35 cue-outs play and show as ads. - It reads VAST 2 to 4.3 and VMAP 1.0.1, follows wrappers, plays pods, and sends every beacon.
<mbx-ad-info>,<mbx-ad-skip-button>and<mbx-ad-link>show the ad, its countdown, the skip and the advertiser's page.- An ad with an HLS or DASH file plays on the player's own video. An ad with only an MP4 plays over it.
npm install @mattebox/player-ads @mattebox/player mattebox<mattebox-player controls="custom" src="https://example.com/vod/master.m3u8"
ad-schedule="https://ads.example.com/vmap.xml">
<mbx-ad-info></mbx-ad-info>
<mbx-ad-skip-button></mbx-ad-skip-button>
<mbx-ad-link></mbx-ad-link>
<mbx-control-bar>
<mbx-play-button></mbx-play-button>
<mbx-seek-bar></mbx-seek-bar>
</mbx-control-bar>
</mattebox-player>
<script type="module">
import { MatteboxPlayerElement } from '@mattebox/player';
import { ads } from '@mattebox/player-ads';
MatteboxPlayerElement.define({ addons: [ads()] });
</script>The player guide, chapter 14 explains the schedule, the beacons and the events.
