shaka-packager icon indicating copy to clipboard operation
shaka-packager copied to clipboard

Support EXT-X-SESSION-KEY for Offline Playback

Open cgp1081 opened this issue 6 years ago • 8 comments

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 avatar Mar 29 '18 16:03 cgp1081

@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.

vaage avatar Mar 29 '18 17:03 vaage

@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 avatar Mar 29 '18 18:03 kqyang

@kqyang It does appear to work without the tag on initial tests

cgp1081 avatar Mar 29 '18 20:03 cgp1081

@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 avatar Apr 25 '18 23:04 cgp1081

@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.

kqyang avatar Apr 26 '18 17:04 kqyang

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.

sergiofagostinho avatar Jun 09 '21 09:06 sergiofagostinho

@cosmin / @joeyparrish The last update on this was 3 years ago, is there any plan to include this?

avelad avatar Apr 11 '24 07:04 avelad

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!

joeyparrish avatar Apr 15 '24 18:04 joeyparrish