MediaInspector class abstract

Native media inspection helpers.

All methods throw StoryException (mediaUnsupported, mediaUnavailable) on failure.

Constructors

MediaInspector()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
probe(String path) → Future<MediaProbe>
Reads dimensions, duration, rotation and tracks of an image or video.
thumbnails(String path, List<Duration> times, {required String outputDirectory, int maxWidth = 160}) → Future<List<String>>
JPEG frames of a video at times, each at most maxWidth wide, written into outputDirectory. Returns the paths in the same order.
toString() → String
A string representation of this object.
inherited
waveform(String path, {int buckets = 120}) → Future<List<double>>
Peak levels (0–1) of an audio or video file, in buckets even slices.

Operators

operator ==(Object other) → bool
The equality operator.
inherited