✨ 手把手带你写 Flutter 系统音量插件 ✨ Flutter 多版本管理工具 fvm ✨
A Flutter media player plugin for iOS and android based on ijkplayer
您的支持是我们开发的动力。 欢迎Star,欢迎PR~。 Feedback welcome and Pull Requests are most welcome!
- Development Documentation https://fijkplayer.befovy.com/docs/en/ quick start、guide、and concepts about fijkplayer
- 开发文档 https://fijkplayer.befovy.com/docs/zh/ 包含快速开始、使用指南、fijkplayer 中的概念理解
- dart api https://pub.dev/documentation/fijkplayer/ detail API and argument explaination
- Release Notes https://github.com/befovy/fijkplayer/releases and CHANGELOG.md
- FAQ https://fijkplayer.befovy.com/docs/zh/faq.html
Add fijkplayer as a dependency in your pubspec.yaml file.
dependencies:
fijkplayer: ^{{latest version}}Replace {{latest version}} with the version number in badge above.
Use git branch which not published to pub.
dependencies:
fijkplayer:
git:
url: https://github.com/befovy/fijkplayer.gitref: develop # can be replaced to branch or tag nameimport'package:fijkplayer/fijkplayer.dart';
import'package:flutter/material.dart';
classVideoScreenextendsStatefulWidget {
finalString url;
VideoScreen({@requiredthis.url});
@override_VideoScreenStatecreateState() =>_VideoScreenState();
}
class_VideoScreenStateextendsState<VideoScreen> {
finalFijkPlayer player =FijkPlayer();
_VideoScreenState();
@overridevoidinitState() {
super.initState();
player.setDataSource(widget.url, autoPlay:true);
}
@overrideWidgetbuild(BuildContext context) {
returnScaffold(
appBar:AppBar(title:Text("Fijkplayer Example")),
body:Container(
alignment:Alignment.center,
child:FijkView(
player: player,
),
));
}
@overridevoiddispose() {
super.dispose();
player.release();
}
}
Thanks goes to these wonderful people (emoji key)
This project follows the all-contributors specification. Contributions of any kind welcome
Warning: The fijkplayer video player plugin is not functional on iOS simulators. An iOS device must be used during development/testing. For more details, please refer to this issue.


