Forum Discussion

acreskey's avatar
acreskey
Visitor
8 years ago

RAF not correctly determining ad pods from VMAP

We're seeing an issue where the ad pods returned from RAF.getAds() do not match the VMAP in the ad URL provided to RAF via setAdUrl().

Background: we're using using SSAI in a RSG app.

Details:
When we look at the VMAP for the ad URL, we see, for example, two midrolls, with timeOffets:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap version="1.0.1">
    <vmap:AdBreak timeOffset="00:05:35.368" breakType="linear" breakId="1">
        <vmap:AdSource>
            <vmap:VASTAdData>
                <VAST version="3.0">
                    <Ad id="19585946" sequence="1">
                        <InLine>
                            <AdSystem>FreeWheel</AdSystem>
...
   </vmap:AdBreak>
    <vmap:AdBreak timeOffset="00:11:00.994" breakType="linear" breakId="2">
        <vmap:AdSource>
            <vmap:VASTAdData>
                <VAST version="3.0">
                    <Ad id="19585946" sequence="1">
                        <InLine>
                            <AdSystem>FreeWheel</AdSystem>
...



However the ad pods returned from RAF.getAds() shows (generally) only one preroll. 
e.g.
<Component: roAssociativeArray> =
{
    ads: <Component: roArray>
    backfilled: true
    duration: 30
    rendersequence: "preroll"
    rendertime: 0
    slots: 0
    tracking: <Component: roArray>
    viewed: false
}

Note that sometimes the returned ad pods contains both ads, with the correct render times.

This is an outline of our workflow, running in a player task node:
adInterface.setAdUrl(adURL)

adPods = adInterface.getAds()

adInterface.stitchedAdsInit(adPods)

...
while keepPlaying
 videoMsg = wait(500, port)
 curAd = adInterface.stitchedAdHandledEvent(videoMsg, { sgNode: videoNode, port: port })
 ...
end while


This is a problem for us since the RAF's ad handling (e.g. "Ad 1 of 1") and player control blocking will occur at the wrong time.

Ideas?

17 Replies