Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-26 23:32:57 +08:00
parent 5d0b2dc8e3
commit c53c3a387c
2 changed files with 30 additions and 28 deletions

View File

@@ -1034,7 +1034,7 @@ class PlPlayerController {
Future<void> setPlaybackSpeed(double speed) async { Future<void> setPlaybackSpeed(double speed) async {
lastPlaybackSpeed = playbackSpeed; lastPlaybackSpeed = playbackSpeed;
if (speed == playbackSpeed) { if (speed == _videoPlayerController?.state.rate) {
return; return;
} }

View File

@@ -596,7 +596,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
), ),
/// 播放速度 /// 播放速度
BottomControlType.speed: Container( BottomControlType.speed: Obx(
() => Container(
height: 30, height: 30,
margin: const EdgeInsets.symmetric(horizontal: 10), margin: const EdgeInsets.symmetric(horizontal: 10),
alignment: Alignment.center, alignment: Alignment.center,
@@ -625,6 +626,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
semanticsLabel: "${plPlayerController.playbackSpeed}倍速"), semanticsLabel: "${plPlayerController.playbackSpeed}倍速"),
), ),
), ),
),
/// 全屏 /// 全屏
BottomControlType.fullscreen: SizedBox( BottomControlType.fullscreen: SizedBox(