Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-10 20:18:38 +08:00
parent 4eb6f78a38
commit 37bd849a86

View File

@@ -939,19 +939,24 @@ class PlPlayerController {
} }
}); });
}); });
return;
} else if (event.startsWith('Could not open codec')) { } else if (event.startsWith('Could not open codec')) {
SmartDialog.showToast('无法加载解码器, $event,可能会切换至软解'); SmartDialog.showToast('无法加载解码器, $event,可能会切换至软解');
return;
} else { } else {
if (onlyPlayAudio.value.not) { if (onlyPlayAudio.value.not) {
if (event.startsWith("Failed to open .") || if (event.startsWith("Failed to open .") ||
event.startsWith("Cannot open file ''")) { event.startsWith("Cannot open") ||
SmartDialog.showToast('视频源为空'); event.startsWith("Can not open")) {
} else { List list = [
SmartDialog.showToast('视频加载错误, $event'); if (dataSource.videoSource.isNullOrEmpty) '视频',
debugPrint('视频加载错误, $event'); if (dataSource.audioSource.isNullOrEmpty) '音频',
];
if (list.isNotEmpty) {
SmartDialog.showToast('${list.join('')}源为空');
return;
}
} }
SmartDialog.showToast('视频加载错误, $event');
debugPrint('视频加载错误, $event');
} }
} }
}), }),