Skip to content

SwiftUI video player

Latest
Compare
Choose a tag to compare
@swiftuiux swiftuiux released this 12 Feb 11:31
· 10 commits to main since this release

Release Notes for 1.8.7

  • Configurable Event Mechanism
    You can now selectively enable or disable player events through the settings: VideoSettings parameter.

    • If Events is not passed in the settings: VideoSettings, the event mechanism is disabled, improving performance by preventing unnecessary @State updates.
    • If you need to handle events, specify only the ones you need Events([.durationAny, .itemStatusChangedAny]) or pass Events() to receive every available event.
  • Performance Enhancements
    By allowing granular control over which events are emitted, apps that don’t require real-time event handling will see fewer view updates and potentially lower CPU usage.

  • Example Implementation
    Refer to Video8.swift in the example app to see how to configure and handle this new, more efficient event system.