Skip to content

SwiftUI video player

Compare
Choose a tag to compare
@swiftuiux swiftuiux released this 19 Aug 17:04
· 68 commits to main since this release

Release Notes: Version 1.7.1

New Features

  • New Playback State Events: We've expanded our player events to enhance monitoring and interaction with the playback states:
    • paused: Alerts when playback is paused.
    • waitingToPlayAtSpecifiedRate: Notifies when playback is waiting to start due to buffering or other delays.
    • playing: Indicates active media playback.
    • currentItemChanged: Reports when a new media item is loaded.
    • currentItemRemoved: Occurs when the current media item is removed.
    • volumeChanged: Reports changes to the player's volume.

Improvements

  • Batch Event Processing: To manage the high volume of event notifications more efficiently, especially in environments with dynamic content, we now collect all relevant player events within a one-second window and process them as a batch. This new approach helps maintain the order of events and reduces the processing overhead in high-frequency situations.

Developer Impact

  • Enhanced Event Handling: Developers can now hook into these batched events through our updated API, allowing for more controlled and scalable event management within applications. This change is crucial for applications dealing with high volumes of media interactions or in scenarios where precise synchronization between the player state and application state is critical.