How to handle AVPlayer .AVPlayerItemPlaybackStalled Notification
问题 I'm using AVPlayer and sometimes the player randomly pauses. I'm observing \.timeControlStatus but the only response I get .paused . I'm also observing \.isPlaybackLikelyToKeepUp , \.isPlaybackBufferEmpty , and \.isPlaybackBufferFull but nothing fires for those. However using Notification.Name.AVPlayerItemPlaybackStalled I do get a print statement that says "stalled". Even though \.rate fires when the the player pauses, that fires before .AVPlayerItemPlaybackStalled fires, sometimes \