opt: 控制条与常驻进度条互斥

This commit is contained in:
orz12
2024-01-05 13:56:10 +08:00
parent e79cd2df25
commit aa94bf27ff

View File

@ -602,6 +602,9 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
final int value = _.sliderPositionSeconds.value; final int value = _.sliderPositionSeconds.value;
final int max = _.durationSeconds.value; final int max = _.durationSeconds.value;
final int buffer = _.bufferedSeconds.value; final int buffer = _.bufferedSeconds.value;
if (_.showControls.value) {
return Container();
}
if (defaultBtmProgressBehavior == if (defaultBtmProgressBehavior ==
BtmProgresBehavior.alwaysHide.code) { BtmProgresBehavior.alwaysHide.code) {
return Container(); return Container();