0.1.2 • Published 4 years ago
@lowkey/audio-releaser v0.1.2
@lowkey/audio-releaser
Release AV session after usage
Installation
npm install @lowkey/audio-releaseror
yarn add @lowkey/audio-releaserthen install pods
cd ios/ && pod installUsage
To set AVSession category
| Category | Are |
|---|---|
| Playback | AVAudioSessionCategoryPlayback |
| PlayAndRecord | AVAudioSessionCategoryPlayAndRecord |
import AudioReleaser from "@lowkey/audio-releaser";
// ...
AudioReleaser.setCategory('Playback');To release audio after usage
import AudioReleaser from "@lowkey/audio-releaser";
// ...
AudioReleaser.releaseAudio();Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT