flutter_rtmp 0.1.4

Flutter Android iOS

A rtmp plugin.Support both iOS and Android. It has been upload to github.

flutter_rtmp #

使用方法 #

git安装使用时建议要按照release版本号

引入 #

1.第一种方法

flutter_rtmp:
   git: https://github.com/MEnigma/flutter_rtmp.git
   ref: ***

2.第二种

flutter_rtmp: ^*.*.*

关于iOS的配置

需要在info.plist中添加 

<key>io.flutter.embedded_views_preview</key>
<true/>

关于Android的配置

目前仅支持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,
      );
  }

引用 #

进度 #

  • [x] 推流
  • [x] 切换摄像头
  • [ ] 美颜
  • [ ] 旋转 (android端会根据宽高比调整横竖屏)

LICENSE #

  • 参与者
3
likes
80
pub points
53%
popularity

A rtmp plugin.Support both iOS and Android. It has been upload to github.

Homepage

Documentation

API reference

Uploader

makewei2@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, permission_handler

More

Packages that depend on flutter_rtmp