AVPlayer
AVPlayer is a component of Apple's AVFoundation framework that provides playback of time-based audiovisual media on Apple platforms. It coordinates playback by managing AVPlayerItem instances, which wrap AVAsset resources such as local files or network streams. AVPlayer itself does not render video; developers attach it to a rendering layer or controller, such as AVPlayerLayer or AVPlayerViewController, to display video content.
The player supports a range of resource types, including local files, HTTP progressive streams, and adaptive
Playback is controlled through methods and properties such as play, pause, seek(to:), and the time-based rate
In practical use, AVPlayer is integrated with user interfaces through AVPlayerLayer for custom views or AVPlayerViewController