MediaProbe class

Facts about a local media file, read natively.

Annotations

Constructors

MediaProbe({required int width, required int height, required int fileSizeBytes, Duration? duration, int rotationDegrees = 0, bool hasVideo = false, bool hasAudio = false, String? videoCodec, String? audioCodec, double? frameRate})
Creates a probe result.
const

Properties

audioCodec → String?
Audio codec, e.g. mp4a / audio/mp4a-latm.
final
duration → Duration?
Media length; null for images.
final
fileSizeBytes → int
File size.
final
frameRate → double?
Nominal frame rate.
final
hasAudio → bool
Whether an audio track exists.
final
hashCode → int
The hash code for this object.
no setterinherited
hasVideo → bool
Whether a video track exists.
final
height → int
Display height (after rotation metadata / EXIF orientation).
final
rotationDegrees → int
Clockwise rotation stored in a video's metadata.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
videoCodec → String?
Video codec, e.g. avc1, hvc1 / video/avc.
final
width → int
Display width (after rotation metadata / EXIF orientation).
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.
inherited