opt: video widget

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-27 10:59:12 +08:00
parent 950dd82e3c
commit 00d30313af
3 changed files with 27 additions and 36 deletions

View File

@@ -754,7 +754,7 @@ class PlPlayerController {
play: false,
);
} else {
await player.open(
player.open(
Media(dataSource.videoSource!,
httpHeaders: dataSource.httpHeaders, start: seekTo),
play: false,
@@ -1564,8 +1564,7 @@ class PlPlayerController {
var pp = _videoPlayerController!.platform as NativePlayer;
await pp.setProperty('audio-files', '');
removeListeners();
await _videoPlayerController?.stop();
await _videoPlayerController?.dispose();
await _videoPlayerController!.dispose();
_videoPlayerController = null;
}
_instance = null;