Suggestions

close search

StringeeVideoTrack class

Represents a video track.


Summary


Properties

id → String

localId → String

publisher → StringeeRoomUser

audioEnable → bool

videoEnable → bool

isScreenCapture → bool

isLocal → bool

Methods

mute(bool mute) → result

Toggle audio on or off.

enableVideo(bool enableVideo) → result

Enables or disables the video stream.

switchCamera() → result

Switches the device's camera.

attach({
Key key,
Color color,
bool isOverlay,
bool isMirror,
double height,
double width,
EdgeInsetsGeometry margin,
AlignmentGeometry alignment,
EdgeInsetsGeometry padding,
Widget child,
ScalingType scalingType,
}) → StringeeVideoView

Attach view of video track.

close() → result

Release video track.

Properties


id → String
It's the unique identification of the video track on Stringee system.
localId → String
It's the unique identification of the video track on local.
publisher → StringeeRoomUser
It's user who publish this track.
audioEnable → bool
Whether the track has audio:
- true - has audio.
- false - doesn't have audio.
videoEnable → bool
Whether the track has video:
- true - has video.
- false - doesn't have video.
isScreenCapture → bool
Whether the track is screen capture:
- true - is screen capture.
- false - isn't screen capture.
isLocal → bool
Whether the track is local track:
- true - is local track.
- false - isn't local track.

Methods


mute(bool mute) → result
Toggle audio on or off.
enableVideo(bool enableVideo) → result
Enables or disables the video stream.
switchCamera() → result
Switches the device's camera. By defalt, Stringee SDK uses the front camera.
setMirror(bool isLocal, bool isMirror) → result
This method only available in android.
Set stream like a mirror in android.
attach({
Key key,
Color color,
bool isOverlay,
bool isMirror,
double height,
double width,
EdgeInsetsGeometry margin,
AlignmentGeometry alignment,
EdgeInsetsGeometry padding,
Widget child,
ScalingType scalingType,
}) → StringeeVideoView
Attach view of video track.
close() → result
Release video track.