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

Use an event to notify features of controls size change #1536

Merged
merged 4 commits into from
Jul 31, 2015
Merged

Use an event to notify features of controls size change #1536

merged 4 commits into from
Jul 31, 2015

Conversation

kabel
Copy link
Contributor

@kabel kabel commented Jul 9, 2015

This will allow new features that may need to know when the controls are sized so they can respond in turn. It also allows existing features to hook into the player's API for setControlsSize instead of that function looking at the prototype for specific feature added functions.

kabel added 4 commits July 9, 2015 18:27
Instead of checking the prototype for various methods that features add, an event should be triggered on the player container that signals when the controls have been sized.
Use the `controlsresize` event to change the progress and current rail.
This seems to be a good workaround to the issue of the volume handle not being rendered in the right location if media is not visible when the player is built.
This will help correct poor sizing when a player is invisible when it's built.
@johndyer
Copy link
Collaborator

Great changes!

johndyer added a commit that referenced this pull request Jul 31, 2015
Use an event to notify features of controls size change
@johndyer johndyer merged commit 0937a99 into mediaelement:master Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants