mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -1034,7 +1034,7 @@ class PlPlayerController {
|
||||
Future<void> setPlaybackSpeed(double speed) async {
|
||||
lastPlaybackSpeed = playbackSpeed;
|
||||
|
||||
if (speed == playbackSpeed) {
|
||||
if (speed == _videoPlayerController?.state.rate) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -596,7 +596,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
),
|
||||
|
||||
/// 播放速度
|
||||
BottomControlType.speed: Container(
|
||||
BottomControlType.speed: Obx(
|
||||
() => Container(
|
||||
height: 30,
|
||||
margin: const EdgeInsets.symmetric(horizontal: 10),
|
||||
alignment: Alignment.center,
|
||||
@@ -625,6 +626,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
semanticsLabel: "${plPlayerController.playbackSpeed}倍速"),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
/// 全屏
|
||||
BottomControlType.fullscreen: SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user