opt video keyboard event

opt code

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-12 18:42:06 +08:00
parent d6bff33d29
commit b6352a6a43
42 changed files with 763 additions and 601 deletions

View File

@@ -208,6 +208,7 @@ class PlPlayerController {
/// 音量控制条
RxDouble get volume => _currentVolume;
Stream<double> get onVolumeChanged => _currentVolume.stream;
late bool isMuted = false;
/// 亮度控制条
RxDouble get brightness => _currentBrightness;
@@ -335,8 +336,8 @@ class PlPlayerController {
late final bool tempPlayerConf = Pref.tempPlayerConf;
int? cacheVideoQa;
late int cacheAudioQa;
late int? cacheVideoQa = Utils.isMobile ? null : Pref.defaultVideoQa;
late int cacheAudioQa = Pref.defaultAudioQa;
bool enableHeart = true;
late final bool enableHA = Pref.enableHA;
@@ -1207,6 +1208,9 @@ class PlPlayerController {
}
Future<void> setVolume(double volume) async {
if (this.volume.value == volume) {
return;
}
this.volume.value = volume;
try {
if (Utils.isDesktop) {