
midroll advertising in playlist: schedule leaks into next video
When the player switches from one video to the next, the adschedules of both videos are combined.
1. Start the video, see it has one adbreak after 30s.
https://camo.githubusercontent.com/275f6c05459eb94b396365ac9eca49a15a0aa6a8/68747470733a2f2f696d616765732e73706f7274312e64652f696d616769782f66696c746572322f706e672f5f7365743d656d7074792f696d616769782f30366132346337342d326239312d313165382d383762312d663830663431666336336365
2. Go to the next video, see it has three adbreaks (15s, 30s, 45s), though only two are configured (15s, 45s).
https://camo.githubusercontent.com/e7d7c4e9e0d51578150b441885e49d921f7ec2f8/68747470733a2f2f696d616765732e73706f7274312e64652f696d616769782f66696c746572322f706e672f5f7365743d656d7074792f696d616769782f30393165663435352d326239312d313165382d383762312d663830663431666336336365
* Hardware: MacBook Pro (15-inch, 2016)
* OS: Mac OS X 10.13.3 (17D102)
* Browser: Firefox 60.0b4 (64-bit)
* jwplayer version: 8.1.12+commercial_v8-1-12.246.commercial.dc66f9.hlsjs..jwplayer.c9fefd.dai.c24260.freewheel.782b72.googima.001e0e.vast.520a81.jwpsrv.785f4d.gapro.fb7ea6.related.bce080
Example Code:
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>play</title>
<script src="jwplayer.js"></script>
<script>jwplayer.key = "SOME_KEY";</script>
<div id="player">Loading the player...</div>
<script>
jwplayer("player").setup({
"advertising": {"client": "vast"},
playlist: [{
file: "http://clips.vorwaerts-gmbh.de/VfE_html5.mp4",
adschedule: {
midroll0: {
offset: 30,
tag: "http://demo.tremorvideo.com/proddev/vast/vast2Nonlinear.xml"
}
}
}, {
file: "http://clips.vorwaerts-gmbh.de/VfE_html5.mp4",
adschedule: {
midroll1: {
offset: 15,
tag: "http://demo.tremorvideo.com/proddev/vast/vast2Nonlinear.xml"
},
midroll2: {
offset: 45,
tag: "http://demo.tremorvideo.com/proddev/vast/vast2Nonlinear.xml"
}
}
}]
});
</script>