mod: playInit autoplay 逻辑

This commit is contained in:
guozhigq
2024-05-18 19:29:57 +08:00
committed by bggRGjQaUbCoE
parent 0c8ac833a2
commit b289a51990
2 changed files with 4 additions and 4 deletions

View File

@@ -371,7 +371,7 @@ class VideoDetailController extends GetxController
audio,
seekToTime,
duration,
bool autoplay = true,
bool? autoplay,
}) async {
await plPlayerController.setDataSource(
DataSource(
@@ -400,7 +400,7 @@ class VideoDetailController extends GetxController
bvid: bvid,
cid: cid.value,
enableHeart: enableHeart,
autoplay: autoplay,
autoplay: autoplay ?? autoPlay.value,
);
_initSkip();