簡體   English   中英

iOS 16 公平播放更改

[英]iOS 16 FairPlay Changes

FairPlay 邏輯有什么變化嗎? 我的應用程序具有受 FairPlay 保護的視頻和音頻,它們在 iOS 15.7 之前都可以正常工作,但在 iOS 16 之前

makeStreamingContentKeyRequestData is throwing me following error :

Error Domain=CoreMediaErrorDomain Code=-19152 "(null)"
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed"
UserInfo={NSLocalizedFailureReason=An unknown error occurred (-19156), NSLocalizedDescription=The operation could not be completed, 
NSUnderlyingError=0x280deac10 {Error Domain=NSOSStatusErrorDomain Code=-19156 "(null)"}}

這可能是什么原因和解決方案?

提前致謝

根據文檔,Function streamingContentKeyRequestDataForAppiOS 15上已棄用。 使用新makeStreamingContentKeyRequestData 文檔中指定的 function makeStreamingContentKeyRequestData。 這是一個示例用法:

func makeStreamingContentKeyRequestData(
    forApp appIdentifier: Data,
    contentIdentifier: Data?,
    options: [String : Any]? = nil,
    completionHandler handler: @escaping (Data?, Error?) -> Void
)

我已經解決了這個問題,問題出在 m3u8 文件中的 EXT 標簽,它在某種程度上適用於 iOS 15 及以下版本,但不適用於 iOS 16

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM