mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-25 10:38:40 +00:00
audio sschedule shutdown
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -36,9 +36,9 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
|
||||
static final List<MediaItem> _item = [];
|
||||
bool enableBackgroundPlay = Pref.enableBackgroundPlay;
|
||||
|
||||
Future<void> Function()? onPlay;
|
||||
Future<void> Function()? onPause;
|
||||
Future<void> Function(Duration position)? onSeek;
|
||||
Future<void>? Function()? onPlay;
|
||||
Future<void>? Function()? onPause;
|
||||
Future<void>? Function(Duration position)? onSeek;
|
||||
|
||||
@override
|
||||
Future<void> play() {
|
||||
@@ -89,8 +89,7 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
|
||||
}
|
||||
|
||||
final AudioProcessingState processingState;
|
||||
final playing = status == PlayerStatus.playing;
|
||||
if (status == PlayerStatus.completed) {
|
||||
if (status.isCompleted) {
|
||||
processingState = AudioProcessingState.completed;
|
||||
} else if (isBuffering) {
|
||||
processingState = AudioProcessingState.buffering;
|
||||
@@ -98,6 +97,7 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
|
||||
processingState = AudioProcessingState.ready;
|
||||
}
|
||||
|
||||
final playing = status.isPlaying;
|
||||
playbackState.add(
|
||||
playbackState.value.copyWith(
|
||||
processingState: isBuffering
|
||||
|
||||
Reference in New Issue
Block a user