A Flutter plugin for record or streaming audio by RTMP
For android I use rtmp-rtsp-stream-client-java and for iOS I use HaishinKit.swift
- Push RTMP audio
- Record audio (Develop mode)
First, add flutter_audio_streaming
as a dependency in your pubspec.yaml file.
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>
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'
}