Autoplay/resume media after WebVR DON flow |
|||||||||
Issue descriptionOn Daydream devices there's no way to have media automatically play when the user enters VR. If the developer begins playing video or audio tag content in the same user gesture event that VR presentation is requested under it gets paused by the Daydream DON flow, which suspends Chrome. When the DON flow is complete and the presentation promise resolves the user gesture has been lost and the media cannot be resumed. This scenario does work with the WebVR polyfill or Cardboard mode, creating an inconsistent experience. Perhaps media suspended by the DON flow should be automatically resumed upon returning from it?
,
Mar 28 2017
This sounds familiar to something I was hitting when trying to keep a video element full-screened through the DON flow. There was some discussion about maybe having a callback right before DON initiated the suspension (which would allow us to save state about what is playing/full-screened etc), but it required work on the daydream side. I don't know if anything ever came of that. I search but couldn't find any bugs referencing it (this would have been back in early Dec I think). On the other hand, for video specifically I think the PRD said that pausing video for the transition (and forcing the user to restart) was actually the desired experience (since we don't know how long it takes a user to put on their headset).
,
Mar 28 2017
Oh, just reread the description and it sounds like this is about media in a WebVR experience which wouldn't be able to be restarted once WebVR starts (because no user gesture). The potential solution of getting a callback before DON sounds like it might still work though if Daydream can provide it.
,
Mar 29 2017
Found the Daydream side bug (thanks bshe@ for cc'ing us on it) that would allow keeping the DON flow in the Chrome activity stack (and therefore potentially resolve the issues) at b/32181531.
,
Mar 29 2017
,
Jun 13 2017
mlamouri is working on an autoplay proposal that fixes this, but I'm also wondering, why does entering into VR require a user gesture?
,
Jun 13 2017
I don't think it's 'Entering VR' that requires a user gesture. It's actually 'WebVR present' that requires the gesture. This is (paraphrasing my understanding which may be incorrect) a user browsing in VR doesn't navigate to a new site and suddenly have their entire view taken over by a rogue ad which knows how to start a WebVR presentation. (There are probably other considerations as well).
,
Aug 10 2017
,
Feb 8 2018
,
May 8 2018
,
Jun 11 2018
bajones IIRC the user gesture is now provided as part of WebXR input; removing from autoplay policy triage list
,
Jul 4
,
Aug 7
Removing Blink>WebVR component and assigning to Blink>WebXR
,
Aug 7
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by ddorwin@chromium.org
, Mar 27 2017Labels: Proj-VR-Media