mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-24 12:30:12 +08:00
opt: edl file (#2455)
This commit is contained in:
committed by
GitHub
parent
3a5636ecee
commit
dae8df840a
@@ -572,7 +572,17 @@ class HeaderControlState extends State<HeaderControl>
|
||||
onTap: () {
|
||||
plPlayerController.onlyPlayAudio.value =
|
||||
!onlyPlayAudio;
|
||||
widget.videoDetailCtr.playerInit();
|
||||
final player =
|
||||
plPlayerController.videoPlayerController!;
|
||||
if (onlyPlayAudio &&
|
||||
player.state.tracks.video.length <= 2) {
|
||||
videoDetailCtr.playerInit();
|
||||
} else {
|
||||
player.setProperty(
|
||||
'file-local-options/vid',
|
||||
onlyPlayAudio ? 'auto' : 'no',
|
||||
);
|
||||
}
|
||||
},
|
||||
text: " 听视频 ",
|
||||
selectStatus: onlyPlayAudio,
|
||||
|
||||
Reference in New Issue
Block a user