public class LocalParticipant extends Object implements Participant
Room
you are connected to.Modifier and Type | Class and Description |
---|---|
static interface |
LocalParticipant.Listener
Interface that provides
LocalParticipant events. |
Modifier and Type | Method and Description |
---|---|
List<AudioTrackPublication> |
getAudioTracks()
Returns read-only list of audio track publications.
|
String |
getIdentity()
Returns the identity of the local participant.
|
List<LocalAudioTrackPublication> |
getLocalAudioTracks()
Returns read-only list of local audio track publications.
|
List<LocalVideoTrackPublication> |
getLocalVideoTracks()
Returns read-only list of local video track publications.
|
String |
getSid()
Returns the SID of the local participant.
|
List<VideoTrackPublication> |
getVideoTracks()
Returns read-only list of video track publications.
|
boolean |
publishTrack(LocalAudioTrack localAudioTrack)
Shares audio track to all participants in a
Room . |
boolean |
publishTrack(LocalVideoTrack localVideoTrack)
Shares video track to all participants in a
Room . |
void |
setEncodingParameters(EncodingParameters encodingParameters)
Updates the
EncodingParameters used to share media in the Room. |
void |
setListener(LocalParticipant.Listener listener)
Set listener for local participant events.
|
boolean |
unpublishTrack(LocalAudioTrack localAudioTrack)
Stops the sharing of an audio track to all the participants in a
Room . |
boolean |
unpublishTrack(LocalVideoTrack localVideoTrack)
Stops the sharing of a video track to all the participants in a
Room . |
public String getSid()
getSid
in interface Participant
public String getIdentity()
getIdentity
in interface Participant
public List<AudioTrackPublication> getAudioTracks()
getAudioTracks
in interface Participant
public List<VideoTrackPublication> getVideoTracks()
getVideoTracks
in interface Participant
public List<LocalAudioTrackPublication> getLocalAudioTracks()
public List<LocalVideoTrackPublication> getLocalVideoTracks()
public boolean publishTrack(LocalAudioTrack localAudioTrack)
Room
.public boolean publishTrack(LocalVideoTrack localVideoTrack)
Room
.public boolean unpublishTrack(LocalAudioTrack localAudioTrack)
Room
.public boolean unpublishTrack(LocalVideoTrack localVideoTrack)
Room
.public void setListener(LocalParticipant.Listener listener)
listener
- of local participant events.public void setEncodingParameters(EncodingParameters encodingParameters)
EncodingParameters
used to share media in the Room.encodingParameters
- The EncodingParameters
to use or null
for the
default values.