Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-17 13:18:23 +08:00
parent d83076cb07
commit 15fe7787ba
2 changed files with 11 additions and 13 deletions

View File

@@ -1254,14 +1254,12 @@ class PlPlayerController {
/// 暂停播放 /// 暂停播放
Future<void> pause({bool notify = true, bool isInterrupt = false}) async { Future<void> pause({bool notify = true, bool isInterrupt = false}) async {
if (videoPlayerController?.state.playing ?? false) { await _videoPlayerController?.pause();
_videoPlayerController!.playOrPause(); playerStatus.status.value = PlayerStatus.paused;
playerStatus.status.value = PlayerStatus.paused;
// 主动暂停时让出音频焦点 // 主动暂停时让出音频焦点
if (!isInterrupt) { if (!isInterrupt) {
audioSessionHandler?.setActive(false); audioSessionHandler?.setActive(false);
}
} }
} }

View File

@@ -1097,7 +1097,7 @@ packages:
description: description:
path: media_kit path: media_kit
ref: "version_1.2.5" ref: "version_1.2.5"
resolved-ref: ebc4b1a4a3ec3170898e2a502e17c0a25289eb53 resolved-ref: bc999bf181ddf12d60891f76e41359e4177b93a7
url: "https://github.com/bggRGjQaUbCoE/media-kit.git" url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
source: git source: git
version: "1.1.11" version: "1.1.11"
@@ -1106,7 +1106,7 @@ packages:
description: description:
path: "libs/android/media_kit_libs_android_video" path: "libs/android/media_kit_libs_android_video"
ref: "version_1.2.5" ref: "version_1.2.5"
resolved-ref: ebc4b1a4a3ec3170898e2a502e17c0a25289eb53 resolved-ref: bc999bf181ddf12d60891f76e41359e4177b93a7
url: "https://github.com/bggRGjQaUbCoE/media-kit.git" url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
source: git source: git
version: "1.3.7" version: "1.3.7"
@@ -1139,7 +1139,7 @@ packages:
description: description:
path: "libs/universal/media_kit_libs_video" path: "libs/universal/media_kit_libs_video"
ref: "version_1.2.5" ref: "version_1.2.5"
resolved-ref: ebc4b1a4a3ec3170898e2a502e17c0a25289eb53 resolved-ref: bc999bf181ddf12d60891f76e41359e4177b93a7
url: "https://github.com/bggRGjQaUbCoE/media-kit.git" url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
source: git source: git
version: "1.0.5" version: "1.0.5"
@@ -1148,7 +1148,7 @@ packages:
description: description:
path: "libs/windows/media_kit_libs_windows_video" path: "libs/windows/media_kit_libs_windows_video"
ref: "version_1.2.5" ref: "version_1.2.5"
resolved-ref: ebc4b1a4a3ec3170898e2a502e17c0a25289eb53 resolved-ref: bc999bf181ddf12d60891f76e41359e4177b93a7
url: "https://github.com/bggRGjQaUbCoE/media-kit.git" url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
source: git source: git
version: "1.0.10" version: "1.0.10"
@@ -1157,7 +1157,7 @@ packages:
description: description:
path: media_kit_native_event_loop path: media_kit_native_event_loop
ref: "version_1.2.5" ref: "version_1.2.5"
resolved-ref: ebc4b1a4a3ec3170898e2a502e17c0a25289eb53 resolved-ref: bc999bf181ddf12d60891f76e41359e4177b93a7
url: "https://github.com/bggRGjQaUbCoE/media-kit.git" url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
source: git source: git
version: "1.0.9" version: "1.0.9"
@@ -1166,7 +1166,7 @@ packages:
description: description:
path: media_kit_video path: media_kit_video
ref: "version_1.2.5" ref: "version_1.2.5"
resolved-ref: ebc4b1a4a3ec3170898e2a502e17c0a25289eb53 resolved-ref: bc999bf181ddf12d60891f76e41359e4177b93a7
url: "https://github.com/bggRGjQaUbCoE/media-kit.git" url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
source: git source: git
version: "1.2.5" version: "1.2.5"