ogg_opus_player 0.7.0
ogg_opus_player: ^0.7.0 copied to clipboard
An ogg opus file player and recorder for flutter.
ogg_opus_player #
a ogg opus file player for flutter.
| platform | required os version | |
|---|---|---|
| iOS | ✅ | 10.0 |
| macOS | ✅ | 10.12 |
| Windows | ✅ | |
| Linux | ✅ | |
| Android | ✅ | minSdk 21 |
Getting Started #
-
add
ogg_opus_playerto your pubspec.yamlogg_opus_player: $latest_version -
then you can play your opus ogg file from
OggOpusPlayerimport 'package:ogg_opus_player/ogg_opus_player.dart'; void playOggOpusFile() { final player = OggOpusPlayer("file_path"); player.play(); player.pause(); player.dipose(); }
Linux required #
Need SDL2 library installed on Linux.
sudo apt-get install libsdl2-dev
sudo apt-get install libopus-dev
iOS/macOS required #
Record voice need update your app's Info.plist NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
For example:
<key>NSMicrophoneUsageDescription</key>
<string>Example uses your microphone to record voice for test.</string>
for macOS, you also need update your DebugProfile.entitlements and ReleaseProfile.entitlements with the following:
<key>com.apple.security.device.microphone</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
LICENSE #
see LICENSE file