iOS (Swift) native advanced can't stop video

170 views
Skip to first unread message

Irfan Adika

unread,
Oct 26, 2021, 4:28:20 AM10/26/21
to Google Mobile Ads SDK Developers
Hello,
I am trying to display the video in native advanced, but when I want to stop the video it doesn't work. Video keeps playing
What do I have to do:
I have also seen in the Google-Mobile-Ads-SDK documentation there are notes on the stop() function:
" Stops the video and displays the video's first frame. Call -play to resume playback at the start
  of the videos. Contact your account manager to enable this feature. "

Regards,

Irfan.

Mobile Ads SDK Forum Advisor

unread,
Oct 26, 2021, 6:11:30 AM10/26/21
to irfanadik...@gmail.com, google-adm...@googlegroups.com

Hello Irfan,

Thank you for reaching out to us.

For us to further investigate this, could you please provide the following details via Reply privately to author option or send it directly to mobileads...@gmail.com? Kindly inform us on this thread if you sent it directly to the email provided.

  • Sample app of your implementation
  • Steps to replicate

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 

 

ref:_00D1U1174p._5004Q2QFEo7:ref
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Nov 3, 2021, 4:15:52 AM11/3/21
to irfanadik...@gmail.com, google-adm...@googlegroups.com

Hello Irfan,

Thank you for your response.

It seems that you didn't received my response to you yesterday. Let me include it here.

Can you please provide us with the documentation where you find the stop function for custom video options? Are you referring to this documentation? If yes, are you able to return customControlsEnabled to "YES"? I've checked this documentation for GADVideoOptions as I saw this is the one you used, but it doesn't include a stop and only includes a startMuted.

On the other hand, I've deleted your post as it contains private information. As a side note, if you're having trouble receiving private replies from us, please check your Spam folder. Additionally, please add the 'From address' on that email to your contact list to ensure we aren't flagged as Spam in future messages. If you don't see a message from us in your Spam folder, please email us directly at mobileads-...@google.com referring to this forum thread.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2QHHlC:ref

Irfan Adika

unread,
Nov 5, 2021, 11:12:03 AM11/5/21
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com, mobileads-...@google.com
Thank you for your response.

I've added customControlsEnabled to GADVideoOptions but the result is like the image I attached, the video still can't be stopped. Please review the file that I sent before if there is a problem, thank you

Regards,

Irfan
Screen Shot 2021-11-05 at 22.04.33.png
Screen Shot 2021-11-05 at 22.04.50.png
Screen Shot 2021-11-05 at 22.03.59.png

Mobile Ads SDK Forum Advisor

unread,
Nov 8, 2021, 2:44:18 AM11/8/21
to irfanadik...@gmail.com, google-adm...@googlegroups.com

Hello Irfan,

Thank you for your response.

As per checking into your provided screenshots, it mentioned that there are no customControlsEnabled on GADVideoOptions, and no "stop" option in customControlsRequested as it only have custom controls enabled for play/pause/mute/unmute. Then for the mediaView warning, it mentioned also that it is already deprecated, have you tried changing it to "mediaContent"?

Irfan Adika

unread,
Nov 9, 2021, 12:37:09 AM11/9/21
to Mobile Ads SDK Forum Advisor, mobileads-...@google.com, google-adm...@googlegroups.com

Thank you for your response

Yes I have replaced the mediaView with mediaContent, but when I add customControlsEnabled to GADVideoOptions, it says "Value of type 'GADVideoOptions' has no member 'customControlsEnabled'"

Regards,
Irfan

Screen Shot 2021-11-05 at 22.03.59.png

Mobile Ads SDK Forum Advisor

unread,
Nov 9, 2021, 4:45:00 AM11/9/21
to irfanadik...@gmail.com, google-adm...@googlegroups.com

Hello Irfan,

Thank you for your response.

As I've mentioned previously, there are no "customControlsEnabled" on GADVideoOptions, and no "stop" option in customControlsRequested as it only has custom controls enabled for play/pause/mute/unmute. Also, it mentioned in implementing custom controls that setMute, play, and pause are the controls that can be used in custom controls. Here is a sample implementation with custom controls for your reference.

Reply all
Reply to author
Forward
0 new messages