有没有人有过使用带有Fairplay的HLS的经验,并成功地检索了像素缓冲区?我正在使用AVURLAsset
及其resourceLoader
代表组。我的AVAssetResourceLoaderDelegate
负责处理Fairplay流程。FairPlay Streaming:在AVPlayerItemVideoOutput上调用copyPixelBufferForItemTime返回NULL
它显示罚款的AVPlayerLayer
,但是,当我尝试使用连接到AVPlayerItem
的AVPlayerItemVideoOutput
并在其上使用copyPixelBufferForItemTime
,该pixelBuffer返回始终是NULL。
另一方面,当我使用非加密流而不使用resourceLoader时,copyPixelBufferForItemTime会按预期返回像素缓冲区。
这是通过按预期工作? (即使用FairPlay保护的数据流不会暴露它们的像素缓冲区以防止误操作)。
如果不是,是否有任何方法从iOS上使用FairPlay保护的流中获取像素缓冲区?