chore: code clean up

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-10 09:49:06 +08:00
parent 03d405e197
commit 59910e275e
133 changed files with 597 additions and 816 deletions

View File

@@ -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) {