VideoFrameSource class

A frame extracted from a video (by URL or local path) at timeMs.

Because ImageSource is open for extension, this plugin adds a whole new kind of source — the video is never downloaded as image bytes; the native thumbnailer seeks and extracts a single frame.

Constructors

VideoFrameSource(String video, {int timeMs = 0, int quality = 75, Map<String, String>? headers})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
headers Map<String, String>?
Headers for network videos (auth, etc.).
final
key String
Stable identity used as the download-cache key. Transform/size independent.
no setter
quality int
Encoder quality 0..100 for the extracted frame.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeMs int
Timestamp (ms) of the frame to grab.
final
video String
A video URL (http(s)://…) or a local file path.
final

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.
override