Repository navigation
4.0 rewrites VersaPlayer for SwiftUI. It's a breaking release: 3.x stays available at tag 3.0.2. See MIGRATION.md to upgrade.
.package(url: "https://github.com/josejuanqm/VersaPlayer.git", from: "4.0.0")What's new
- Requirements: iOS/tvOS 17, macOS 14, visionOS 1. Swift 6 with strict concurrency. Swift Package Manager only; CocoaPods is no longer supported.
VersaPlayerCore: an@ObservableVersaPlayerModelwrappingAVPlayer. It covers playback state, anAsyncStreamof events, error mapping, audio/subtitle tracks, caption styling, quality caps, FairPlay throughAVContentKeySession, Picture in Picture, plugins, and a built-inNowPlayingPluginfor the lock screen and remote commands.VersaPlayer(SwiftUI):VersaVideoPlayerwith default controls that hide on their own, plus building blocks for custom controls (PlayPauseButton,Scrubber,TrackPicker,PiPButton,AirPlayButton, …).VersaPlayerViewControllerwraps it for UIKit and AppKit apps.- tvOS: Siri Remote support: the seek bar scrubs, and the track and Picture in Picture menus can take focus.
- Demo: one XcodeGen app for all four platforms (
Examples/VersaPlayerDemo).