fix: 锁定状态、未开启自动播放时返回逻辑

This commit is contained in:
guozhigq
2023-09-03 16:30:03 +08:00
parent cd38c0799d
commit 0cb580ba8e
4 changed files with 33 additions and 27 deletions

View File

@ -167,7 +167,13 @@ class VideoDetailController extends GetxController
playerInit();
}
Future playerInit({video, audio, seekToTime, duration}) async {
Future playerInit({
video,
audio,
seekToTime,
duration,
bool autoplay = true,
}) async {
/// 设置/恢复 屏幕亮度
if (brightness != null) {
ScreenBrightness().setScreenBrightness(brightness!);
@ -199,6 +205,7 @@ class VideoDetailController extends GetxController
cid: cid,
enableHeart: enableHeart,
isFirstTime: isFirstTime,
autoplay: autoplay,
);
}