VideoFrame class
A single video frame delivered over the platform channel.
Emitted by MetaWearablesDat.videoFramesStream in both foreground and
background once MetaWearablesDat.enableBackgroundStreaming has been
called. For preview rendering you still want the zero-copy Texture
returned by MetaWearablesDat.startStreamSession — this stream is meant
for recording or custom processing.
Constructors
- VideoFrame({required VideoCodec codec, required Uint8List bytes, required int width, required int height, required int presentationTimestampUs, required bool isKeyframe, int? bytesPerRow})
-
const
Properties
- bytes → Uint8List
-
The frame bytes. Ownership transfers to the listener; the plugin
does not retain the buffer after emission.
final
- bytesPerRow → int?
-
Number of bytes per row for VideoCodec.raw frames on iOS — may be
larger than
width * 4due to row alignment.nullon Android and for VideoCodec.hvc1.final - codec → VideoCodec
-
The codec the bytes are in.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
final
- isKeyframe → bool
-
Always
truefor VideoCodec.raw. For VideoCodec.hvc1 indicates whether this frame carries parameter sets and can be decoded without prior frames.final - presentationTimestampUs → int
-
Monotonic presentation timestamp in microseconds. Stable across the
lifetime of a single stream session.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
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