Release Notes for 1.8.7
-
Configurable Event Mechanism
You can now selectively enable or disable player events through thesettings: VideoSettings
parameter.- If
Events
is not passed in thesettings: 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 passEvents()
to receive every available event.
- If
-
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 toVideo8.swift
in the example app to see how to configure and handle this new, more efficient event system.