fix: supportFormats codecs match dvh1

This commit is contained in:
guozhigq
2023-08-26 15:23:22 +08:00
parent a0e51c86fc
commit a928c575ef
3 changed files with 34 additions and 21 deletions

View File

@ -387,9 +387,12 @@ class _HeaderControlState extends State<HeaderControl> {
// 当前选中的解码格式
VideoDecodeFormats currentDecodeFormats =
widget.videoDetailCtr!.currentDecodeFormats;
VideoItem firstVideo = widget.videoDetailCtr!.firstVideo;
// 当前视频可用的解码格式
List<FormatItem> videoFormat = videoInfo.supportFormats!;
List list = videoFormat.first.codecs!;
List list = videoFormat
.firstWhere((e) => e.quality == firstVideo.quality!.code)
.codecs!;
showModalBottomSheet(
context: context,