mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-01 08:20:14 +08:00
audio sschedule shutdown
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -79,11 +79,13 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
||||
}
|
||||
|
||||
// 播放器状态监听
|
||||
void playerListener(PlayerStatus? status) {
|
||||
if (status == PlayerStatus.playing) {
|
||||
_controller?.resume();
|
||||
} else {
|
||||
_controller?.pause();
|
||||
void playerListener(PlayerStatus status) {
|
||||
if (_controller case final controller?) {
|
||||
if (status.isPlaying) {
|
||||
controller.resume();
|
||||
} else {
|
||||
controller.pause();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +99,7 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!playerController.playerStatus.playing) {
|
||||
if (!playerController.playerStatus.isPlaying) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user