ios - 设置 HLS 缓存策略

标签 ios http-live-streaming

一旦 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

来源:Working with HTTP Live Streaming

关于ios - 设置 HLS 缓存策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45540853/

相关文章:

ios - Swift 进度条completedUnitCount 和totalUnitCount

ios - swift 。接收远程控制事件以与 MPNowPLayingInfoCenter 配合使用

ios - 我无法访问 tabbarcontroller 下的 View Controller

ios - iOS 中的 CleverTap 通知设置

video - 如何将 ffmpeg 生成的所有 ts 文件包含在 m3u8 播放列表中?

android - Android 2.2 HTTP progressive streaming = HTTP Live Streaming?

ios - *** 由于未捕获的异常 'NSInvalidArgumentException' 终止应用程序,

iphone - AVPlayer Streaming - 在特定时间播放流

android - 适用于 Android 和 IOS 的 FFMPEG HLS 流

ios - 如何在 iOS 中播放 .m3u8 或 .ts 文件?