Skip to content

Commit a20f070

Browse files
ryanburstluwes
andauthored
Update src/Player.tsx
Co-authored-by: Wesley Luyten <[email protected]>
1 parent cf3d50f commit a20f070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Player.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const Player: Player = React.forwardRef((props, ref) => {
7171
// to the underlying HTML video element, which causes React warnings about unknown
7272
// event handler properties
7373
const eventProps: Record<string, EventListenerOrEventListenerObject> = {};
74-
const reactPlayerEventHandlers = ['onReady', 'onStart', 'onPlay', 'onPause', 'onEnded', 'onLoadStart'];
74+
const reactPlayerEventHandlers = ['onReady', 'onStart'];
7575

7676
for (const key in props) {
7777
if (key.startsWith('on') && !reactPlayerEventHandlers.includes(key)) {

0 commit comments

Comments
 (0)