fijkplayer 与 video_player 测试
This commit is contained in:
parent
eada2658f1
commit
a6e81cc337
@ -13,8 +13,8 @@ class CustomVideoPlayer extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _CustomVideoPlayerState extends State<CustomVideoPlayer> {
|
||||
late FijkPlayer? player;
|
||||
late VideoPlayerController? _controller;
|
||||
FijkPlayer? player;
|
||||
VideoPlayerController? _controller;
|
||||
|
||||
_CustomVideoPlayerState();
|
||||
|
||||
@ -72,7 +72,7 @@ class _CustomVideoPlayerState extends State<CustomVideoPlayer> {
|
||||
void dispose() {
|
||||
SystemChrome.setPreferredOrientations([]);
|
||||
super.dispose();
|
||||
player?.dispose();
|
||||
player?.stop().then((value) => player?.dispose());
|
||||
_controller?.dispose();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user