V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
brucmao
V2EX  ›  问与答

怎么注册 potplayer:// 协议,浏览器点击就调用 potplayer 播放

  •  1
     
  •   brucmao · 2023-01-26 20:26:30 +08:00 · 1689 次点击
    这是一个创建于 448 天前的主题,其中的信息可能已经有所发展或是发生改变。

    alist 网页播放发现音画不同步的情况,想调用 potplayer 播放

    我看该页面支持用 potplayer 播放,我 scoop 安装了 potplayer

    怎么点击 potplayer:// 这样的链接时调用本地 potplayer 播放呢

    第 1 条附言  ·  2023-01-27 10:36:19 +08:00

    参考了此文章

    https://blog.zytllt.cn/242

    最终配置如下

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\PotPlayer]
    "URL Protocol"="C:\\Users\\brucm\\scoop\\apps\\potplayer\\current\\PotPlayerMini64.exe"
    @="PotPlayer Protocol"
    
    [HKEY_CLASSES_ROOT\PotPlayer\DefaultIcon]
    @="C:\\Users\\brucm\\scoop\\apps\\potplayer\\current\\PotPlayerMini64.exe,1"
    
    [HKEY_CLASSES_ROOT\PotPlayer\shell]  
    
    [HKEY_CLASSES_ROOT\PotPlayer\shell\open]
    
    [HKEY_CLASSES_ROOT\PotPlayer\shell\open\command]  
    @="\"C:\\Users\\brucm\\scoop\\apps\\potplayer\\current\\PotPlayerMini64.exe\" \"%1\""
    
    3 条回复    2023-01-26 21:10:07 +08:00
    Peek
        1
    Peek  
       2023-01-26 20:46:03 +08:00
    好神奇,还以为 chrome 不支持调用外部播放器,要单独写插件,原来直接加 potplayer://这个就能播放

    PC 端 chrome 试了下,点击能就调用
    ashong
        2
    ashong  
       2023-01-26 21:02:37 +08:00   ❤️ 2
    windows 可以修改注册表

    HKEY_CLASSES_ROOT
    potplayer
    (Default) = "描述"
    URL Protocol = ""
    DefaultIcon
    (Default) = "potplayer.exe,1"
    shell
    open
    command
    (Default) = "[路径]\potplayer.exe" "%1"
    xiaozecn
        3
    xiaozecn  
       2023-01-26 21:10:07 +08:00 via Android   ❤️ 1
    不是可以直接将 alist 添加到 potplayer 的播放列表里么,我就是这么做的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5687 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:25 · PVG 10:25 · LAX 19:25 · JFK 22:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.