Suggestions

close search

StringeeVideoTrack class

Represents a video track.


Properties


idString?

It's the unique identification of the video track on Stringee system.

localIdString?

It's the unique identification of the video track on local database.

publisherStringeeRoomUser

It's user who publish this track.

audioEnablebool

Whether the track has audio:

videoEnablebool

Whether the track has video:

isScreenCapturebool

Whether the track is screen capture:

isLocalbool

Whether the track is local track:


Methods


mute(bool mute)Map<dynamic, dynamic>

Toggle audio on or off.

enableVideo(bool enable)Map<dynamic, dynamic>

Enables or disables the local stream.

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

Switches the device's camera. By default, Stringee SDK uses the front camera.

release()Map<dynamic, dynamic>

Release video track.

snapShot()Map<dynamic, dynamic>

Snap shot local video track. If successful return a MemoryImage in callBack['image'].

sendAudioEnableNotification(bool enable)Map<dynamic, dynamic>

Send audio status notification to other user in the room.

sendVideoEnableNotification(bool enable)Map<dynamic, dynamic>

Send video status notification to other user in the room.

setSpeakerphoneOn(bool speakerPhoneOn)Map<dynamic, dynamic>

Set the audio output mode. If you want to use the device loudspeaker for playing audio, call the setSpeakerphoneOn(true) method. Otherwise, call the setSpeakerphoneOn(false) method to use headset speaker for playing audio.

setBluetoothScoOn(bool bluetoothScoOn)Map<dynamic, dynamic>

This method is only available on Android. Set the audio output mode. If you want to use the Bluetooth device for playing audio, call the setBluetoothScoOn(true) method. Otherwise, call the setSpeakerphoneOn(false) method to return to use the previous audio device for playing audio.

setMirror(bool isLocal, bool isMirror)Map<dynamic, dynamic>

This method is only available on Android. Set local stream like a mirror or not in Android.

attach(List userIds)StringeeVideoView

Attach view of video track.