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
|`settings`|`VideoSettings`| A struct containing configuration settings for the video player. |
22
22
|`command`|`Binding<PlaybackCommand>`| A binding to control playback actions (play, pause, or seek). |
23
-
|`init(fileName:ext:gravity:` <br> `eColor:eFontSize:command:)`| Constructor | Initializes the player with specific video parameters and playback command binding. |
23
+
|`init(fileName:ext:gravity:timePublishing:eColor:eFontSize:command:)`| Constructor | Initializes the player with specific video parameters and playback command binding. |
24
24
|`init(settings: () -> VideoSettings, command:)`| Constructor | Initializes the player with a declarative settings block and playback command binding. |
25
25
26
26
## Commands
@@ -90,6 +90,7 @@ Integrating vector graphics into SwiftUI views, particularly during lifecycle ev
90
90
|**SourceName**| The URL or local filename of the video. If a valid URL (http or https) is provided, the video will be streamed from the URL. If not a URL, the system will check if a video with the given name exists in the local bundle. The local name provided can either include an extension or be without one. The system first checks if the local name contains an extension. If the local name includes an extension, it extracts this extension and uses it as the default. If the local name does not contain an extension, the system assigns a default extension of .mp4 The default file extension can be set up via Ext param. | - |
91
91
|**Ext**| File extension for the video, used when loading from local resources. This is optional when a URL is provided and the URL ends with the video file extension. | "mp4" |
92
92
|**Gravity**| How the video content should be resized to fit the player's bounds. | .resizeAspect |
93
+
|**TimePublishing**| Specifies the interval at which the player publishes the current playback time. If the parameter is passed during initialization, the player will publish the time according to the input settings. You can pass just `TimePublishing` without any value to use the default interval of 1 second, or you can pass a specific `CMTime` value to set a custom interval. | 1 second (CMTime with 1 second and preferred timescale of 600) |
93
94
|**EColor**| Error message text color. | .red |
94
95
|**EFontSize**| Size of the error text. | 17.0 |
95
96
@@ -120,12 +121,16 @@ or in a declarative way
120
121
SourceName("swipe")
121
122
Ext("mp8") // Set default extension here If not provided then mp4 is default
0 commit comments