【发布时间】:2017-08-07 23:12:26
【问题描述】:
有没有人有使用 HLS 和 Fairplay 并成功检索像素缓冲区的经验?
我正在使用带有resourceLoader 委托集的AVURLAsset。我的 AVAssetResourceLoaderDelegate 负责处理 Fairplay 流程。
它在 AVPlayerLayer 上显示良好,但是,当我尝试使用附加到 AVPlayerItem 的 AVPlayerItemVideoOutput 并在其上使用 copyPixelBufferForItemTime 时,返回的 pixelBuffer 始终为 NULL。
另一方面,当我使用非加密流而不使用 resourceLoader 时,copyPixelBufferForItemTime 按预期返回像素缓冲区。
这是按预期工作吗? (即使用 FairPlay 保护的流不会暴露其像素缓冲区以防止滥用。)
如果没有,有什么方法可以从在 iOS 上使用 FairPlay 保护的流中获取像素缓冲区?
【问题讨论】:
标签: ios http-live-streaming fairplay