mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 21:05:52 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user