html5 - Google IMA3 SDK, VAST on iOS - dispatching event mediaLoadTimeout -
i working on using google's ima3 sdk show 3rd party ads. implementation works on browsers, not on ios safari , ios chrome, timeout error.
output ima3 sdk debugging version:
[debug] [ 31.706s] [ima.vast.videoadeventtracker] dispatching event medialoadtimeout (bridge3.1.79_debug_en.html, line 427) [debug] [ 31.713s] [ima.managers.vastvideoadsmanager] playback error: [object object] (bridge3.1.79_debug_en.html, line 427) [warning] [ 31.731s] [ima.common.errorutils] error play dispatched: aderror 402: vast media file loading reached timeout of 15 seconds. (bridge3.1.79_debug_en.html, line 427)
i'm assuming maybe vast ios different desktop or android, , why i'm seeing timeout error. however, cannot find find network requests (made http://shadow01.yumenetworks.com/...
. in safari's web inspector >> timeline >> network requests tab. (i can't find on safari on osx, works on safari/osx. frustrating pat can find network request , response in chrome dev tool, can't utilize chrome dev tool ios debugging purpose.)
this how i'm setting adrequest, next google ima3 sdk api:
sendadrequest: (networkurl) -> @adsrequest = new google.ima.adsrequest() @adsrequest.adtagurl = "http://shadow01.yumenetworks.com/..." @adsrequest.adtype = "video" @adsrequest.linearadslotwidth = 480 @adsrequest.linearadslotheight = 360 @adsloader.requestads(@adsrequest)
sometimes see thumb/still of advertisement video showing up, not able play video, after time, timeout error. nil loads in video player, , see timeout error.
anyone have insights on why advertisement videos not work on ios browsers? i'm new on html5 videos , vast business. in advance!
bit more debugging , playing around in console:
after setting adsmanager:
@adsmanager.start() => can see still of video, video doesn't play (according api, video should start playing if phone call start()) @adsmanager.play() => nil happens initially, 15 sec timeout error message afterward.i tried sticking in 1 of videos vast object straight in html5 video player, , played fine, assuming have issues vast object, or how ima3 handling things.
the problem was calling addisplaycontainer.initialize() in wrong place (not after click event detected). otherwise, ios prevents video playing.
ios html5 mobile-safari vast
No comments:
Post a Comment