Has anybody had experience using HLS with Fairplay and succeeded in retrieving the pixel buffer?
I'm using an AVURLAsset
with its resourceLoader
delegate set. My AVAssetResourceLoaderDelegate
takes care of dealing with the Fairplay process.
It displays fine on an AVPlayerLayer
, however, when I try to use an AVPlayerItemVideoOutput
that is attached to the AVPlayerItem
and use copyPixelBufferForItemTime
on it, the pixelBuffer returned is always NULL.
On the other hand, when I use a non-encrypted stream and not use the resourceLoader copyPixelBufferForItemTime returns a pixelbuffer as expected.
Is this by working as intended? (i.e. Streams that are protected using FairPlay don't expose their pixel buffer to prevent misuse.)
And if not, is there any way to get the pixel buffer from a stream that is protected using FairPlay on iOS?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…