jguiss
Newbie
- Nov 8, 2011
- 21
- 0
Hello BHW!
We have been tackling the problem of autoplaying audios on popunders for Chrome after the M71 update in december. Basically we have found a way to work around it on our own servers, but for third parties it does not work.
The way is simple: If the popunder is kept on the server where the user has clicked, the user permissions are kept. You are therefore allowed to start an audio on pageload if you go through an audio context. HTML5 audio elements and video elements are throttled when in background, even if the permissions are kept. When you bring the window up front, they will start automatically. But Audio Context is not throttled.
If you wish to load a third party page, you merely need to use a fullpage iframe in your popunder and add the allow="autoplay" attribute. That will spread the permissions to the iframe.
Now that's all neat and good, but as stated, it only works if the popunder's page is on the same server. It's not working on third party servers (or if the page changes).
So we were wondering if you guys had any idea?
We have been tackling the problem of autoplaying audios on popunders for Chrome after the M71 update in december. Basically we have found a way to work around it on our own servers, but for third parties it does not work.
The way is simple: If the popunder is kept on the server where the user has clicked, the user permissions are kept. You are therefore allowed to start an audio on pageload if you go through an audio context. HTML5 audio elements and video elements are throttled when in background, even if the permissions are kept. When you bring the window up front, they will start automatically. But Audio Context is not throttled.
If you wish to load a third party page, you merely need to use a fullpage iframe in your popunder and add the allow="autoplay" attribute. That will spread the permissions to the iframe.
Now that's all neat and good, but as stated, it only works if the popunder's page is on the same server. It's not working on third party servers (or if the page changes).
So we were wondering if you guys had any idea?