Added the ability to change and then reset the ios master volume#8
Open
shibbs wants to merge 10 commits intodevgeeks:masterfrom
Open
Added the ability to change and then reset the ios master volume#8shibbs wants to merge 10 commits intodevgeeks:masterfrom
shibbs wants to merge 10 commits intodevgeeks:masterfrom
Conversation
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
…lume and resetVolume methods.
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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();