Two video elements are injected using AdDisplayContainer

171 views
Skip to first unread message

Nitzan Nashi

unread,
Sep 5, 2021, 2:04:12 PM9/5/21
to Interactive Media Ads SDK
Hey, My team and I wonder why when using the AdDisplayContainer, we see two injections of the video elements instead of one? we would expect to see only one video element used for advertisement, as well as we don't see any usage of the second element.

I looked into the documentation but couldn't find any reference about this topic, so if there is please point us to it.

Here is a snip of our code:

<div id="ima_player_container" class="Qi6eX">

    <div style="position: absolute;">

        <div style="display: none;">

            <video title="Advertisement" webkit-playsinline="true" playsinline="true" style="background-color: rgb(0, 0, 0); position: absolute; width: 100%; height: 100%; left: 0px; top: 0px;"></video>

            <div style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px;"></div>

        </div>

        <div style="display: none;">

            <video title="Advertisement" webkit-playsinline="true" playsinline="true" style="background-color: rgb(0, 0, 0); position: absolute; width: 100%; height: 100%; left: 0px; top: 0px;"></video>

            <div style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px;"></div>

        </div>

        <iframe src="https://imasdk.googleapis.com/js/core/bridge3.478.2_en.html#goog_42609554" allowfullscreen="" allow="autoplay;trust-token-redemption" style="border: 0px; opacity: 0; margin: 0px; padding: 0px; position: relative; color-scheme: light;"></iframe>

        <iframe name="goog_42609555" sandbox="allow-scripts allow-same-origin" srcdoc="<script src=https://pagead2.googlesyndication.com/omsdk/releases/live/omweb-v1.js></script>" style="display: none;"></iframe>

    </div>

</div>


Thanks a lot for your help 🙏

IMA SDK

unread,
Sep 6, 2021, 1:17:13 AM9/6/21
to nitzan...@zattoo.com, ima...@googlegroups.com

Hi Nitzan,

 

Thank you for reaching out to us.

 

Please share with us the project sample implementation you are working on so we can share it also to the rest of the team and have a look at it and gain their insights as well. It would also be best If you could share with us the screen recording with the logs that shows the behavior.

 

On the other hand, please do check our sample apps if you will encounter the same issue, and you may also use it as reference for your own implementation. You may also follow our Get Started guide for some guidance on basic implementation.

Please share with us the requested information via "reply to author" option button or send it directly to our testing alias imate...@gmail.com

Regards,

Google Logo
Michael Angelo Legaspi
IMA SDK Team
 


ref:_00D1U1174p._5004Q2NRhXI:ref

kevin....@stnvideo.com

unread,
Sep 7, 2021, 12:54:51 PM9/7/21
to Interactive Media Ads SDK
The second one is used for preloaded ad content, but you have to have preload turned on. The sdk will alternate between the two when preload is turned on.
Don't turn it in, it's buggy. Volume doesn't synchronize properly and you'll hit unmuted permission errors if you don't mitigate it manually.

Nitzan Nashi

unread,
Sep 7, 2021, 1:21:43 PM9/7/21
to Interactive Media Ads SDK

Thanks, Kevin, 
that basically answered my question,

looking also into the sample apps I see in all of them there are two video elements, so I assume it is expected

IMA SDK

unread,
Sep 8, 2021, 1:25:46 AM9/8/21
to nitzan...@zattoo.com, ima...@googlegroups.com

Hi Kevin,

 

Thank you for sharing your knowledge to the community.

 

@Nitzan,

 

Please let me know if you have further question. We'll be happy to assist you.

Regards,

Reply all
Reply to author
Forward
0 new messages