Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-08 19:30:06 +08:00
parent d108373c33
commit 810505ea1d
2 changed files with 12 additions and 10 deletions

View File

@@ -814,15 +814,17 @@ class PlPlayerController {
SmartDialog.showToast('视频源为空,请重新进入本页面');
return false;
}
if (dataSource.audioSource.isNullOrEmpty) {
SmartDialog.showToast('音频源为空');
} else {
await (_videoPlayerController!.platform as NativePlayer).setProperty(
'audio-files',
UniversalPlatform.isWindows
? dataSource.audioSource!.replaceAll(';', '\\;')
: dataSource.audioSource!.replaceAll(':', '\\:'),
);
if (!isLive) {
if (dataSource.audioSource.isNullOrEmpty) {
SmartDialog.showToast('音频源为空');
} else {
await (_videoPlayerController!.platform as NativePlayer).setProperty(
'audio-files',
UniversalPlatform.isWindows
? dataSource.audioSource!.replaceAll(';', '\\;')
: dataSource.audioSource!.replaceAll(':', '\\:'),
);
}
}
await _videoPlayerController!.open(
Media(

View File

@@ -433,7 +433,7 @@ class RequestUtils {
TextButton(
onPressed: () {
if (checkedId != null) {
Iterable removeList = ctr.allChecked;
Set removeList = ctr.allChecked.toSet();
SmartDialog.showLoading();
FavHttp.copyOrMoveFav(
isCopy: isCopy,