shaka-packager
shaka-packager copied to clipboard
Support EXT-X-SESSION-KEY for Offline Playback
EXT-X-SESSION-KEY is required in the master HLS manifest to declare keys eligible for offline playback.
Per Apple Offline FPS Playback doc: Use of SESSION-KEY Playback of Offline HLS assets shall use EXT-X-SESSION-KEY to declare all eligible content keys in the master playlist. In addition, the client shall opt into AVAssetResourceLoader property preloadsEligibleContentKeys. This will enable AVURLAsset to eagerly preload all the content keys. The client must ensure that all the keys have been loaded before starting a background download task on the AVURLAsset.
https://help.adobe.com/en_US/primetime/drm/multi-drm-workflows/OfflineHLSGuide_withFPS.pdf
@cgp1081 Thank you for filing this request. I have marked it as an "enhancement" as it will be adding new functionality to the packager. For now it has been put in our backlog until @kqyang schedules a more accurate milestone.
@cgp1081 As far as I know, although Apple document says that it is required for offline playback, but it actually works fine without it. Can you confirm?
@kqyang It does appear to work without the tag on initial tests
@kqyang Does appear to work in these tests but there is concern about issues coming up down the road... are there plans to fix this?
@cgp1081 We do not have plan to work on this in the near term as we are not aware of any issues. We will be glad to increase the priority of this feature if it turns out to be actually required.
EXT-X-SESSION-KEY is used for key pre-loading, something particularly relevant in multi-key scenarios. As such I think this issue should be renamed to reflect that.
@cosmin / @joeyparrish The last update on this was 3 years ago, is there any plan to include this?
I am helping to manage the community a bit on a volunteer basis, but leaving project direction mostly to @cosmin. There is no official Packager team at Google these days, and I don't know if this is a priority for @cosmin on his company's time. PRs are always welcome!