Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome 每次打开视频都有弹窗确认,无法取消 #43

Open
Lawrenauh opened this issue Oct 8, 2023 · 8 comments
Open

Chrome 每次打开视频都有弹窗确认,无法取消 #43

Lawrenauh opened this issue Oct 8, 2023 · 8 comments

Comments

@Lawrenauh
Copy link

浏览器每次点用 Potplayer 打开视频,都会有弹出提示(如下图),很奇怪没有始终确认打开的选项:

image

请问这个弹窗如何取消?

@bpking1
Copy link
Owner

bpking1 commented Oct 9, 2023

添加ssl证书最方便,否则需要修改浏览器安全策略,参考链接 https://superuser.com/questions/1481851/disable-chrome-to-ask-for-confirmation-to-open-external-application-everytime

@bpking1
Copy link
Owner

bpking1 commented Oct 9, 2023

image
可以打开chrome://policy/ 查看是否设置成功

@Lawrenauh
Copy link
Author

image 可以打开chrome://policy/ 查看是否设置成功

你这边 http 链接,这么设置成功了吗?弹框消除了,或者有“始终打开”的勾选项?

@bpking1
Copy link
Owner

bpking1 commented Oct 9, 2023

我在linux环境下是可以的,http 链接的弹框消除了,但是单独设置“ExternalProtocolDialogShowAlwaysOpenCheckbox”,似乎没起作用,“始终打开”的勾选项并没有出现

@Lawrenauh
Copy link
Author

Lawrenauh commented Oct 9, 2023

我在linux环境下是可以的,http 链接的弹框消除了,但是单独设置“ExternalProtocolDialogShowAlwaysOpenCheckbox”,似乎没起作用,“始终打开”的勾选项并没有出现

这是我折腾了半天的结果,大部分 Policy 参数都试过了,都不起作用,不知道你这边有效果的是哪个参数?

image

最后无奈之下启用了 “--unsafely-treat-insecure-origin-as-secure” 才彻底消除,但是在 Chrome 上还是有后遗症……

@bpking1
Copy link
Owner

bpking1 commented Oct 9, 2023

我试了一下,我这里是必须开启URLAllowlist 才行,我是Chrome linux Version 119.0.6045.10 (Official Build) dev (64-bit)

@Lawrenauh
Copy link
Author

我试了一下,我这里是必须开启URLAllowlist 才行,我是Chrome linux Version 119.0.6045.10 (Official Build) dev (64-bit)

Policy 设置成和你的一样,还是有弹框,没折了……还是乖乖地开启 “--unsafely-treat-insecure-origin-as-secure” 吧

image

Chrome 已是最新版本 117.0.5938.150(正式版本) (64 位)

@lamesbond
Copy link

lamesbond commented Oct 27, 2024

可以用href方式,不会弹出到另一个标签页,gpt写的测试网页:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Open with PotPlayer</title>
</head>
<body>
    <h2>Click below to open video in PotPlayer</h2>
    <a href="potplayer://eq59.local:8096/emby/videos/8525/stream.mkv?api_key=81f31d203a7142f382e209236649f9fc&Static=true&MediaSourceId=80c7496f17ea4a0285d9e361668c5903" target="_self">Open Video with PotPlayer</a>
</body>
</html>

然后注册表添加自定义协议
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants