Does anyone has an idea on how it could be possible to cancel a request to an ad manifest after a certain duration?
PlayerConfig.advertising.VideoLoadTimeout only applies to the actual video loading time and not to the one of the VAST manifest.
PlayerConfig.tweaks.XHR_TIMEOUT applies to all XHR request, regardless of type
PlayerConfig.tweaks.ad_video_load_timeout does nothing. Maybe replaced by the offical implementation mentioned at point 1
NetworkAPI could maybe help, but i wasn’t able to figure out a solution so far. Like:
HttpRequestType.MANIFEST_ADS requests and reject the promise.
Can someone help my out? Maybe with the
Hi @marc.schenk , thanks for asking this interesting question. Can you please share the use case behind this requirement to cancel Ad manifest request?
@marc.schenk , BTW,
PlayerConfig.advertising.VideoLoadTimeout is the correct configuration to change the timeout value for VAST Ad Manifest. Did you try this already? If yes, can you please also share the results which lead to the conclusion that this only applies to the actual video loading time and not to the one of the VAST manifest?
Thanks for reaching out.
Our ad marketer allows us to omit adbreaks, if the requests to their VAST manifest takes longer than 100ms.
VideoLoadTimeout indeed discards the ad. I expected the VAST request to be cancelled in that case, since the user needs to wait for the manifest, before the video is discarded. On slow devices (eg. TV’s) or slow mobile connection, this can take several hunderd milliseconds - or even seconds - of a black screen.
My expectation is, that the call to the manifest is cancelled after the given amount of time.
You seem to be looking for is access to this property: Class: AdsRequest | IMA SDK for HTML5 | Google Developers . However, at this stage, our Player SDK doesn’t expose access to the
AdsRequest component that property belongs to, so I would be a feature request in this case. Regards