question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS/Safari] AdError 400: There was an error playing the video ad. Caused by: AdError 1205: The browser prevented playback initiated without user interaction.

See original GitHub issue

Hi!

We’re using VideoJS 7.5.5 and the videojs-ima plugin. We’re having issues playing preroll linear ads in iOS.

Initially, the first issues we got was the error Error 200 - The provided ad type: skippablevideo is not supported..

After searching online, we found that adding the playsinline attribute on video tag and the disableCustomPlaybackForIOS10Plus: true in the SDK config should fix that problem. but did the changes and it does not work, and now is showing another error: Ad error: AdError 400: There was an error playing the video ad. Caused by: AdError 1205: The browser prevented playback initiated without user interaction.

The thing is, the player did not have autoplay on, we use can-autoplay and only set autoplay config if is allowed with sound, otherwise we set autoplay false. And in this case, the player is not autoplaying, and the user’s click to play was required, but somehow the ads triggered that error that needed user interaction when there was one.

Here I have a demo page with a preview ad that it can show the error http://pubads.g.doubleclick.net/gampad/preview_cookie?gct=B1_UT7D8NdAYpfHg5wUwpY2W7wWIAYCAgKDH1Jq0rQE&op=set&redirect=https://player-qa.gfrvideo.com/player/255502.html?autostart%3Dtrue&redirect_hash=AJlzBa3G3G748uARIaCshj8gNCKxUfzFvQ&lineItemId=5076730461&creativeId=138271786265

Has anyone seen this issue?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:23

github_iconTop GitHub Comments

1reaction
adamvaulcommented, Mar 2, 2020

This link helped alot:

https://developers.google.com/interactive-media-ads/docs/sdks/html5/autoplay#autoplay_on_iphone

When I create the video element for the player to attach to I specify these properties explicitly on iPad or iPhone:

muted playsinline

<video id="contentElement" playsinline muted> <source src="https://storage.googleapis.com/gvabox/media/samples/stock.mp4"></source> </video>

BUT THAT IS NOT ENOUGH:

When I initialize the videoJS player via an options argument I make sure to set muted to true there as well so as not to override what I put in the html above:

// if apple device videojs(‘contentElement’, { muted: true, … other options);

0reactions
gcarrion-gfrmediacommented, Jun 13, 2019

Can any collaborator close this issue since is fixed? Thanks, everyone!

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: "Prevented playback initiated without user interaction"
Ad error : AdError 400: There was an error playing the video ad. Caused by: Error: AdError 1205: The browser prevented playback initiated...
Read more >
Videos not playing on iPhone browser - Apple Community
Whenever I try to play any video on Safari or Chrome it just shows a blank black screen, even if I play the...
Read more >
[Update: Dec. 30] YouTube bugs/issues & pending ...
Here we are tracking all the bugs and problems found on YouTube and their status as well as any pending improvements that are...
Read more >
Google IMA3 SDK, VAST on iOS - Stack Overflow
Sometimes I see a thumb/still of the ad video showing up, but I am not able to play the video, then after some...
Read more >
This error, "Something went wrong with Native playback ...
This error, "Something went wrong with Native playback", occurs whenever the player struggles on the native rendering pipeline of the browser in use....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found