mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #4539 from zpao/fix-encrypted-media-event
Listen to encrypted event, not onencrypted
This commit is contained in:
@@ -107,6 +107,7 @@ var topEventMapping = {
|
|||||||
topDrop: 'drop',
|
topDrop: 'drop',
|
||||||
topDurationChange: 'durationchange',
|
topDurationChange: 'durationchange',
|
||||||
topEmptied: 'emptied',
|
topEmptied: 'emptied',
|
||||||
|
topEncrypted: 'encrypted',
|
||||||
topEnded: 'ended',
|
topEnded: 'ended',
|
||||||
topError: 'error',
|
topError: 'error',
|
||||||
topFocus: 'focus',
|
topFocus: 'focus',
|
||||||
@@ -122,7 +123,6 @@ var topEventMapping = {
|
|||||||
topMouseOut: 'mouseout',
|
topMouseOut: 'mouseout',
|
||||||
topMouseOver: 'mouseover',
|
topMouseOver: 'mouseover',
|
||||||
topMouseUp: 'mouseup',
|
topMouseUp: 'mouseup',
|
||||||
topOnEncrypted: 'onencrypted',
|
|
||||||
topPause: 'pause',
|
topPause: 'pause',
|
||||||
topPaste: 'paste',
|
topPaste: 'paste',
|
||||||
topPlay: 'play',
|
topPlay: 'play',
|
||||||
|
|||||||
@@ -149,6 +149,12 @@ var eventTypes = {
|
|||||||
captured: keyOf({onEmptiedCapture: true}),
|
captured: keyOf({onEmptiedCapture: true}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
encrypted: {
|
||||||
|
phasedRegistrationNames: {
|
||||||
|
bubbled: keyOf({onEncrypted: true}),
|
||||||
|
captured: keyOf({onEncryptedCapture: true}),
|
||||||
|
},
|
||||||
|
},
|
||||||
ended: {
|
ended: {
|
||||||
phasedRegistrationNames: {
|
phasedRegistrationNames: {
|
||||||
bubbled: keyOf({onEnded: true}),
|
bubbled: keyOf({onEnded: true}),
|
||||||
@@ -247,12 +253,6 @@ var eventTypes = {
|
|||||||
captured: keyOf({onMouseUpCapture: true}),
|
captured: keyOf({onMouseUpCapture: true}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onEncrypted: {
|
|
||||||
phasedRegistrationNames: {
|
|
||||||
bubbled: keyOf({onEncrypted: true}),
|
|
||||||
captured: keyOf({onEncryptedCapture: true}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
paste: {
|
paste: {
|
||||||
phasedRegistrationNames: {
|
phasedRegistrationNames: {
|
||||||
bubbled: keyOf({onPaste: true}),
|
bubbled: keyOf({onPaste: true}),
|
||||||
@@ -401,6 +401,7 @@ var topLevelEventsToDispatchConfig = {
|
|||||||
topDrop: eventTypes.drop,
|
topDrop: eventTypes.drop,
|
||||||
topDurationChange: eventTypes.durationChange,
|
topDurationChange: eventTypes.durationChange,
|
||||||
topEmptied: eventTypes.emptied,
|
topEmptied: eventTypes.emptied,
|
||||||
|
topEncrypted: eventTypes.encrypted,
|
||||||
topEnded: eventTypes.ended,
|
topEnded: eventTypes.ended,
|
||||||
topError: eventTypes.error,
|
topError: eventTypes.error,
|
||||||
topFocus: eventTypes.focus,
|
topFocus: eventTypes.focus,
|
||||||
@@ -417,7 +418,6 @@ var topLevelEventsToDispatchConfig = {
|
|||||||
topMouseOut: eventTypes.mouseOut,
|
topMouseOut: eventTypes.mouseOut,
|
||||||
topMouseOver: eventTypes.mouseOver,
|
topMouseOver: eventTypes.mouseOver,
|
||||||
topMouseUp: eventTypes.mouseUp,
|
topMouseUp: eventTypes.mouseUp,
|
||||||
topOnEncrypted: eventTypes.onEncrypted,
|
|
||||||
topPause: eventTypes.pause,
|
topPause: eventTypes.pause,
|
||||||
topPaste: eventTypes.paste,
|
topPaste: eventTypes.paste,
|
||||||
topPlay: eventTypes.play,
|
topPlay: eventTypes.play,
|
||||||
@@ -501,6 +501,7 @@ var SimpleEventPlugin = {
|
|||||||
case topLevelTypes.topCanPlayThrough:
|
case topLevelTypes.topCanPlayThrough:
|
||||||
case topLevelTypes.topDurationChange:
|
case topLevelTypes.topDurationChange:
|
||||||
case topLevelTypes.topEmptied:
|
case topLevelTypes.topEmptied:
|
||||||
|
case topLevelTypes.topEncrypted:
|
||||||
case topLevelTypes.topEnded:
|
case topLevelTypes.topEnded:
|
||||||
case topLevelTypes.topError:
|
case topLevelTypes.topError:
|
||||||
case topLevelTypes.topInput:
|
case topLevelTypes.topInput:
|
||||||
@@ -508,7 +509,6 @@ var SimpleEventPlugin = {
|
|||||||
case topLevelTypes.topLoadedData:
|
case topLevelTypes.topLoadedData:
|
||||||
case topLevelTypes.topLoadedMetadata:
|
case topLevelTypes.topLoadedMetadata:
|
||||||
case topLevelTypes.topLoadStart:
|
case topLevelTypes.topLoadStart:
|
||||||
case topLevelTypes.topOnEncrypted:
|
|
||||||
case topLevelTypes.topPause:
|
case topLevelTypes.topPause:
|
||||||
case topLevelTypes.topPlay:
|
case topLevelTypes.topPlay:
|
||||||
case topLevelTypes.topPlaying:
|
case topLevelTypes.topPlaying:
|
||||||
|
|||||||
@@ -309,12 +309,12 @@ var mediaEvents = {
|
|||||||
topCanPlayThrough: 'canplaythrough',
|
topCanPlayThrough: 'canplaythrough',
|
||||||
topDurationChange: 'durationchange',
|
topDurationChange: 'durationchange',
|
||||||
topEmptied: 'emptied',
|
topEmptied: 'emptied',
|
||||||
|
topEncrypted: 'encrypted',
|
||||||
topEnded: 'ended',
|
topEnded: 'ended',
|
||||||
topError: 'error',
|
topError: 'error',
|
||||||
topLoadedData: 'loadeddata',
|
topLoadedData: 'loadeddata',
|
||||||
topLoadedMetadata: 'loadedmetadata',
|
topLoadedMetadata: 'loadedmetadata',
|
||||||
topLoadStart: 'loadstart',
|
topLoadStart: 'loadstart',
|
||||||
topOnEncrypted: 'onencrypted',
|
|
||||||
topPause: 'pause',
|
topPause: 'pause',
|
||||||
topPlay: 'play',
|
topPlay: 'play',
|
||||||
topPlaying: 'playing',
|
topPlaying: 'playing',
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ var topLevelTypes = keyMirror({
|
|||||||
topDrop: null,
|
topDrop: null,
|
||||||
topDurationChange: null,
|
topDurationChange: null,
|
||||||
topEmptied: null,
|
topEmptied: null,
|
||||||
|
topEncrypted: null,
|
||||||
topEnded: null,
|
topEnded: null,
|
||||||
topError: null,
|
topError: null,
|
||||||
topFocus: null,
|
topFocus: null,
|
||||||
@@ -58,7 +59,6 @@ var topLevelTypes = keyMirror({
|
|||||||
topMouseOut: null,
|
topMouseOut: null,
|
||||||
topMouseOver: null,
|
topMouseOver: null,
|
||||||
topMouseUp: null,
|
topMouseUp: null,
|
||||||
topOnEncrypted: null,
|
|
||||||
topPaste: null,
|
topPaste: null,
|
||||||
topPause: null,
|
topPause: null,
|
||||||
topPlay: null,
|
topPlay: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user