fix: 新增更多判空位置

This commit is contained in:
orz12
2024-02-26 10:14:13 +08:00
parent 11988a4f8e
commit 390046116b
10 changed files with 27 additions and 19 deletions

View File

@@ -638,7 +638,7 @@ class PlPlayerController {
Timer.periodic(const Duration(milliseconds: 200), (Timer t) async {
//_timerForSeek = null;
if (duration.value.inSeconds != 0) {
await _videoPlayerController!.stream.buffer.first;
await _videoPlayerController?.stream.buffer.first;
await _videoPlayerController?.seek(position);
// if (playerStatus.status.value == PlayerStatus.paused) {
// play();