mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-02 16:50:13 +08:00
@@ -663,7 +663,9 @@ class VideoDetailController extends GetxController
|
|||||||
(isFileSource
|
(isFileSource
|
||||||
? true
|
? true
|
||||||
: videoPlayerKey.currentState?.mounted == true)) {
|
: videoPlayerKey.currentState?.mounted == true)) {
|
||||||
return playerInit(autoFullScreenFlag: autoFullScreenFlag);
|
return playerInit(
|
||||||
|
autoFullScreenFlag: autoFullScreenFlag && _autoPlay.value,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -309,13 +309,17 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
plPlayerController = videoDetailController.plPlayerController;
|
final plPlayerController = this.plPlayerController =
|
||||||
|
videoDetailController.plPlayerController;
|
||||||
videoDetailController.autoPlay = true;
|
videoDetailController.autoPlay = true;
|
||||||
plPlayerController!
|
plPlayerController
|
||||||
..addStatusLister(playerListener)
|
..addStatusLister(playerListener)
|
||||||
..addPositionListener(positionListener);
|
..addPositionListener(positionListener);
|
||||||
if (videoDetailController.plPlayerController.preInitPlayer) {
|
if (plPlayerController.preInitPlayer) {
|
||||||
return plPlayerController!.play();
|
if (plPlayerController.autoEnterFullScreen) {
|
||||||
|
plPlayerController.triggerFullScreen();
|
||||||
|
}
|
||||||
|
return plPlayerController.play();
|
||||||
} else {
|
} else {
|
||||||
return videoDetailController.playerInit(
|
return videoDetailController.playerInit(
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ class PlPlayerController with BlockConfigMixin {
|
|||||||
late final showFsLockBtn = Pref.showFsLockBtn;
|
late final showFsLockBtn = Pref.showFsLockBtn;
|
||||||
late final keyboardControl = Pref.keyboardControl;
|
late final keyboardControl = Pref.keyboardControl;
|
||||||
|
|
||||||
late final bool _autoEnterFullScreen = Pref.autoEnterFullScreen;
|
late final bool autoEnterFullScreen = Pref.autoEnterFullScreen;
|
||||||
late final bool autoExitFullscreen = Pref.autoExitFullscreen;
|
late final bool autoExitFullscreen = Pref.autoExitFullscreen;
|
||||||
late final bool autoPlayEnable = Pref.autoPlayEnable;
|
late final bool autoPlayEnable = Pref.autoPlayEnable;
|
||||||
late final bool enableVerticalExpand = Pref.enableVerticalExpand;
|
late final bool enableVerticalExpand = Pref.enableVerticalExpand;
|
||||||
@@ -630,7 +630,7 @@ class PlPlayerController with BlockConfigMixin {
|
|||||||
// 数据加载完成
|
// 数据加载完成
|
||||||
dataStatus.value = DataStatus.loaded;
|
dataStatus.value = DataStatus.loaded;
|
||||||
|
|
||||||
if (autoFullScreenFlag && _autoEnterFullScreen) {
|
if (autoFullScreenFlag && autoEnterFullScreen) {
|
||||||
triggerFullScreen(status: true);
|
triggerFullScreen(status: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user