Skip to content

VersaPlayer 4.0.0

Latest

Choose a tag to compare

@josejuanqm josejuanqm released this 29 Oct 05:42
972652e

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 @Observable VersaPlayerModel wrapping AVPlayer. It covers playback state, an AsyncStream of events, error mapping, audio/subtitle tracks, caption styling, quality caps, FairPlay through AVContentKeySession, Picture in Picture, plugins, and a built-in NowPlayingPlugin for the lock screen and remote commands.
  • VersaPlayer (SwiftUI): VersaVideoPlayer with default controls that hide on their own, plus building blocks for custom controls (PlayPauseButton, Scrubber, TrackPicker, PiPButton, AirPlayButton, …). VersaPlayerViewController wraps 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).