pro_video_editor library
Classes
- AudioExtractConfigs
- Configuration for extracting audio from a video.
- AudioWaveform
- A widget that displays an audio waveform visualization.
- ClipTransition
- A transition played at the boundary between one VideoSegment and the next.
- ColorFilter
- A model representing a color filter with timing information.
- EditorLayerImage
- A model that encapsulates various ways to load and represent an image.
- EditorVideo
- A model that encapsulates various ways to load and represent a video.
- ExportTransform
- Represents a set of transformations to apply during video export.
- GpsCoordinates
- Represents GPS coordinates with latitude and longitude.
- ImageLayer
- A model representing a video overlay layer with timing information.
- KeyFramesConfigs
- Configuration model for extracting key frames from a video.
- LayerAnimation
- A single animation applied to an ImageLayer.
- NativeLogEntry
- A single log entry forwarded from the native plugin implementation.
- ProgressModel
- Model representing a progress update.
- ProVideoEditor
- Abstract platform interface for the Pro Video Editor plugin.
- SegmentTransform
- Describes how a video segment is positioned and scaled within the composition canvas.
- SingleThumbnailConfigs
- Configuration model for extracting a single thumbnail from a video.
- StopMotionFrame
- A single still image used as one frame of a stop-motion video.
- StopMotionRenderData
- A model describing settings for rendering a stop-motion video from a sequence of still images.
- ThumbnailConfigs
- Configuration model for generating video thumbnails.
- VideoAudioTrack
- A model representing an audio track with timing information.
- VideoComposition
- A multi-layer video composition.
- VideoLayer
- A single layer (track) within a VideoComposition.
- VideoMetadata
- A class that holds metadata information about a video.
- VideoQualityConfig
- Configuration class that defines video quality parameters.
- VideoRenderData
- A model describing settings for rendering or exporting a video.
- VideoSegment
- Represents a single video clip to be included in a video composition.
- WaveformChunk
- Represents a chunk of waveform data received during streaming.
- WaveformConfigs
- Configuration for waveform generation.
- WaveformData
- Represents waveform data extracted from an audio source.
- WaveformStyle
- Visual styling options for AudioWaveform.
Enums
- AnimationCurve
- Easing curve for animation timing.
- AnimationPhase
- Whether the animation plays at the start, end, or both ends of the layer's time range.
- AudioFormat
- Audio output formats supported for audio extraction.
- ClipTransitionDirection
- Direction for directional transitions (ClipTransitionType.slide, ClipTransitionType.push, ClipTransitionType.wipe).
- ClipTransitionType
- The type of transition to play between two adjacent video clips.
- EditorImageType
- Enum representing the type of source the image was loaded from.
- EditorVideoType
- Enum representing the type of source the video was loaded from.
- LayerAnimationType
- The type of animation to apply to an image layer.
- NativeLogLevel
- Controls how much native logging the plugin emits on supported platforms.
- SegmentFit
- Defines how a video segment's source frame is scaled into its target SegmentTransform.size.
- SlideDirection
- Slide direction for slide animations.
- StopMotionFit
- Describes how a single frame is mapped onto the output video size when its aspect ratio differs from the target resolution.
- ThumbnailBoxFit
- Defines how the video content should be fit within the thumbnail bounds.
- ThumbnailFormat
- Supported image formats for video thumbnails.
- ThumbnailPosition
- Position from which to extract a single thumbnail.
- VideoOutputFormat
- Supported video output formats for export.
- VideoQualityPreset
- Pre-defined video quality presets for common export scenarios.
- WaveformResolution
- Resolution presets for waveform generation.
Mixins
- TimeRangeMixin
- A mixin that provides optional start and end time fields for timeline-based elements.
Functions
-
fetchVideoAsUint8List(
String videoUrl) → Future< Uint8List> - Fetches an video from a network URL as a Uint8List.
-
fetchVideoToFile(
String videoUrl, String filePath) → Future< File> - Fetches a video from a given URL and saves it to a specified file path.
-
loadAssetVideoAsUint8List(
String assetPath) → Future< Uint8List> - Loads an video asset as a Uint8List.
-
readFileAsUint8List(
File file) → Future< Uint8List> - Reads a file as a Uint8List.
-
writeAssetVideoToFile(
String assetPath, String filePath) → Future< File> - Writes a video asset to a file on the local file system.
-
writeMemoryVideoToFile(
Uint8List bytes, String filePath) → Future< File> - Writes a video file from memory to the specified file path.
Exceptions / Errors
- AudioNoTrackException
- Exceptions thrown when no audio is found.
- RenderCanceledException
- Exceptions thrown during render operations.
- RenderEncoderException
- Thrown when the video could not be exported because no compatible encoder configuration could be found for the device.