| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-10-29 | 1.3 kB | |
| VersaPlayer 4.0.0 source code.tar.gz | 2026-10-29 | 321.4 kB | |
| VersaPlayer 4.0.0 source code.zip | 2026-10-29 | 338.3 kB | |
| Totals: 3 Items | 661.0 kB | 0 | |
4.0 rewrites VersaPlayer for SwiftUI. It's a breaking release: 3.x stays available at tag 3.0.2. See MIGRATION.md (github.com) to upgrade.
:::swift
.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).