agentParticipants property
All agent participants currently in the room.
- Note: This excludes participants that are publishing on behalf of
another participant (for example, "avatar worker" participants). Those
workers can be discovered by filtering remoteParticipants for
participants whose
lk.publish_on_behalfattribute matches the agent's identity.
Implementation
Iterable<RemoteParticipant> get agentParticipants => remoteParticipants.values.where(
(participant) {
if (participant.kind != ParticipantKind.AGENT) {
return false;
}
final publishOnBehalf = participant.attributes[lkPublishOnBehalfAttributeKey];
return publishOnBehalf == null || publishOnBehalf.isEmpty;
},
);