Overview of AVPlayer-SwiftUI
masterAVPlayer-SwiftUI is a collection of implementations and patterns for integrating AVPlayer with SwiftUI. It provides two main approaches:
- Custom UI Implementation: A series of patterns (Parts 1-4) for building highly customized video and audio player controls. This is useful if you need a UI that differs significantly from the system default.
- Native SwiftUI VideoPlayer: Leveraging the built-in
VideoPlayerview introduced in iOS 14 for standard, low-effort video playback.
The repository demonstrates how to handle player observation, custom control overlays, and switching between audio and video playback modes.