VideoEffectSDKConfig class
Video Effects SDK configuration.
Currently applicable only for web.
Constructors
-
VideoEffectSDKConfig.new({String? apiUrl, String? sdkUrl, String? modelUrl, SegmentationPreset? preset, WebInferenceProvider? webInferenceProvider, List<
VideoEffect> ? effects, bool? cacheModels, bool? testInference, bool? proxy, bool? stats, Map<String, String> ? models, Map<String, String> ? wasmPaths})
Properties
- apiUrl ↔ String?
-
Custom url for sdk authentication, applicable for on-premises solutions.
getter/setter pair
- cacheModels ↔ bool?
-
Specifies to cache models locally, this will speed up the load time. (Web only)
getter/setter pair
-
effects
↔ List<
VideoEffect> ? -
List of effects which should be loaded at initialization. (Web only)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
models
↔ Map<
String, String> ? -
Ability to provide a custom path of model (Web only).
getter/setter pair
- modelUrl ↔ String?
-
Specifies custom URL for the segmentation model; in most cases, this parameter does not require configuration.
getter/setter pair
- preset ↔ SegmentationPreset?
-
Specifies background segmentation preset (Currently Web Only)
getter/setter pair
- proxy ↔ bool?
-
Configuration specifies if segmentation should be working in separate worker thread (not in main UI thread), default value is true. (Web only)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkUrl ↔ String?
-
Specifies the url to SDK folder in case when you host model files by yourself (Web only).
getter/setter pair
- stats ↔ bool?
-
Enabling/disabling statistics sending. (Web only).
getter/setter pair
- testInference ↔ bool?
-
If set to true, the SDK will test inference consistency on the WebGPU backend.
getter/setter pair
-
wasmPaths
↔ Map<
String, String> ? -
Currently wasm files are loading from the same directory where SDK is placed, but custom urls also supported (for example you can load it from CDNs) (Web only).
getter/setter pair
- webInferenceProvider ↔ WebInferenceProvider?
-
Specifies backend for ML inference. (Web only).
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited