无法在IOS Simulator中播放加密的实时内容

时间:2018-09-26 09:58:10

标签: ios encryption avplayer avplayerviewcontroller

您好,我在应用程序中使用的是AvPlayerViewController,并尝试使用AVPlayer播放m3u8文件(加密的实时内容)。我能够在设备(Iphone&IPad)中正常播放内容,而无法在模拟器中播放,出现无法解码错误。甚至在模拟器中

-(BOOL)resourceLoader:(AVAssetResourceLoader *)resourceLoader shouldWaitForLoadingOfRequestedResource:(AVAssetResourceLoadingRequest *)loadingRequest

方法也不会触发。请让我知道如何解决此问题。

0 个答案:

没有答案