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

ManualTimeUpdatesOff was not de-registering events #1793

Closed
wants to merge 2 commits into from

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Jan 9, 2015

ManualTimeUpdatesOff was trying to de-register trackCurrentTime and
stopTrackingCurrentTime against itself rather than the player, which is
where these events were registered against.

This manifests itself if you have flash-based tech that is loaded initially and then try to unload it and switch to an html5-based tech.

ManualTimeUpdatesOff was trying to de-register trackCurrentTime and
stopTrackingCurrentTime against itself rather than the player, which is
where these events were registered against.
@mmcc
Copy link
Member

mmcc commented Jan 9, 2015

lgtm

@heff
Copy link
Member

heff commented Jan 16, 2015

@mmcc, want to attempt merging this in with contrib?

@mmcc
Copy link
Member

mmcc commented Jan 16, 2015

yep

mmcc pushed a commit to mmcc/video.js that referenced this pull request Jan 16, 2015
mmcc pushed a commit to mmcc/video.js that referenced this pull request Jan 16, 2015
@gkatsev gkatsev closed this in 1c17a67 Jan 16, 2015
@mmcc
Copy link
Member

mmcc commented Jan 16, 2015

^^ thanks, auth.

@giakas
Copy link

giakas commented Jan 23, 2015

this same issue exists for 'controlsenabled' and 'controlsdisabled' event.

we never have a deregister for these events. so if we load another tech as part of src(value) and then dispose, we are getting exception. we should deregister these events as well.

@gkatsev
Copy link
Member Author

gkatsev commented Jan 24, 2015

@giakas yes we should. Would you be up for submitting a PR for that change?

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