V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
horou
V2EX  ›  程序员

关于 Airplay Server 救救孩子

  •  
  •   horou · 313 天前 · 1250 次点击
    这是一个创建于 313 天前的主题,其中的信息可能已经有所发展或是发生改变。

    airplay tv 端的 /pair-setup-pin PIN 码认证的最后一步,

    手机端 传过来 epk 和 authTag, 接下来我该怎么做,给手机端返回什么数据。

    网上搜到的都是客户端的逻辑,没有 tv 端的。有没有 v 友知道的

    7 条回复    2024-01-26 11:26:20 +08:00
    qzwlecr
        1
    qzwlecr  
       313 天前
    https://htmlpreview.github.io/?https://github.com/philippe44/RAOP-Player/blob/master/doc/auth_protocol.html

    If the message is correct, the AppleTV should responds with a HTTP 200 and a plist which means that the auth_secret <a> is now registered in the AppleTV as a valid secret. These parameters do not seem to be used later in the protocol

    这个字段貌似没有使用,是不是校验下直接返回就行了

    (ps: 我也不确定,不过网上有不少库,为啥要手动实现个 airplay server )
    horou
        2
    horou  
    OP
       313 天前
    @qzwlecr 这个文档没有说明服务端返回的 epk 和 authTag 是如何生成的,我看到有很多 client 端的库,但是没有服务端的,而且所有的第三方 client 的库拿到服务端返回回来的 epk 和 authTag 都没有做进一步的校验,但是 iphone 手机本身是做了校验的,现在就差这一步,愁死我了。
    wuhualu
        3
    wuhualu  
       124 天前
    @horou 请问你解决了吗?我也是被卡在最后一步 epk 和 authTag 的计算上了,尝试响应了多种 epk 和 authTag 的计算结果,都被 iPhone 拒绝了。
    shuax
        4
    shuax  
       95 天前   ❤️ 1
    horou
        5
    horou  
    OP
       94 天前
    @shuax 非常感谢!!参照这个项目已经解决了!
    horou
        6
    horou  
    OP
       94 天前
    @wuhualu 4 楼的项目里面有流程
    wuhualu
        7
    wuhualu  
       92 天前
    @horou
    @shuax
    非常感谢! pair-pin 部分已经解决!另外想请问下,pair-verify 部分的响应有要特殊处理吗,按照协议的逻辑处理还是会被拒绝连接。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   917 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:50 · PVG 03:50 · LAX 12:50 · JFK 15:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.