V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
brucmao
V2EX  ›  问与答

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

  •  1
     
  •   brucmao · Jan 26, 2023 · 2671 views
    This topic created in 1189 days ago, the information mentioned may be changed or developed.

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

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

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

    Supplement 1  ·  Jan 27, 2023

    参考了此文章

    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 replies    2023-01-26 21:10:07 +08:00
    Peek
        1
    Peek  
       Jan 26, 2023
    好神奇,还以为 chrome 不支持调用外部播放器,要单独写插件,原来直接加 potplayer://这个就能播放

    PC 端 chrome 试了下,点击能就调用
    ashong
        2
    ashong  
       Jan 26, 2023   ❤️ 2
    windows 可以修改注册表

    HKEY_CLASSES_ROOT
    potplayer
    (Default) = "描述"
    URL Protocol = ""
    DefaultIcon
    (Default) = "potplayer.exe,1"
    shell
    open
    command
    (Default) = "[路径]\potplayer.exe" "%1"
    MacTavish123
        3
    MacTavish123  
       Jan 26, 2023 via Android   ❤️ 1
    不是可以直接将 alist 添加到 potplayer 的播放列表里么,我就是这么做的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1407 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 00:00 · PVG 08:00 · LAX 17:00 · JFK 20:00
    ♥ Do have faith in what you're doing.