New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 705733 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature
Proj-XR



Sign in to add a comment

Autoplay/resume media after WebVR DON flow

Project Member Reported by bajones@chromium.org, Mar 27 2017

Issue description

On 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?
 
Cc: amp@chromium.org mlamouri@chromium.org
Labels: Proj-VR-Media

Comment 2 by amp@chromium.org, 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).

Comment 3 by amp@chromium.org, 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.

Comment 4 by amp@chromium.org, 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.
Cc: bajones@chromium.org
Components: -UI>Browser>VR Blink>WebVR

Comment 6 by ojan@chromium.org, Jun 13 2017

Cc: ojan@chromium.org
mlamouri is working on an autoplay proposal that fixes this, but I'm also wondering, why does entering into VR require a user gesture?

Comment 7 by amp@chromium.org, 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).
Status: Available (was: Untriaged)
Components: Blink>Media>Autoplay

Comment 10 by ojan@chromium.org, May 8 2018

Cc: -ojan@chromium.org
Components: -Blink>Media>Autoplay
bajones IIRC the user gesture is now provided as part of WebXR input; removing from autoplay policy triage list
Components: Blink>WebXR
Removing Blink>WebVR component and assigning to Blink>WebXR 
Components: -Blink>WebVR

Sign in to add a comment