Intent to Implement and Ship: HTMLVideoElement.playsInline

133 views
Skip to first unread message

Mounir Lamouri

unread,
Mar 19, 2019, 8:53:01 PM3/19/19
to blink-dev
mlam...@google.com N/A Specification: https://html.spec.whatwg.org/multipage/media.html#attr-video-playsinline Discussion to add it to spec: https://github.com/whatwg/html/issues/1237 N/A Hint by the website for the user agent to display the video content within the element's playback area. Allow embedders to have a media experience where playing a video will automatically have it enter fullscreen. This attribute will offer an opt-out for websites. As a reference, this is what Safari on iPhone is doing.
Interoperability: already implemented by Safari. No signal from Mozilla. Compatibility: this is a hint for the user agent Firefox: No public signals Edge: No public signals Safari: Shipped Web developers: No signals N/A The developers will use this as a hint for the UA and it may or may not be used. None.
N/A Yes The attribute will be reflected on all platforms (like it does for Safari) but it will only use if the embedder decides to. Yes The reflection is tested here: https://github.com/web-platform-tests/wpt/blob/master/interfaces/html.idl#L420 The actual behaviour is left to the UA and can't really be tested at the moment. https://crbug.com/943877 https://www.chromestatus.com/features/5402804803862528

PhistucK

unread,
Mar 20, 2019, 5:13:55 AM3/20/19
to Mounir Lamouri, blink-dev
Curious -
Will there be an actual change in behavior in Chrome?
An actual change in the default behavior in Chrome?
An actual change in behavior if the developer sets it explicitly to false in Chrome?

PhistucK


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2B-LeH8YHW6rVeaGAC1hbVObsK6Y-AVYsLhA-ZXL6wkS03uTaA%40mail.gmail.com.

Mounir Lamouri

unread,
Mar 20, 2019, 11:56:30 AM3/20/19
to PhistucK, blink-dev
Hi Phistuck,

As mentioned, it will allow some embedders to have an auto-fullscreen video playback experience. This will be doable via a Blink runtime flag. Chrome on desktop and Android will not enable this flag. Setting this attribute to false will have no impact.

-- Mounir

Anne van Kesteren

unread,
Mar 20, 2019, 12:33:13 PM3/20/19
to Mounir Lamouri, blink-dev
On Wed, Mar 20, 2019 at 1:52 AM Mounir Lamouri <mlam...@chromium.org> wrote:
> Is this feature fully tested by web-platform-tests?
> Yes
> The reflection is tested here: https://github.com/web-platform-tests/wpt/blob/master/interfaces/html.idl#L420

How? IDL doesn't know anything about reflection at this point. (I know
the situation is different for Chromium, but none of that is
standardized or part of testing infrastructure thus far.)

Domenic Denicola

unread,
Mar 20, 2019, 1:19:41 PM3/20/19
to Anne van Kesteren, Mounir Lamouri, blink-dev
From: blin...@chromium.org <blin...@chromium.org> On Behalf Of Anne van Kesteren

> How? IDL doesn't know anything about reflection at this point. (I know the situation is different for Chromium, but none of that is standardized or part of testing infrastructure thus far.)

The proper place to test this would be in https://github.com/web-platform-tests/wpt/blob/master/html/dom/elements-embedded.js , which indeed appears to be missing a line for playsInline. Sorry we missed that when merging the spec PR!

Hopefully Mounir can add tests there, confirm that they fail without his change, and then update Chrome to pass them, as part of implementing the feature.

Mounir Lamouri

unread,
Mar 20, 2019, 1:43:31 PM3/20/19
to Domenic Denicola, Anne van Kesteren, blink-dev
This shouldn't be a problem. Will do. 

Chris Harrelson

unread,
Mar 21, 2019, 3:26:36 PM3/21/19
to Mounir Lamouri, Domenic Denicola, Anne van Kesteren, blink-dev
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Yoav Weiss

unread,
Mar 21, 2019, 11:46:25 PM3/21/19
to Chris Harrelson, Mounir Lamouri, Domenic Denicola, Anne van Kesteren, blink-dev

Ojan Vafai

unread,
Mar 21, 2019, 11:54:09 PM3/21/19
to Yoav Weiss, Chris Harrelson, Mounir Lamouri, Domenic Denicola, Anne van Kesteren, blink-dev
Reply all
Reply to author
Forward
0 new messages