mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user