Package com.mux.sdk.webrtc.spaces
Class Participant
- java.lang.Object
-
- com.mux.sdk.webrtc.spaces.Participant
-
- Direct Known Subclasses:
LocalParticipant,RemoteParticipant
public abstract class Participant extends java.lang.ObjectA superclass of local and remote participants. Useful if you need a collection that wraps both.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringconnectionIdprotected java.lang.StringdisplayNameprotected java.lang.Stringidprotected Spacespaceprotected java.lang.StringspaceId
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Map<java.lang.String,Track>getAudioTracks()Return the currently published audio Tracks for this participant in a Map indexed by track IDjava.lang.StringgetConnectionId()A unique connection id generated every time a participant connects to a spacejava.lang.StringgetDisplayName()java.lang.StringgetId()Signals.Participant.ParticipantRolegetRole()java.util.Map<java.lang.String,Track>getTracks()Return the currently published Tracks for this participant in a Map indexed by track IDjava.util.Map<java.lang.String,Track>getVideoTracks()Return the currently published video Tracks for this participant in a Map indexed by track IDinthashCode()booleanisActiveSpeaker()booleanisTrackSourceMuted(java.lang.String trackSource)protected booleanroleSupportsPublishing()java.lang.StringtoString()protected voidupdateDisplayName(java.lang.String displayName)
-
-
-
Field Detail
-
space
protected Space space
-
spaceId
protected final java.lang.String spaceId
-
id
protected java.lang.String id
-
connectionId
protected java.lang.String connectionId
-
displayName
protected java.lang.String displayName
-
-
Method Detail
-
roleSupportsPublishing
protected final boolean roleSupportsPublishing()
-
isActiveSpeaker
public boolean isActiveSpeaker()
-
isTrackSourceMuted
public boolean isTrackSourceMuted(java.lang.String trackSource)
-
getId
public java.lang.String getId()
- Returns:
- The unique participant id derrived from the `participant_id` field in the JWT
-
getConnectionId
public java.lang.String getConnectionId()
A unique connection id generated every time a participant connects to a space
-
getDisplayName
public java.lang.String getDisplayName()
-
updateDisplayName
protected void updateDisplayName(java.lang.String displayName)
-
getTracks
public java.util.Map<java.lang.String,Track> getTracks()
Return the currently published Tracks for this participant in a Map indexed by track ID- Returns:
-
getAudioTracks
public java.util.Map<java.lang.String,Track> getAudioTracks()
Return the currently published audio Tracks for this participant in a Map indexed by track ID- Returns:
-
getVideoTracks
public java.util.Map<java.lang.String,Track> getVideoTracks()
Return the currently published video Tracks for this participant in a Map indexed by track ID- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getRole
public Signals.Participant.ParticipantRole getRole()
-
-