React-native-sound: Headphone sound only

Created on 7 Mar 2017  路  3Comments  路  Source: zmxv/react-native-sound

When I build and run the app on my device the sound only works when my headphones are in. Any ideas as to why there is no sound via the speakers?

documentation

Most helpful comment

I had this once (oddly only on an iPad) and it was solved by using Sound.setCategory('Playback', true) or by making sure the 'slience' switch wasn't set.

The other common issue that comes up is that another sound-based library has set the category e.g. (react-native-audio) - you can get around this by using the setCategory as above just before playing.

All 3 comments

I have tried, but for the IOS version compatibility has a problem, can't play there may be before 10.1 version

I had this once (oddly only on an iPad) and it was solved by using Sound.setCategory('Playback', true) or by making sure the 'slience' switch wasn't set.

The other common issue that comes up is that another sound-based library has set the category e.g. (react-native-audio) - you can get around this by using the setCategory as above just before playing.

+1 @benvium! Thank you very mich! This helped me. Should be part of the readme

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LCD344 picture LCD344  路  5Comments

sfreeman28 picture sfreeman28  路  4Comments

andrekovac picture andrekovac  路  5Comments

poc7667 picture poc7667  路  4Comments

tanapats picture tanapats  路  3Comments