Skip to content

ADD: disablePictureInPicture attribute for HTML5 videos#15334

Merged
cpojer merged 4 commits into
react:masterfrom
eek:master
Apr 25, 2019
Merged

ADD: disablePictureInPicture attribute for HTML5 videos#15334
cpojer merged 4 commits into
react:masterfrom
eek:master

Conversation

@eek

@eek eek commented Apr 5, 2019

Copy link
Copy Markdown
Contributor

Fixes #15333

@ahtee ahtee left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this PR work with the video player in the issue? #15333

@eek

eek commented Apr 6, 2019

Copy link
Copy Markdown
Contributor Author

Added a few changes @ahtee, it works properly.

I haven't added anything to AttributeTableSnapshot because I got undefined on all values, didn't know how to actually fix it.

image

One last thing I wasn't sure about was if I needed to add the read property in attributes.js: read: getProperty('disablepictureinpicture')

autoPlay has it
but
muted doesn't have it

@cpojer cpojer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is supported in Chrome already and Safari soon, I think this should also be in React.

@cpojer cpojer merged commit f85aade into react:master Apr 25, 2019
@gaearon gaearon mentioned this pull request Jul 30, 2019
This was referenced Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support HTML5 Video Attribute disablePictureInPicture

4 participants