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