• 请不要在回答技术问题时复制粘贴 AI 生成的内容
horou
V2EX  ›  程序员

关于 Airplay Server 救救孩子

  •  
  •   horou · Jun 19, 2023 · 2316 views
    This topic created in 1069 days ago, the information mentioned may be changed or developed.

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

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

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

    7 replies    2024-01-26 11:26:20 +08:00
    qzwlecr
        1
    qzwlecr  
       Jun 19, 2023
    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
       Jun 19, 2023
    @qzwlecr 这个文档没有说明服务端返回的 epk 和 authTag 是如何生成的,我看到有很多 client 端的库,但是没有服务端的,而且所有的第三方 client 的库拿到服务端返回回来的 epk 和 authTag 都没有做进一步的校验,但是 iphone 手机本身是做了校验的,现在就差这一步,愁死我了。
    wuhualu
        3
    wuhualu  
       Dec 25, 2023
    @horou 请问你解决了吗?我也是被卡在最后一步 epk 和 authTag 的计算上了,尝试响应了多种 epk 和 authTag 的计算结果,都被 iPhone 拒绝了。
    momo1999
        4
    momo1999  
       Jan 23, 2024   ❤️ 1
    horou
        5
    horou  
    OP
       Jan 24, 2024
    @shuax 非常感谢!!参照这个项目已经解决了!
    horou
        6
    horou  
    OP
       Jan 24, 2024
    @wuhualu 4 楼的项目里面有流程
    wuhualu
        7
    wuhualu  
       Jan 26, 2024
    @horou
    @shuax
    非常感谢! pair-pin 部分已经解决!另外想请问下,pair-verify 部分的响应有要特殊处理吗,按照协议的逻辑处理还是会被拒绝连接。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   886 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 22:08 · PVG 06:08 · LAX 15:08 · JFK 18:08
    ♥ Do have faith in what you're doing.