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('视频源为空,请重新进入本页面'); SmartDialog.showToast('视频源为空,请重新进入本页面');
return false; return false;
} }
if (dataSource.audioSource.isNullOrEmpty) { if (!isLive) {
SmartDialog.showToast('音频源为空'); if (dataSource.audioSource.isNullOrEmpty) {
} else { SmartDialog.showToast('音频源为空');
await (_videoPlayerController!.platform as NativePlayer).setProperty( } else {
'audio-files', await (_videoPlayerController!.platform as NativePlayer).setProperty(
UniversalPlatform.isWindows 'audio-files',
? dataSource.audioSource!.replaceAll(';', '\\;') UniversalPlatform.isWindows
: dataSource.audioSource!.replaceAll(':', '\\:'), ? dataSource.audioSource!.replaceAll(';', '\\;')
); : dataSource.audioSource!.replaceAll(':', '\\:'),
);
}
} }
await _videoPlayerController!.open( await _videoPlayerController!.open(
Media( Media(

View File

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