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.Object
A 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.String
connectionId
protected java.lang.String
id
protected Space
space
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getConnectionId()
A unique connection id generated every time a participant connects to a spacejava.lang.String
getId()
Signals.Participant.ParticipantRole
getRole()
int
hashCode()
boolean
isActiveSpeaker()
boolean
isTrackSourceMuted(java.lang.String trackSource)
protected boolean
roleSupportsPublishing()
java.lang.String
toString()
-
-
-
Field Detail
-
space
protected Space space
-
id
protected java.lang.String id
-
connectionId
protected java.lang.String connectionId
-
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getRole
public Signals.Participant.ParticipantRole getRole()
-
-