video_player_rtmp_ext 0.0.3 copy "video_player_rtmp_ext: ^0.0.3" to clipboard
video_player_rtmp_ext: ^0.0.3 copied to clipboard

outdated

A player supporting rtmp&rtmps live video

video_player_rtmp_ext #

pub

A player supporting rtmp&rtmps live video

Your flutter version must be greater than or equal to 3.3.2 to use this plug-in

Getting Started #

video_player_rtmp_ext: ^last_version

Android

  • in project build.gradle add this line
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
        maven { url "https://maven.aliyun.com/repository/public" }
    }
}
  • add minSdkVersion set to 19

  • add android:usesCleartextTraffic="true" to you AndroidManifest.xml

1.Simple example #

  • Initialize controller
IJKPlayerController controller = IJKPlayerController.network("http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear2/prog_index.m3u8");
  • Using widgets
VideoPlayerRtmpExtWidget(
   controller: controller,
   viewCreated: (IJKPlayerController _){
       controller.play();
   },
)

2. Controller API #

  • Start
controller.play();
  • Pause
controller.pause();
  • Stop
controller.stop();
  • Judge whether it is playing
final isPlaying = await controller.isPlaying;