2

Revised Question (based on the now documented AVPlayer bug):

I found a workaround using this code as a base: https://stackoverflow.com/a/25623647/6697755

I found isWWAN flag can be used to check network type

var flags: SCNetworkReachabilityFlags = []
let isCellular = flags.contains(.isWWAN)

It seems to be a pretty reliable check. So I can now derive a network type change and reboot the player.

...only took me about 80 hours to find this workaround ;|

versionz
  • 29
  • 2
  • 6

2 Answers2

1

I ran into the same problem when I updated to iOS 11. I filed a bug at Apple's Bug Reporter and Open Radar - rdar://35270862

1

I've edited my question with a workaround to resume playback after leaving or entering wifi.

If anyone has any info on how to fix this or exactly why this issue occurred in iOS11 please let us know.

versionz
  • 29
  • 2
  • 6