-
Notifications
You must be signed in to change notification settings - Fork 31
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
[JS Bug]: Event listener breaks video pause function #735
Comments
Is there a way to remove or disable the event listeners added by |
Hey Juan! Sorry for the delayed response. Our team has been largely out on holiday break, and we won't be able to look closely at this until next week. However, you should be able to copy/paste the Next week we will investigate a real fix, assuming we can reproduce. Thank you! |
Quick update on this, looks like even after removing the event handlers we eventually still end up infinite looping through play/pause calls. It doesn't happen instantly like we see in Juan's example video, but after a few manual play/pause calls, it starts infinite looping. |
It's worth noting that this doesn't happen in our samples, at least not as far as I've seen. Is this a new issue? Or has it been happening since you first integrated? |
Usually if this sort of thing happens it's because the Could be something along those lines...but it's hard to say without a repro. How custom is your video.js setup? Did you write a custom shim class adhering to the |
I believe we used to have it working and then somewhere down the line it regressed. For some reason those custom playing and pause event handlers keep firing in MediaPlayerSynchronizer.js. If i remove them, it looks like as the presenter, pressing play/pause works fine (calling our play/pause functions) up until a point when the synchronizer pushes a play/pause call to the custom class and then things get all out of whack |
Closed with #737, just do the following: This is a beta feature so please share feedback if this is not working as expected. |
Please review FAQ and Known issues before filing a new item!
Please note: any submissions with insufficient reproducible information will be marked as 'Waiting for customer input' and may be closed is there is no response
Describe the bug
Adding live-share-react and using
useMediaSession
while using video.js seems to wire up a listener on the pause event.This listener then interferes with the normal pausing of the player, shown below. When I click pause, it seems like the pause event is triggered, then the play event, then pause, and so on in an infinite loop.
video-playback.mp4
To Reproduce
Expected behavior
Play and pause works without any errors.
The text was updated successfully, but these errors were encountered: