fix preferred cdn & Add more PCDN url patterns (#1739)

* Fix preferred cdn not used after changing quality

* Add more PCDN url patterns
This commit is contained in:
iKirby
2025-11-14 09:21:51 +08:00
committed by GitHub
parent 50a035a479
commit ad45e995e2
2 changed files with 7 additions and 3 deletions

View File

@@ -1126,7 +1126,7 @@ class VideoDetailController extends GetxController
currentDecodeFormats = VideoDecodeFormatType.fromString(video.codecs!);
}
firstVideo = video;
videoUrl = video.baseUrl!;
videoUrl = VideoUtils.getCdnUrl(firstVideo);
/// 根据currentAudioQa 重新设置audioUrl
if (currentAudioQa != null) {
@@ -1134,7 +1134,7 @@ class VideoDetailController extends GetxController
(i) => i.id == currentAudioQa!.code,
orElse: () => data.dash!.audio!.first,
);
audioUrl = firstAudio.baseUrl ?? '';
audioUrl = VideoUtils.getCdnUrl(firstAudio);
}
playerInit();