flutter_audio_streaming 1.0.5
flutter_audio_streaming: ^1.0.5 copied to clipboard
A Flutter plugin for record or streaming audio by RTMP
flutter_audio_streaming #
A Flutter plugin for record or streaming audio by RTMP
Getting Started #
For android I use rtmp-rtsp-stream-client-java and for iOS I use HaishinKit.swift
Features: #
- Push RTMP audio
- Record audio (Develop mode)
Installation #
First, add flutter_audio_streaming
as a dependency in your pubspec.yaml file.
iOS #
Add two rows to the ios/Runner/Info.plist
:
- one with the key
Privacy - Camera Usage Description
and a usage description. - and one with the key
Privacy - Microphone Usage Description
and a usage description.
Or in text format add the key:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIBackgroundModes</key>
<array>
<string>processing</string>
</array>
<key>NSMicrophoneUsageDescription</key>
<string>App requires access to the microphone for live streaming feature.</string>
Android #
Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle
file.
minSdkVersion 21
Need to add in a section to the packaging options to exclude a file, or gradle will error on building.
packagingOptions {
exclude 'project.clj'
}