mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
pause
Closes #1559 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1252,7 +1252,8 @@ class PlPlayerController {
|
|||||||
|
|
||||||
/// 暂停播放
|
/// 暂停播放
|
||||||
Future<void> pause({bool notify = true, bool isInterrupt = false}) async {
|
Future<void> pause({bool notify = true, bool isInterrupt = false}) async {
|
||||||
await _videoPlayerController?.pause();
|
if (videoPlayerController?.state.playing ?? false) {
|
||||||
|
_videoPlayerController!.playOrPause();
|
||||||
playerStatus.status.value = PlayerStatus.paused;
|
playerStatus.status.value = PlayerStatus.paused;
|
||||||
|
|
||||||
// 主动暂停时让出音频焦点
|
// 主动暂停时让出音频焦点
|
||||||
@@ -1260,6 +1261,7 @@ class PlPlayerController {
|
|||||||
audioSessionHandler?.setActive(false);
|
audioSessionHandler?.setActive(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool tripling = false;
|
bool tripling = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user