HTML5 IMA SDK iOS video src attribute

47 views
Skip to first unread message

Evans Owino

unread,
Oct 30, 2024, 2:21:25 PM10/30/24
to Interactive Media Ads SDK
Hello,

On iOS Safari, where the same video element is reused for both content and ad playback, it appears the IMA SDK modifies the src attribute of the video element when transitioning to and from ad breaks.

This can be problematic in scenarios where the content URL has a short lived expiry token. When CONTENT_RESUME_REQUESTED is triggered, the expired source is auto set on the video element by the SDK which causes a 403 and is subsequently picked up as a playback error in our analytics (Mux).

It seems there's no built-in mechanism to prevent this?

Is it possible for the google.ima.AdDisplayContainer to be extended to optionally leave source resolution to the application integrating IMA?

Regards,
Evans

IMA SDK

unread,
Nov 4, 2024, 3:07:39 AM11/4/24
to evanso...@gmail.com, ima...@googlegroups.com

Hi Evans,

Thank you for contacting the IMA SDK Support team.

To better assist you, I'd appreciate it if you could provide more details about your use case. Specifically, the following information would be very helpful:

  • Sample project where the issue is reproducible
  • Ad tag
  • Screen recording

I would recommend you to refer to the ad rules document for more information.

Kindly provide the following details via reply to the author option.  

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002vGhSPQA0&entry.80707362=00273906

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGhSP:ref" (ADR-00273906)

Thanks,
 
Google Logo IMA SDK Team


Evans Owino

unread,
Nov 5, 2024, 9:30:26 AM11/5/24
to Interactive Media Ads SDK
Hello,

Thanks for getting back to me. The Ad rules doc you shared was really helpful. 

It turns out setting the following prop to false did the trick: adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete = false;
Reply all
Reply to author
Forward
0 new messages