ijk_player_recorder
IJKPlayerRecorder
Getting Started
This project is a plugin for Flutter,It provides VideoView allow play & record RTSP streaming
If you want to get config IJKPlayerRecorder please get from IJKPlayer source code,
For only android app get from IJKPlayerRecorder,
Table of contents
Features
xPlay RTSP video with LOW LATENCY on FlutterxAndroid Play & Record videoSupport IOS: TodoAdd filter/ effect to video - not at this time
Requirements
- Flutter sdk: ">=2.12.0 <3.0.0"
Usage
VideoViewController? _videoViewController;
.....
Expanded(child: VideoView(
onVideoViewCreatedCallback: (VideoViewController controller) {
setState(() {
_videoViewController = controller;
});
},
))
.....
Method Support
void startPreview() {
_videoViewController?.start();
}
void stopPreview() {
_videoViewController?.stopPlayback();
}
Future<void> startRecord() async {
Directory appDocDir = await getApplicationDocumentsDirectory();
setState(() {
outVideo = appDocDir.path + "/a.mp4";
});
_videoViewController?.startRecord(outVideo);
}
void stopRecord() {
_videoViewController?.stopRecord();
}
void setURL() {
_videoViewController?.setVideoPath(videoURL);
}
Sample
TBD