Mid-roll ads works fine on long length video but not on short time video. I got a issue like this: video time is 15s long, ads video time is around 15s as well. I set up a pre-roll ads and a mid-roll ads with the position: “pre” and position:“50%” . the mid-roll was expected to start to play at around 8 seconds in the video. But what happened is the mid-roll ads was played afterwards the pro-roll ads. I am not sure how the “50%” argument works, does ads video length will be included in calculation the length of whole video? But the 50% setting works well long length video.
ads setup code:
adConfig = {
advertising: {
adBreaks: [
{
tag: {
url: vurl,
type: "vmap",
},
},
{
id:"pre-roll-ads"
position: "pre",
tag: {
type: "vast",
url: vurl,
},
},
{
id: "mid-roll-ads",
position: "50%",
tag: {
type: "vast",
url: vurl,
},
},
],
},
};