i2edu 64e73b6d74 修复本地播放问题 | преди 4 години | |
---|---|---|
.. | ||
android | преди 4 години | |
ios | преди 4 години | |
lib | преди 4 години | |
res | преди 4 години | |
test | преди 4 години | |
.flutter-plugins-dependencies | преди 4 години | |
.gitignore | преди 4 години | |
.metadata | преди 4 години | |
README.md | преди 4 години | |
flutter_sound_example.iml | преди 4 години | |
flutter_sound_example_android.iml | преди 4 години | |
pubspec.yaml | преди 4 години |
This is not a playlist audio module and this library provides simple recorder and player functionalities for both android
and ios
platforms. This only supports default file extension for each platform. This module can also handle file from url.
For help getting started with Flutter, view our online documentation.
Add flutter_sound
as a dependency in pubspec.yaml
For help on adding as a dependency, view the documentation.
On iOS you need to add a usage description to info.plist
:
<key>NSMicrophoneUsageDescription</key>
<string>This sample uses the microphone to record your speech and convert it to text.</string>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
On Android you need to add a permission to AndroidManifest.xml
:
<uses-permission android:name="android.permission.RECORD_AUDIO" />