git安装使用时建议要按照release版本号
flutter_rtmp:
git: https://github.com/MEnigma/flutter_rtmp.git
ref: ***
flutter_rtmp: ^*.*.*
需要在info.plist中添加
<key>io.flutter.embedded_views_preview</key>
<true/>
目前仅支持armv7架构
android{
...
defaultConfig{
...
ndk{
abiFilters "armeabi-v7a"
}
}
}
示例
/// 控制器 void initState() { super.initState(); _manager = RtmpManager(onCreated: () { print("--- view did created ---"); }); } /// 视图 Widget build(BuildContext context) { return RtmpView( manager: _manager, ); }
- 推流
- 切换摄像头
- 美颜
- 旋转 (android端会根据宽高比调整横竖屏)
- 参与者
- mark < https://github.com/MEnigma >
- youshinki < https://github.com/youshinki >