VirtualVideoTrackSource class
Helper class to bridge virtual frames to WebRTC
This would be used with platform channels to actually inject frames into a native video track.
Constructors
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
-
createVirtualTrack(
{required int width, required int height, required int fps}) → Future< MediaStreamTrack?> - Platform channel for frame injection static const _channel = MethodChannel('mediasfu/virtual_background'); Create a virtual video track from processed frames
-
dispose(
) → Future< void> - Dispose the virtual track
-
pushFrame(
Uint8List frameData) → Future< void> - Push a frame to the virtual track