倍速播放按钮设置true也不显示
来源:7-5 播放器源码分析与自定义播放器UI

慕盖茨2162008
2021-11-03
_chewieController = ChewieController(
videoPlayerController: _videoPlayerController,
aspectRatio: widget.aspectRatio,
autoPlay: widget.autoPlay,
looping: widget.looping,
allowMuting: false, //静音播放
allowPlaybackSpeedChanging: true, //播放速度
placeholder: _placeholder,
customControls: MaterialControls(
showLoadingOnInitialize: false,
showBigPlayIcon: false,
),
materialProgressColors: _progressColors,
);
hi_videos_controls文件使用的是课程提供的支持空安全版本
没有播放速度按钮 这该怎么办啊
写回答
2回答
-
Cloud_Iris
2022-07-28
望采纳。
你可能是直接复制的老师提供的源码,事实上,在按照老师提供的方法得到chewie官方的 `MaterialControls.dart` 以后,搜一下
PlaybackSpeed
这个关键词,对比一下老师提供的,就会发现我们实际上是去掉了所有倍速相关的部分,因为可能会影响到下一节的沉浸式视频播放。主要是这个组件是被默认安排在右上角的,你要是需要的话可以找到相关部分自己定义一下。
00 -
CrazyCodeBoy
2021-11-04
我记得hi_videos_controls屏蔽了倍速按钮,你用chewie的control试试
022021-11-05
相似问题