Skip to main content

Configuration

EditCore is configured through EditCoreConfig and ExportConfig objects passed to openEditor().

EditCoreConfig

PropertyTypeDefaultDescription
enableFiltersbooltrueShow filter panel
enableTextOverlaybooltrueEnable text overlay tool
enableWatermarkboolfalseShow watermark tool
enableTrimbooltrueEnable trim handles
enableCropbooltrueEnable crop tool
allowCancelbooltrueShow cancel button
exportConfigExportConfigdefaultExport settings

Example

EditCoreConfig(
enableFilters: true,
enableTextOverlay: true,
enableWatermark: false,
enableTrim: true,
enableCrop: true,
allowCancel: true,
exportConfig: ExportConfig(
resolution: ExportResolution.fhd1080p,
format: ExportFormat.mp4,
),
)

ExportConfig

PropertyTypeOptions
resolutionExportResolutionsd480p, hd720p, fhd1080p (default), uhd4k, original
formatExportFormatmp4 (default)
bitrateint?Optional bitrate override in bps

EditResult

The result returned from openEditor():

PropertyTypeDescription
successboolWhether export completed successfully
outputPathString?Path to the exported video file
durationMsint?Duration of the exported video in milliseconds
fileSizeBytesint?File size of the exported video

Feature Gating

Features are gated by license tier. Check availability at runtime:

bool enabled = await EditCore.isFeatureEnabled(EditCoreFeature.filters);

See Licensing for tier details.