Skip to content

Commit

Permalink
ADD: disableRemotePlayback attribute for HTML5 videos (#18619)
Browse files Browse the repository at this point in the history
* Add support for disableremoteplayback

* Order attributes alphabetically

Co-authored-by: Tom Brown <Thomas.Brown-CIC-UK@ibm.com>
  • Loading branch information
tombrowndev and tombrown-ibm committed Apr 16, 2020
1 parent 71964c0 commit 5f6b75d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fixtures/attribute-behavior/src/attributes.js
Expand Up @@ -453,6 +453,11 @@ const attributes = [
tagName: 'video',
read: getProperty('disablepictureinpicture'),
},
{
name: 'disableRemotePlayback',
tagName: 'video',
read: getProperty('disableremoteplayback'),
},
{
name: 'display',
tagName: 'svg',
Expand Down
1 change: 1 addition & 0 deletions packages/react-dom/src/shared/DOMProperty.js
Expand Up @@ -336,6 +336,7 @@ reservedProps.forEach(name => {
'defer',
'disabled',
'disablePictureInPicture',
'disableRemotePlayback',
'formNoValidate',
'hidden',
'loop',
Expand Down
1 change: 1 addition & 0 deletions packages/react-dom/src/shared/possibleStandardNames.js
Expand Up @@ -55,6 +55,7 @@ const possibleStandardNames = {
dir: 'dir',
disabled: 'disabled',
disablepictureinpicture: 'disablePictureInPicture',
disableremoteplayback: 'disableRemotePlayback',
download: 'download',
draggable: 'draggable',
enctype: 'encType',
Expand Down

0 comments on commit 5f6b75d

Please sign in to comment.