Skip to content

Commit 5f6b75d

Browse files
ADD: disableRemotePlayback attribute for HTML5 videos (facebook#18619)
* Add support for disableremoteplayback * Order attributes alphabetically Co-authored-by: Tom Brown <Thomas.Brown-CIC-UK@ibm.com>
1 parent 71964c0 commit 5f6b75d

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

fixtures/attribute-behavior/src/attributes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,11 @@ const attributes = [
453453
tagName: 'video',
454454
read: getProperty('disablepictureinpicture'),
455455
},
456+
{
457+
name: 'disableRemotePlayback',
458+
tagName: 'video',
459+
read: getProperty('disableremoteplayback'),
460+
},
456461
{
457462
name: 'display',
458463
tagName: 'svg',

packages/react-dom/src/shared/DOMProperty.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ reservedProps.forEach(name => {
336336
'defer',
337337
'disabled',
338338
'disablePictureInPicture',
339+
'disableRemotePlayback',
339340
'formNoValidate',
340341
'hidden',
341342
'loop',

packages/react-dom/src/shared/possibleStandardNames.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const possibleStandardNames = {
5555
dir: 'dir',
5656
disabled: 'disabled',
5757
disablepictureinpicture: 'disablePictureInPicture',
58+
disableremoteplayback: 'disableRemotePlayback',
5859
download: 'download',
5960
draggable: 'draggable',
6061
enctype: 'encType',

0 commit comments

Comments
 (0)