一旦 EXT-X-ALLOW-CACHE
被弃用并从协议(protocol)中删除 specification是否有其他方法来设置流的缓存策略? (我的目标是在客户端启用缓存)
此外,我想在使用 mediastreamvalidator
验证流时消除错误:
MUST fix issues
--------------------------------------------------------------
Error: #EXT-X-ALLOW-CACHE has been deprecated
--> Detail: Line: #EXT-X-ALLOW-CACHE:NO
最佳答案
您可以在 iOS 10+ 上使用 AVFoundation
:
Playing Offline HLS Content
Starting with iOS 10, you can use AVFoundation to download HTTP Live Streaming assets to an iOS device. This new capability allows users to download and store HLS movies on their devices while they have access to a fast, reliable network, and watch them later without a network connection. With the introduction of this capability, HLS becomes even more versatile by minimizing the impact of inconsistent network availability on the user experience
关于ios - 设置 HLS 缓存策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45540853/