fix: fullScreenStatusListener
This commit is contained in:
@ -101,7 +101,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
|
|
||||||
videoSourceInit();
|
videoSourceInit();
|
||||||
appbarStreamListen();
|
appbarStreamListen();
|
||||||
|
if (autoPlayEnable) {
|
||||||
fullScreenStatusListener();
|
fullScreenStatusListener();
|
||||||
|
}
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
floating = vdCtr.floating!;
|
floating = vdCtr.floating!;
|
||||||
}
|
}
|
||||||
@ -184,6 +186,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
await vdCtr.playerInit(autoplay: true);
|
await vdCtr.playerInit(autoplay: true);
|
||||||
plPlayerController = vdCtr.plPlayerController;
|
plPlayerController = vdCtr.plPlayerController;
|
||||||
plPlayerController!.addStatusLister(playerListener);
|
plPlayerController!.addStatusLister(playerListener);
|
||||||
|
fullScreenStatusListener();
|
||||||
vdCtr.autoPlay.value = true;
|
vdCtr.autoPlay.value = true;
|
||||||
vdCtr.isShowCover.value = false;
|
vdCtr.isShowCover.value = false;
|
||||||
isShowing.value = true;
|
isShowing.value = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user