fix: 未开启自动播放时历史记录00:00

This commit is contained in:
guozhigq
2023-09-17 22:41:04 +08:00
parent dd97636494
commit 7db9d290f5
2 changed files with 9 additions and 5 deletions

View File

@ -449,7 +449,9 @@ class PlPlayerController {
for (var element in _statusListeners) {
element(event ? PlayerStatus.playing : PlayerStatus.paused);
}
makeHeartBeat(_position.value.inSeconds, type: 'status');
if (videoPlayerController!.state.position.inSeconds != 0) {
makeHeartBeat(_position.value.inSeconds, type: 'status');
}
}),
videoPlayerController!.stream.completed.listen((event) {
if (event) {