mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-15 22:56:15 +08:00
fix: restore video brightness
This commit is contained in:
@@ -335,7 +335,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
videoDetailController.autoPlay.value =
|
||||
!videoDetailController.isShowCover.value;
|
||||
await videoDetailController.playerInit(autoplay: autoplay);
|
||||
if (mounted && videoDetailController.brightness != null) {
|
||||
if (mounted &&
|
||||
videoDetailController.brightness != null &&
|
||||
videoDetailController.brightness != -1.0) {
|
||||
ScreenBrightness().setScreenBrightness(videoDetailController.brightness!);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class PlPlayerController {
|
||||
final Rx<double> _playbackSpeed = 1.0.obs;
|
||||
final Rx<double> _longPressSpeed = 2.0.obs;
|
||||
final Rx<double> _currentVolume = 1.0.obs;
|
||||
final Rx<double> _currentBrightness = 0.0.obs;
|
||||
final Rx<double> _currentBrightness = (-1.0).obs;
|
||||
|
||||
final Rx<bool> _mute = false.obs;
|
||||
final Rx<bool> _showControls = false.obs;
|
||||
|
||||
Reference in New Issue
Block a user