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

Added the ability to change and then reset the ios master volume #8

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

shibbs
Copy link

@shibbs shibbs commented May 29, 2015

This is a modification to the slider control library to allow you to set the phone's master volume, and then set it back if needed using the clever little slider hack over at - http://stackoverflow.com/questions/19218729/ios-7-mpmusicplayercontroller-volume-deprecated-how-to-change-device-volume-no/24993026#24993026

Some documenation stuff will need editing, but to use it just do the following :
volumeSlider = plugins.volumeSlider;
volumeSlider.createVolumeSlider(10, 350, 300, 30); // origin x, origin y, width, height
volumeSlider.setVolumeSlider(1.0); //or w/e you want here, I was just maxing it out.
volumeSlider.resetVolumeSlider();

shibbs added 5 commits May 28, 2015 18:44
Updated the comments to reflect what is going on
…briefly in my app, am committing what should be a working copy
@shibbs shibbs changed the title Added the ability to maximize and then reset the user volume Added the ability to change and then reset the phone's master volume May 29, 2015
@shibbs shibbs changed the title Added the ability to change and then reset the phone's master volume Added the ability to change and then reset the ios master volume May 29, 2015
@shibbs
Copy link
Author

shibbs commented Jun 12, 2015

Updated our repository to also allow you to set the volume on an android device using @battlmonstr 's modifications to make it work for Android.

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