基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
add native external player dialog for windows
Predidita4f85558c02d
diff --git a/lib/utils/remote.dart b/lib/utils/remote.dartindex afbd5a89..384383f1 100644--- a/lib/utils/remote.dart+++ b/lib/utils/remote.dart@@ -56,7 +56,7 @@ class RemotePlay {return AlertDialog(title: const Text('实验性功能'),content: const Text(- '调用系统当前m3u8默认打开方式进行播放。外部播放器调用在windows上仍处于实验阶段, 存在缺陷。包括但不限于无法调用播放器、无法播放等。此外还需要一定的缓存时间进行播放器初始化。'),+ '调用系统当前m3u8默认打开方式进行播放。外部播放器调用在windows上仍处于实验阶段, 存在缺陷。包括但不限于无法调用播放器、无法播放等。'),actions: [TextButton(onPressed: () => SmartDialog.dismiss(),@@ -72,7 +72,7 @@ class RemotePlay {onPressed: () {SmartDialog.dismiss();SmartDialog.showToast(- '尝试唤起外部播放器, 这可能需要一些时间',+ '尝试唤起外部播放器',displayType:SmartToastType.onlyRefresh);_launchURLWithMIME(video, 'video/mp4')diff --git a/windows/runner/external_player_utils.cpp b/windows/runner/external_player_utils.cppindex 510df60a..ca6eb703 100644--- a/windows/runner/external_player_utils.cpp+++ b/windows/runner/external_player_utils.cpp@@ -43,10 +43,9 @@ void ExternalPlayerUtils::OpenWithPlayer(const char* url) {SHELLEXECUTEINFO execInfo = {0};execInfo.cbSize = sizeof(SHELLEXECUTEINFO);- execInfo.fMask = SEE_MASK_CLASSNAME;- execInfo.lpVerb = L"open";+ execInfo.fMask = SEE_MASK_INVOKEIDLIST;+ execInfo.lpVerb = L"openas";execInfo.lpFile = tempFile;- execInfo.lpClass = L".m3u8";execInfo.nShow = SW_SHOWNORMAL;ShellExecuteEx(&execInfo);