audio sschedule shutdown

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-08 15:19:23 +08:00
parent 8234b7ac92
commit 0c65605ac0
23 changed files with 466 additions and 593 deletions

View File

@@ -104,7 +104,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
..danmakuController = _liveRoomController.danmakuController;
PlPlayerController.setPlayCallBack(plPlayerController.play);
_liveRoomController.startLiveTimer();
if (plPlayerController.playerStatus.playing &&
if (plPlayerController.playerStatus.isPlaying &&
plPlayerController.cid == null) {
_liveRoomController
..danmakuController?.resume()
@@ -132,12 +132,12 @@ class _LiveRoomPageState extends State<LiveRoomPage>
..danmakuController?.pause()
..cancelLiveTimer()
..closeLiveMsg()
..isPlaying = plPlayerController.playerStatus.playing;
..isPlaying = plPlayerController.playerStatus.isPlaying;
super.didPushNext();
}
void playerListener(PlayerStatus? status) {
if (status == PlayerStatus.playing) {
void playerListener(PlayerStatus status) {
if (status.isPlaying) {
_liveRoomController
..danmakuController?.resume()
..startLiveTimer()