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

cleanup event handler addition/removal to not bork on source change #251

Merged

Conversation

squarebracket
Copy link
Contributor

@squarebracket squarebracket commented Apr 30, 2018

The current way the event handlers are registered / unregistered for text and audio track changes causes problems when switching between SourceHandlers. This change seems to prevent it, at least from my testing with contrib-dash and contrib-hls.

There should probably be some automated tests here checking to make sure that's actually the case.

@DougGore
Copy link

DougGore commented May 4, 2018

I have tried this change locally myself it seems to fix the issue mentioned. The tracks are now getting removed when the plugin is disposed. Thanks 👍

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@squarebracket squarebracket merged commit 434e9ff into videojs:master Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants