React Native Sound Manager
This package help you easy to control audio with support cache url!
This package requires these, please make sure you had installed them:
Getting started
$ npm install react-native-sound-manager --save
$ yarn add react-native-sound-manager
$ npm install react-native-sound-manager react-native-sound react-native-fs --save
Usage
import SoundManager from 'react-native-sound-manager';
SoundManager.downloadMediaFile(params)
SoundManager.play({
url: 'https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3',
loop: false,
type: PLAY_SOUND_TYPE.OVERLAY,
cache: true,
})
SoundManager.pause()
SoundManager.resume()
SoundManager.stop()
SoundManager.disable()
SoundManager.enable()
License
This module is MIT licensed