A notification that’s posted when some media doesn’t arrive in time to continue playback.
SDKs
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- AVFoundation
Declaration
static let AVPlayerItemPlaybackStalled: NSNotification.Name
Discussion
The notification’s object is the player item whose playback is unable to continue due to network delays. Streaming-media playback continues once the player receives a sufficient amount of data. File-based playback doesn’t continue.
Important
The system may post this notification on a thread other than the one on which you registered the observer.