0.1.2 • Published 3 years ago
@lowkey/audio-releaser v0.1.2
@lowkey/audio-releaser
Release AV session after usage
Installation
npm install @lowkey/audio-releaser
or
yarn add @lowkey/audio-releaser
then install pods
cd ios/ && pod install
Usage
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