Hi IMA team,
I've been battling with this one for 3 days now, and am all out of ideas. We are building an SPA (React) where we'd like to maintain the player between pages. The issue we've run into is if the player loads a VMAP tag on one page, and then we move it anywhere else, all subsequent ad requests return a 402 and the IMA SDK times out on playback.
A link to reproduce this issue is available here:
Steps to reproduce:
1. Select an ad tag from the dropdown (eg "VMAP Postroll")
2. Press the "Play Ads" button below the player (3rd button)
3. After playback begins, press the "Move Player" button
4. Now, request a different ad (eg "VMAP Preroll")
5. Press the "Play Ads" button again - ad will not play.
Output:
[ima.admanager.VideoAdManager] Playback error: [object Object] AdError 402: VAST media file loading reached a timeout of 8 seconds.
bridge3.418.3_debug_en.html:929 [ 11.197s] [UrlReporter] Reporting urls for event : error
bridge3.418.3_debug_en.html:929 [ 11.199s] [ima.common.ErrorUtils] Error play dispatched: AdError 402: VAST media file loading reached a timeout of 8 seconds.
Although the above is a CodePen, the behavior in my SPA environment is identical (including me moving the player with .appendChild() )
How can I "reset" the IMA SDK after repositioning it? Do I need to somehow perform a more "full" teardown of the SDK, and if so - how? At this point it is not realistic for me to dispose of the entire player and re-render it.
Thank you in advance for your help.
Best,
Matt