Wednesday, December 23, 2015

Cross-platform release of react-native-sound

I've added support for Android in the latest release of react-native-sound, a native module to play sound clips in React Native apps. Most features have been ported as shown in the following table:

Load sound from the app bundle
Load sound from other directories
Play sound
Playback completion callback
Release resource
Get duration
Get number of channels
Get/set volume
Get/set pan
Get/set loops
Get/set current time

I think react-native-sound is so far the most feature-rich open-source module for audio playback in React Native apps :)

Thursday, December 3, 2015

Major update of the react-native-sound module

I've published a major update of the react-native-sound native module for iOS. It now enables easy control of sound volume, pan position, loops, playback time, completion callback. It can also load sound files from directories other than the main bundle. To implement these features, I had to make some backward-incompatible changes to the JavaScript API. Please check out the new example and API doc before you upgrade.