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

Sound plays on mobile app muted #48

Closed
CoericK opened this issue Jul 26, 2015 · 10 comments
Closed

Sound plays on mobile app muted #48

CoericK opened this issue Jul 26, 2015 · 10 comments
Assignees
Labels

Comments

@CoericK
Copy link

CoericK commented Jul 26, 2015

Hello guys as the title says im having issued, i added this library for a mobile web app that im working on, it works well but turns out that the sound is beign played even when the mobile is muted, or in vibartinon mode, im calling the sound via onclick event. How can i fix this? is there any way?

@IonDen
Copy link
Owner

IonDen commented Jul 26, 2015

Hi, i never thought about this situation. Let's pretend that it is a bug. In few days i will try to find some time and check how we can handle this situation.

@IonDen IonDen self-assigned this Jul 26, 2015
@CoericK
Copy link
Author

CoericK commented Jul 26, 2015

Thank you for your fast answer @IonDen, i will be waiting for news.

@IonDen
Copy link
Owner

IonDen commented Jul 27, 2015

Hi, just checked on my iPhones safari browser.
It seems to be working correctly, sounds are playing only if the silent mode is off.

Please provide more info about your testing environment.

@IonDen IonDen added Question and removed Minor Bug labels Jul 27, 2015
@CoericK
Copy link
Author

CoericK commented Jul 28, 2015

Im testing it on a Samsung Galaxy A5, Android 4.4.4.

 ion.sound({
                sounds: [
                    {name: 'pop_hi'}
                ],

                // main config
                path: '/assets/audio/pop_hi/',
                preload: true,
                multiplay: true,
                volume: 1
            });

            var soundEveryButton = function () {
                ion.sound.play('pop_hi');
            };

@CoericK
Copy link
Author

CoericK commented Jul 28, 2015

Every time a user click on a button i call soundEveryButton it works but it works even when silent mode is on

@IonDen
Copy link
Owner

IonDen commented Jul 28, 2015

Ok i will try on my Nexus. It has android 5.x.

@CoericK
Copy link
Author

CoericK commented Jul 31, 2015

Hello @IonDen did u make the test?

@IonDen
Copy link
Owner

IonDen commented Jul 31, 2015

Hi @CoericK
I made a test on Google Nexus 7 (Android 5.1.1) Latest Chrome Browser.
Everything seems to be ok. Sound volume is following device volume. I device is on zero volume, nothing to hear.

Maybe it is some Android 4.x bug. I don't know what to do more.
Besides, there is no way to know from browser device sound status. I din't found such APIs

@CoericK
Copy link
Author

CoericK commented Jul 31, 2015

Hi @IonDen Then what could be making my app behave on that way? Maybe i need to upgrade my library?

@IonDen
Copy link
Owner

IonDen commented Jul 31, 2015

Sorry, but i have no more ideas.

@IonDen IonDen closed this as completed Apr 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants