mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
chore: code clean up
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:PiliPalaX/models/video/play/CDN.dart';
|
||||
import 'package:PiliPalaX/models/video/play/url.dart';
|
||||
import 'package:PiliPalaX/utils/storage.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../models/live/room_info.dart';
|
||||
|
||||
@@ -42,10 +43,10 @@ class VideoUtils {
|
||||
if (videoUrl == null) {
|
||||
return "";
|
||||
}
|
||||
print("videoUrl:$videoUrl");
|
||||
debugPrint("videoUrl:$videoUrl");
|
||||
|
||||
String defaultCDNHost = CDNServiceCode.fromCode(defaultCDNService)!.host;
|
||||
print("defaultCDNHost:$defaultCDNHost");
|
||||
debugPrint("defaultCDNHost:$defaultCDNHost");
|
||||
if (videoUrl.contains("szbdyd.com")) {
|
||||
String hostname =
|
||||
Uri.parse(videoUrl).queryParameters['xy_usource'] ?? defaultCDNHost;
|
||||
@@ -62,7 +63,7 @@ class VideoUtils {
|
||||
.replace(host: defaultCDNHost, port: 443)
|
||||
.toString();
|
||||
}
|
||||
print("videoUrl:$videoUrl");
|
||||
debugPrint("videoUrl:$videoUrl");
|
||||
|
||||
// /// 先获取backupUrl 一般是upgcxcode地址 播放更稳定
|
||||
// if (item is VideoItem) {
|
||||
|
||||
Reference in New Issue
Block a user