Posts

Post not yet marked as solved
4 Replies
893 Views
Setup: iOS/tvOS app that uses AVPlayer to play encrypted live HLS streams, live HLS playlist has a buffer of ~2 hours in which we can seek. Steps to reproduce: use AVPlayer to start playback of a live hls playlist, use AVContentKeySessionDelegate API to provide license to the player to decrypt the stream. Expected results (how it works on iOS/tvOS 13): playback starts from the “head” of the live playlist (near the end of seekableTimeRanges). Actual results: playback on iOS/tvOS 14 start at the beginning of available buffer (position == start of seekableTimeRanges), this only happens for encrypted streams, for unencrypted ones, playback starts from the “head” of the live playlist. This issue started in iOS 14 beta and still reproduces on the GM. Does anyone know if the new behaviour is expected? This can be "workarounded" by skipping to the end of seekableTimeRange but it works correctly on previous system versions so it looks like a regression.
Posted
by pwszebor.
Last updated
.