XVideoProbe class

Dimensions, duration and a poster frame in one native round-trip.

Backed by AVFoundation (Apple) / MediaMetadataRetriever (Android) alone — no player, no texture registry — which is what makes it usable inside an app extension, where the XVideoPlayer route is not available, and cheap enough for a share surface that describes files it never plays.

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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

probe({required String path, int atMs = 0, int? maxWidth = 320}) → Future<XVideoProbeResult?>
Probes path. Null when the file yields no video track at all. maxWidth caps the poster's width (aspect preserved); null asks for the frame at native resolution.