opt: heartbeat

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-06 08:49:13 +08:00
parent 0d63d6102f
commit 214239a6f8
2 changed files with 7 additions and 1 deletions

View File

@@ -2022,7 +2022,10 @@ class VideoDetailController extends GetxController
}
void makeHeartBeat() {
if (enableHeart && playedTime != null) {
if (enableHeart &&
plPlayerController.playerStatus.status.value !=
PlayerStatus.completed &&
playedTime != null) {
plPlayerController.makeHeartBeat(
data.timeLength != null
? (data.timeLength! - playedTime!.inMilliseconds).abs() <= 1000