mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt ui
opt video keyboard event opt code Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user