Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with onEnd, onPause, etc in strict mode #200

Open
Feli02 opened this issue May 19, 2022 · 6 comments
Open

Problems with onEnd, onPause, etc in strict mode #200

Feli02 opened this issue May 19, 2022 · 6 comments
Labels

Comments

@Feli02
Copy link

Feli02 commented May 19, 2022

When I use any "on" event is not working the event, when I use the onEnd event, when the video finished no event is fire, same with other events such as pause. Everything else works fine, but those events are not working.

@zotovy
Copy link

zotovy commented May 30, 2022

same issue. Any updates?

@Lexe003
Copy link

Lexe003 commented Jun 5, 2022

Ye, same issue here. If you found a workaround, please drop it here.

EDIT:

After some research found this:

cookpete/react-player#1453 (comment)

Removing React.StrictMode solved the issue for me

@goto-bus-stop
Copy link
Member

After some research found this:
cookpete/react-player#1453 (comment)
Removing React.StrictMode solved the issue for me

🤯

i am not sure when i can have a deeper look at this. The fact that StrictMode changes the behaviour suggests that it's to do with React double-mounting in development mode? it would be important to be compatible with this.

@goto-bus-stop goto-bus-stop changed the title Problems with onEnd, onPause, etc Problems with onEnd, onPause, etc in strict mode Oct 17, 2022
@Takesizmail
Copy link

+1

@ayomikun-adenitire
Copy link

Any updates on this issue? I’m still experiencing it.

@aayodejii
Copy link

aayodejii commented Aug 4, 2024

I can also confirm this. Turning off strict mode helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants