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

关于 Airplay Server 救救孩子

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