GWD Audio component is not auto playing.

932 views
Skip to first unread message

mten...@google.com

unread,
May 22, 2018, 5:47:51 AM5/22/18
to Google Web Designer beta

Sample creative: https://www.google.com/doubleclick/studio/#creative:step=PREVIEW&advertiserId=60016864&creativeId=60685466&ownerId=886775&entityId=340684157

Observations:
I've been checking for workarounds on how fix this but the Google Chrome browser keeps on blocking the audio component.
The only way that we could trigger an interaction is when we hover on the page. I tried implementing this and confirmed that the audio does play with sound. However, this will not be ideal because the client want to play the audio once the image shows. Also, we cannot apply the workaround on the video component because this is an audio component.
Checked autoplay and unchecked the Mute option. I could confirm in the log that the audio does auto play.
Unchecked autoplay and load the resource via ready to present page event and force to play the audio(yield the same result). Below is the code that I applied:
gwd.playAudioHere = function(event) {
var audio = document.getElementById("gwd-audio_1");
audio.src="camsound.mp3";
audio.load();
audio.play();
};
Removed the audio source and loaded it via ready to present page event (auto play is still checked). Which didn't workout.
Client has a GWD banner, which has an Audio component. It is working well normally, but when I check the Auto play it's not Auto playing.
When I refreshed the creative in browser sometimes the Auto-play is working. But not working the first time when we open the creative.
When I checked the console it's showing and error to the 'Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD'.
When I tried in Firefox, the creative Auto-play is working well. The problem is occurring only in Chrome.
I tried a work around suggested for video component previously. To check Mute to auto play the creative, which didn't work-out too.
Questions:
The document from the error says new policy updates about audio/video auto play components. But I couldn't find, where I can interact with the document as mentioned in the error. Does this have to do anything with the auto play component?
Is there any work-around where we can get auto play working for audio?

Please help me out with the above issue.

San Khong

unread,
May 22, 2018, 1:23:48 PM5/22/18
to Google Web Designer beta
Here are a couple of sites I found on the new policy: 

We have tested it and the audio component will not autoplay with sound on Chrome and Safari. It looks like Firefox hasn't followed suit.

We have not found any workaround to let you auto-play the audio without user interaction. 

Sorry we could not offer any help due to this new policy.

San
Google Web Designer team
Reply all
Reply to author
Forward
0 new messages