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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add volume controller #58

Merged
merged 4 commits into from
Jun 23, 2016
Merged

Add volume controller #58

merged 4 commits into from
Jun 23, 2016

Conversation

v12
Copy link
Contributor

@v12 v12 commented May 1, 2016

Volume controller that handles both clicks and wheel (trackpad) movement when mouse is hovering the controller 馃槑

Closes #56

@MichielDeMey
Copy link
Collaborator

Nice PR, but I would like to see us use and skin the native range input element, that will allow us to read the value from the native element.

@v12
Copy link
Contributor Author

v12 commented May 19, 2016

@MichielDeMey fair point, I absolutely forgot that input[type=range] exists 馃憤

}

this.setState({
lastVolume: volume,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's make sure we have a fixed length.
Using volume.toFixed(2) will truncate the volume level to 2 numbers at the most.

e.g. 0.45555555 will become 0.45

@MichielDeMey
Copy link
Collaborator

Let's also persist the volume level (but not the "muted" state) to localStorage when the user closes the application, I believe that would improve UX a bit.

v12 added 2 commits June 3, 2016 17:30
Set volume to 100% when it has been set to 0 manually and user clicks toggle mute button rather than setting to previous value (which is a volume change step)

Also, make volume value to be fixed-length when changing it using mouse wheel
@v12
Copy link
Contributor Author

v12 commented Jun 3, 2016

@MichielDeMey just pushed changes that implement all your suggestions 馃憤

@v12
Copy link
Contributor Author

v12 commented Jun 21, 2016

Just wondering if anything prevents this PR from being merged? 鈽猴笍

@MichielDeMey
Copy link
Collaborator

Whoops, we totally lost track of this issue.

Thank you for your contribution!

@MichielDeMey MichielDeMey merged commit f02abb1 into gillesdemey:master Jun 23, 2016
@v12 v12 deleted the volume-control branch June 23, 2016 11:51
@fabianperez
Copy link

Just came here looking for volume control support. Thanks for doing this! 馃檶

@gillesdemey
Copy link
Owner

Released as v0.8.0

@FoxxMD
Copy link

FoxxMD commented Oct 12, 2016

Thanks for all the hard work!!

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.

None yet

5 participants