Hi Vu,
Sorry I did not provide enough information I think.
Following our past conversation about my iPhone playback issue
last week I did implement
the new custom playback. I am now using option 1 with adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete
= true;
as described here
https://developers.google.com/interactive-media-ads/docs/sdks/html5/custom-playback
I can play VMAP content on both Desktop and mobile fine. My
issue is specifically
with post roll video ads on mobile (Android and iOS).
When my video content ends I have the HTML5 video 'ended' event
firing. This
calls a function which execute the contentComplete(); method
from the SDK.
I then see the following SDK events (in order) LOADED
CONTENT_PAUSE_REQUESTED
STARTED
... ALL_ADS_COMPLETED
When CONTENT_PAUSE_REQUESTED
fires I remove the 'ended' event listener and I
restore it only when ALL_ADS_COMPLETED
fires.
The
ALL_ADS_COMPLETED
event fires and I also restore my controls (show the
seek-bar ...) for the content video
player BUT the src from the video tag stays
stuck with the src of the ads
(which is something like http://redirector.gvt1.com/videoplayback/id/f4890b9f60d85691/itag/15/source/gfp_video_ads/ip/0.0.0.0/ipbits/0/expire/1439306397/sparams/ip,ipbits,expire,id,itag,source/signature/32849A56574E14A563844ADBABAB2D60B4D198D7.5D28994D0625B5733A85B5FC8219B9E161C90D52/key/ck2/file/file.mp4).
No matter what I do I am never getting back the src of the
content video
(unless of course if I do it myself but that would defeat
the setting adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete
= true).
My question is what do I need to do to get the SDK to give
back the src of the
video content to the video tag in this case scenario?
This issue can be reproduced with your GitHub examples
https://github.com/googleads/googleads-ima-html5/tree/master/advanced
I have put it online here:
http://www.radiantmedialyzer.net/advanced/
Just enter this URL on an Android or iOS device and use the
sample post roll
tag:
http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpostonly&cmsid=496&vid=short_onecue&correlator=
This ad tag is taken from
https://developers.google.com/interactive-media-ads/docs/sdks/html5/tags
You will see the issue.
Thanks
Arnaud
--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/o1Q_gV1AEcM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at http://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.
-- Arnaud Leyder JavaScript and Streaming Media Engineer mobile: +33 (0) 6 59 87 06 55 email: arnaud...@gmail.com skype: arnaud.leyder
AdError 1009: The response does not contain any valid ads.
function onContentResumeRequested() {videoContent.addEventListener('ended', contentEndedListener);}
videoContent.src = contentSrc;
videoContent.addEventListener('loadedmetadata', loadedMetadataHandler);
videoContent.load();