To receive media streams of other participants connected to a Room, you must subscribe to the streams individually. Unless you subscribe a stream, you will not receive anything.

Method: static Future<void> subscribe(String streamId)


  • @param String streamId – Stream id to subscribe.

Event Listener:: onSubscribeStream- to all participants that a Stream is taken off the Room.

EnxRtc.onStreamAdded = (Map<dynamic, dynamic> map) {
	String streamId;
	setState(() {
		streamId = map['streamId'];

EnxRtc.onSubscribedStream= (Map<dynamic, dynamic> map) {