We advise against rapidly mutating content that is eligible for download retry, as it can lead to a fragile solution. For further information, please refer to our recommendations on the HTTP Live Streaming (HLS) authoring specification for Apple devices.
If this solution is still desired, we suggest exploring the STABLE-RENDITION-ID and STABLE-VARIANT-ID attributes. This approach decouples the variant identity from its CDN location. To facilitate the refresh of the Multi-Variant-Playlist (MVP), you can rely on the HTTP cache-control headers. AVFoundation will attempt to retry expired MVP, but it will default to the cached playlist if a new MVP cannot be retrieved. To achieve the re-download behavior of the MVP, use the HTTP headers Cache-Control: must-revalidate, along with max-age.
Topic:
Media Technologies
SubTopic:
Video
Tags: