Starting with iOS 10 beta 4 I am seeing AVPlayer fail with the following error when a pause is issued to it and it begins to receive the same manifest over multiple time periods. This seems to be occuring after the player receives the same manifest 3-4 times.
I have validated the manifests, there are no changes, and this code works fine on iOS 9 with no errors at all and has been in place for several years in production.
The sequence of events are:
1) Receive an AVAssetResourceLoaderDelegate request for the manifest.
2) Return a current version of the manifest.
3) iOS 9 returns to the first step at a frequency of 1/2 the target duration of the media content, iOS 10 beta 4+ creates the error below after a few tries.
This is a Live playlist which consists of 5 media segments that roll off of the manifest as each new media segment is produced. The manifest version is 4 and a sample manifest is included below.
Any suggestions for why this would start failing as of beat 4 and what areas to search, in light of the fact this works on iOS versions earlier than beta 4 and iOS 10.
2016-08-18 16:30:16.655633 Testing[575:208902] ++++ General Notification Received: __CFNotification 0x170841d40 {name = FailedToPlayToEnd; object = <CMBaseObject: instance<0x1701fdd00> storage<0x1701fdd20> class<0x1a9456830> allocator<0x1ae5efbb8>>{}; userInfo = {
CFError = "Error Domain=CoreMediaErrorDomain Code=-12880 \"Can not proceed after removing variant\" UserInfo={NSDescription=Can not proceed after removing variant}";
Result = "-12880";
}}
#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:1
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:1.019,
http://localhost:49585/f1471551876.ts
#EXTINF:0.989,
http://localhost:49585/f1471551878.ts
#EXTINF:0.964,
http://localhost:49585/f1471551881.ts
#EXTINF:0.972,
http://localhost:49585/f1471551885.ts
#EXTINF:0.979,