PassthroughVideoCodec class
Pretends to encode by handing the input bytes back out unchanged. Useful for tests and for piping pre-encoded frames through the RTP transport.
- Implemented types
Constructors
- PassthroughVideoCodec({SdpVideoCodec codec = SdpVideoCodec.vp8})
Properties
- codec → SdpVideoCodec
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void -
Release native resources (no-op for pure-Dart codecs).
override
-
decode(
Uint8List bytes) → YuvFrame? -
Decode one encoded frame and return the YUV picture, or null if the
codec needs more data (e.g. the inbound stream hasn't seen a keyframe
yet).
override
-
encode(
YuvFrame frame, {bool forceKeyframe = false}) → List< EncodedVideoFrame> -
In passthrough mode
encodeaccepts raw bitstream wrapped as a fakeYuvFramewhoseyplane carries the bytestream. Caller should keepwidth/heightpopulated for upper layers but the chroma planes are unused.override -
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