Suggestions

close search

StringeeRoomListener class

Represents the event from the StringeeVideoRoom.


Constructors


Create a new StringeeRoomListener.

StringeeRoomListener({required this.onJoinRoom, required this.onLeaveRoom, required this.onAddVideoTrack, required this.onRemoveVideoTrack,required this.onReceiveRoomMessage,required this.onTrackReadyToPlay, this.onTrackMediaStateChange, this.onChangeAudioDevice})

Methods


onJoinRoom(StringeeVideoRoom stringeeVideoRoom, StringeeRoomUser roomUser)void

Invoked when new user join room.

onLeaveRoom(StringeeVideoRoom stringeeVideoRoom, StringeeRoomUser roomUser)void

Invoked when user leave room.

onAddVideoTrack(StringeeVideoRoom stringeeVideoRoom, StringeeVideoTrackInfo videoTrackInfo)void

Invoked when new video track added to the room.

onRemoveVideoTrack(StringeeVideoRoom stringeeVideoRoom, StringeeVideoTrack videoTrackInfo)void

Invoked when video track removed from the room.

onReceiveRoomMessage(StringeeVideoRoom stringeeVideoRoom, StringeeRoomUser roomUser, Map<dynamic, dynamic> message)void

Invoked when receive message in room.

onTrackMediaStateChange(StringeeVideoRoom stringeeVideoRoom, StringeeVideoTrackInfo videoTrackInfo, StringeeRoomUser roomUser, MediaType mediaType, bool enable)void

Invoked when receive track media state change event from other user.

onTrackReadyToPlay(StringeeVideoRoom stringeeVideoRoom, StringeeVideoTrack videoTrack)void

Invoked when the video track is ready to play.

onChangeAudioDevice(StringeeVideoRoom stringeeVideoRoom, AudioDevice selectedAudioDevice, List<AudioDevice> availableAudioDevices)void

Invoked when the current audio device changes in android.