participantPublishedEvent method

void participantPublishedEvent(
  1. Map<String, dynamic> params
)

Implementation

void participantPublishedEvent(Map<String, dynamic> params) {
  final remoteParticipantId = params[JsonConstants.id];
  final remoteParticipant = session.remoteParticipants[remoteParticipantId]!;
  final streamId = params['streams'][0]['id'];
  remoteParticipant.isAudioActive = params['streams'][0]['audioActive'];
  remoteParticipant.isVideoActive = params['streams'][0]['videoActive'];
  subscribe(remoteParticipant, streamId);
}