flutter_fc_media 0.0.9 copy "flutter_fc_media: ^0.0.9" to clipboard
flutter_fc_media: ^0.0.9 copied to clipboard

A Flutter plugin for RTP to RTSP media streaming using ZLMediaKit.

flutter_fc_media #

A new Flutter project for ZLMediaKit

Getting Started #

  • iOS & Android
  FlutterFcMedia.onEventListener((value){
      _nativeMsg = value as String;
      print("监听到的数据是: $_nativeMsg");
      setState(() {});
  });

  ElevatedButton(onPressed: (){
    FlutterFcMedia.actionForEventStart(rtpPort: 12345, rtspPort: 8554);
  }, child: Text("开始监听"))

  ElevatedButton(onPressed: (){
    FlutterFcMedia.actionForMediaReset();
  }, child: Text("移除对象"))

注意

  • Flutter 打包 apk, debug版本正常、release版本Crash问题 flutter build apk --release
JNI DETECTED ERROR IN APPLICATION: java_class == null
in call to GetFieldID
from java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class)
Runtime aborting…
Dumping all threads without mutator lock held

R8压缩, Flutter 中 release 版本是默认开启R8压缩的 然后就在build.gradle中修改配置

buildTypes {
    release {
        minifyEnabled false
        shrinkResources false
        signingConfig signingConfigs.release
    }
}
1
likes
150
points
157
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for RTP to RTSP media streaming using ZLMediaKit.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_fc_media

Packages that implement flutter_fc_media