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
|`addVector(ShapeLayerBuilderProtocol, clear: Bool)`| Command to add a vector graphic layer over the video stream. The `builder` parameter is an instance conforming to `ShapeLayerBuilderProtocol`. The `clear` parameter specifies whether to clear existing vector layers before adding the new one. |
191
191
|`removeAllVectors`| Command to remove all vector graphic layers from the video stream. |
192
-
### Additional Notes on the subtitles Command
192
+
### Additional Notes on Vector Graphics Commands
193
193
- To use these commands, don’t forget to enable the Vector layer in settings via the EnableVector() setting.
194
194
- The boundsChanged event(`boundsChanged(CGRect)`) is triggered when the main layer’s bounds are updated. This approach is particularly useful when overlays or custom vector layers need to adapt dynamically to changes in video player dimensions or other layout adjustments. To handle the frequent boundsChanged events effectively and improve performance, you can use a **throttle** function to limit how often the updates occur.
0 commit comments