opt audio session

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-09 13:17:18 +08:00
parent 658f493f9c
commit c72ce78039
2 changed files with 34 additions and 70 deletions

View File

@@ -399,11 +399,6 @@ class PlPlayerController with BlockConfigMixin {
return _playCallBack?.call();
}
// try to get PlayerStatus
static PlayerStatus? getPlayerStatusIfExists() {
return _instance?.playerStatus.value;
}
static Future<void> pauseIfExists({
bool notify = true,
bool isInterrupt = false,
@@ -420,17 +415,6 @@ class PlPlayerController with BlockConfigMixin {
await _instance?.seekTo(position, isSeek: isSeek);
}
static double? getVolumeIfExists() {
return _instance?.volume.value;
}
static Future<void>? setVolumeIfExists(
double volumeNew, {
bool showIndicator = true,
}) {
return _instance?.setVolume(volumeNew, showIndicator: showIndicator);
}
Box video = GStorage.video;
bool visible = true;