Loss of network connection causing Stall instead of Fail

I am playing a network stream with AVPlayer. In the past, when the network connection was lost, usually due to going outside of wifi range, I would see the audioNotification AVPlayerItemFailedToPlayToEndTimeNotification with an error domain of Code=-1005 "The network connection was lost."


Now I am seeing a notification of AVPlayerItemPlaybackStalledNotification with no other indications. In particular TimeControlStatus, which I am observing, does not change.


This seems like a bug. Especially since the system does not fail or recover on its own even after an extended period of time.


Has anyone else noticed this?

Replies

Hey, thanks for reporting this. Yes, we've experienced a similar issue, where AVPlayer doesn't seem to handle the same way as before switching networks. We never get an error or a timeout, and instead it gets stuck in stalled mode.

I am seeing the same issue. Any resolution?


Thanks,

Michael