Video controls on IMA SDK

1,331 views
Skip to first unread message

T. Pol

unread,
Jan 29, 2019, 4:22:05 PM1/29/19
to Interactive Media Ads SDK
Hi, 

I'm using IMA SDK 3 and want to learn how i can enable the controls (progress bar, play/pause etc) while playing ad. 

Is there any way to do it simply without using 3rd party video system like videojs or jwplayer ? 

Or should i code controls myself ?  

Thanks. 

ima-sdk-fo...@google.com

unread,
Jan 29, 2019, 5:35:33 PM1/29/19
to ima...@googlegroups.com
Hi,

Thank you for reaching out to us. Yes, the IMA SDK for HTML5 lets you implement your own player style so that it looks different from third party libraries like JWPlayer or VideoJs. You can use the default HTML5 controls or implement your own controls. Please take a look at our AdvancedExample app and see how we implemented a play and fullscreen button. You'll also need to take a look at the documentation here if you need to implement an ad countdown (buffer).

Regards,
Arnaud Casame
IMA SDK Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

T. Pol

unread,
Jan 30, 2019, 1:37:04 AM1/30/19
to Interactive Media Ads SDK
Thanks Arnaud. I checked the advanced example for custom buttons. How can i use the default HTML5 controls on IMA ? I tried lots of way but no success. The ima uimanager allows only countdown and ad attribution. When i debug the adContainer, i see a hidden div, it includes progress bar but no way to display it via api. And my main requirement is play button and sound button. 

Thanks. 


30 Ocak 2019 Çarşamba 01:35:33 UTC+3 tarihinde ima-sdk-forumadvisor yazdı:

ima-sdk-fo...@google.com

unread,
Jan 30, 2019, 3:55:27 PM1/30/19
to ima...@googlegroups.com
Hi,

I just checked and noticed that because of the adContainer there is currently no way to use the HTML5 video controls with the IMA SDK for HTML5. However, you can implement your own control buttons using some HTML elements, some CSS rules and a few event listeners.

Regards,
Arnaud Casame
IMA SDK Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

mohamad syr

unread,
Feb 3, 2019, 10:35:28 AM2/3/19
to Interactive Media Ads SDK

mohamad syr

unread,
Feb 3, 2019, 10:35:46 AM2/3/19
to Interactive Media Ads SDK


بتاريخ الأربعاء، 30 يناير، 2019 12:22:05 ص UTC+3، كتب T. Pol:
Reply all
Reply to author
Forward
0 new messages