AVKit Media Playback
Implements high-level media playback interfaces for iOS apps using AVKit and SwiftUI VideoPlayer.
This skill provides domain-specific guidance for building modern media playback experiences on iOS 26+ using AVKit and Swift 6.3. It streamlines the implementation of system-standard players like AVPlayerViewController and the SwiftUI VideoPlayer view, ensuring full support for advanced Apple features such as Picture-in-Picture (PiP), AirPlay routing, and custom transport controls. By following these patterns, developers can create battery-efficient, accessible, and feature-rich video experiences that integrate seamlessly with system UI and audio session management best practices.
Key Features
01Standard system player implementation using AVPlayerViewController and SwiftUI VideoPlayer
02Picture-in-Picture (PiP) lifecycle management and UI restoration patterns
03732 GitHub stars
04AirPlay integration and external playback routing with AVRoutePickerView
05Custom transport controls and programmable playback speed selection
06Automated subtitle and closed caption handling with programmatic selection
Use Cases
01Configuring background audio and PiP support for multitasking video apps
02Embedding an inline or full-screen video player with system-native controls
03Managing complex playback states including ads, linear segments, and media track selection