- From: Jan-Ivar Bruaroey via GitHub <noreply@w3.org>
- Date: Thu, 16 Jul 2026 18:54:24 +0000
- To: public-webrtc-logs@w3.org
I took an action to investigate whether [consuming user activation](https://html.spec.whatwg.org/#consume-user-activation) would interfere with autoplay. TL;DR: It shouldn't. The first thing to clarify is it should be called _"consuming transient activation"_, as [sticky](https://html.spec.whatwg.org/#sticky-activation) activation never [expires](https://html.spec.whatwg.org/#activation-expiry). So if autoplay is _"sticky"_ then all is fine. This is true of [WebAudio](https://www.w3.org/TR/webaudio-1.1/#allowed-to-start) which only allows _"sticky"_ (if limited at all). For the [play()](https://html.spec.whatwg.org/#dom-media-play) method the [allowed to play](https://html.spec.whatwg.org/#allowed-to-play) check is synchronous and implementation-defined. Because it is synchronous, even _"transient"_ would be fine as long as the website calls `play()` first. But in practice, being stricter than WebAudio here would seem nonsensical, so I think we can assume autoplay is _"sticky"_ (if limited at all). I tested this in https://jan-ivar.github.io/dummy/play_pip.html which races `play()`, `requestPictureInPicture()`, and `requestFullscreen()` (the latter two consume transient activation) from a single click. Firefox (plays PiP): ``` TypeError: Fullscreen request denied play success PiP success ``` Chrome (plays PiP): ``` play success PiP success TypeError: Permissions check failed ``` Safari (plays fullscreen): ``` play success Fullscreen success PiP success ``` The latter seems like a bug, so overall I think we're good to proceed here. -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/324#issuecomment-4995510137 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 July 2026 18:54:25 UTC