MediaInfo class
Metadata information about a video file.
Constructors
- MediaInfo({required String path, String? title, String? mimeType, int? width, int? height, double? duration, int? bitrate, int? fileSize, double? frameRate, int? rotation, bool? hasAudio})
-
Creates a MediaInfo.
const
-
MediaInfo.fromMap(Map<
String, dynamic> map) -
Deserialises a platform‑channel map into a MediaInfo.
factory
Properties
- bitrate → int?
-
Bitrate in bits per second.
final
- duration → double?
-
Duration of the video in seconds.
final
- fileSize → int?
-
File size in bytes.
final
- frameRate → double?
-
Frame rate in frames per second.
final
- hasAudio → bool?
-
Whether the video contains an audio track.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
Video height in pixels.
final
- mimeType → String?
-
MIME type of the video container (e.g.
video/mp4).final - path → String
-
Absolute path of the video file.
final
- rotation → int?
-
Rotation angle in degrees (0, 90, 180, or 270).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
Display title extracted from metadata, if available.
final
- width → int?
-
Video width in pixels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited