Suggestions

close search

StringeeVideoTrack

public class StringeeVideoTrack



Represents a local or remote video track.



Summary


Properties
String id

Video track id.

String localId

Local video track id.

StringeeRoomUser publisher

Track publisher.

bool audioEnable

Whether audio is enabled for this track.

bool videoEnable

Whether video is enabled for this track.

bool isScreenCapture

Whether this track is a screen capture track.

bool isLocal

Whether this is a local track.

Public methods
StringeeVideoTrackInfo getInfo()

Returns a StringeeVideoTrackInfo object for this track.

Future<Map<dynamic, dynamic>> mute(bool mute)

Mutes or unmutes this track audio stream.

Future<Map<dynamic, dynamic>> enableVideo(bool enable)

Enables or disables this track video stream.

Future<Map<dynamic, dynamic>> switchCamera({String? cameraId})

Switches this local track to another camera.

StringeeVideoView attach({Key? key, bool? isMirror, double? height, double? width, EdgeInsetsGeometry? margin, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Widget? child, ScalingType? scalingType, BorderRadius? borderRadius})

Creates a Flutter view attached to this video track.

Properties


id
Video track id.
localId
Local video track id.
publisher
Track publisher.
audioEnable
Whether audio is enabled for this track.
videoEnable
Whether video is enabled for this track.
isScreenCapture
Whether this track is a screen capture track.
isLocal
Whether this is a local track.

Public methods


getInfo()
Returns a StringeeVideoTrackInfo object for this track.
mute(bool mute)
Mutes or unmutes this track audio stream.
enableVideo(bool enable)
Enables or disables this track video stream.
switchCamera({String? cameraId})
Switches this local track to another camera.
attach({Key? key, bool? isMirror, double? height, double? width, EdgeInsetsGeometry? margin, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Widget? child, ScalingType? scalingType, BorderRadius? borderRadius})
Creates a Flutter view attached to this video track.