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

@@ -1303,6 +1303,9 @@ class PlPlayerController {
}
bool isComplete = playerStatus.status.value == PlayerStatus.completed ||
type == 'completed';
if ((duration.value - position.value).inMilliseconds > 1000) {
isComplete = false;
}
// 播放状态变化时,更新
if (type == 'status' || type == 'completed') {