public class StringeeVideoTrack
Represents a local or remote video track.
| Properties | |
|---|---|
String |
idVideo track id. |
String |
localIdLocal video track id. |
StringeeRoomUser |
publisherTrack publisher. |
bool |
audioEnableWhether audio is enabled for this track. |
bool |
videoEnableWhether video is enabled for this track. |
bool |
isScreenCaptureWhether this track is a screen capture track. |
bool |
isLocalWhether 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. |
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. |
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. |