You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ Please note that using videos from URLs requires ensuring that you have the righ
134
134
|**NotAutoPlay**| Indicates if the video should not play after initialization. Notice that if you use `command` as a control flow for the player the start command should be `.idle`| false |
135
135
|**EnableVector**| Use this struct to activate settings that allow the addition of vector-based overlays via commands. If it is not passed via settings, any commands to `addVector` or `removeAllVectors` will have no effect. | Not Enabled |
136
136
|**PictureInPicture**| Enable Picture-in-Picture (PiP) support. If not passed than any command like `startPiP` or `stopPiP` have no effect. Take a look the example app *Video11.swift*. It does not work on simulator. You can observe the feature only on real devices.| - |
137
-
|**Events([.durationAny, .itemStatusChangedAny])**| If `Events([])` is not passed in the `settings: VideoSettings`, the event mechanism is disabled. You can specify exactly which events you want to receive (e.g., .itemStatusChangedAny) or simply pass .all to receive all available events. This setting was added to improve performance because events are emitted via @State changes, which trigger view updates. If you don’t need to observe any events, disabling them can significantly boost performance. Take a look on the implementation in the example app *Video8.swift*| - |
137
+
|**Events([.durationAny, .itemStatusChangedAny])**| If `Events([])` is not passed in the `settings: VideoSettings`, the event mechanism is disabled. You can specify exactly which events you want to receive (e.g., .itemStatusChangedAny) or simply pass `Events([])` to receive all available events. This setting was added to improve performance because events are emitted via @State changes, which trigger view updates. If you don’t need to observe any events, disabling them can significantly boost performance. Take a look on the implementation in the example app *Video8.swift*| - |
138
138
139
139
### Additional Notes on Settings
140
140
@@ -325,8 +325,6 @@ video_main.m3u8
325
325
|`stoppedPiP`| Matches exactly the `.stoppedPiP` event, triggered when Picture-in-Picture (PiP) mode stops. |
326
326
|`itemStatusChangedAny`| Matches any `.itemStatusChanged(...)` case, indicating that the AVPlayerItem's status has changed (e.g., `.unknown`, `.readyToPlay`, `.failed`). |
327
327
|`durationAny`| Matches any `.duration(...)` case, which provides the duration of the media item when ready to play. |
0 commit comments