public interface Conference
Conference
, you first need a ConferenceParams
Core.createConferenceWithParams(org.linphone.core.ConferenceParams)
allows you to create aCore
can host only 1 conference but it can be part of manyCore.searchConference(org.linphone.core.ConferenceParams, org.linphone.core.Address, org.linphone.core.Address, org.linphone.core.Address[])
. Modifier and Type | Interface | Description |
---|---|---|
static class |
Conference.State |
Modifier and Type | Method | Description |
---|---|---|
void |
addListener(ConferenceListener listener) |
|
int |
addParticipant(Address uri) |
Join a participant to the conference.
|
int |
addParticipant(Call call) |
Join an existing call to the conference.
|
int |
addParticipants(Address[] addresses) |
Add participants to the conference, by supplying a list of
Address . |
int |
addParticipants(Call[] calls) |
Add participants to the conference, by supplying a list of
Call . |
int |
enter() |
For a local conference, the local participant joins the conference For a remote
conference, the participant rejoins the conference after leaving it earlier on. |
Participant |
findParticipant(Address uri) |
Find a participant from a conference.
|
ParticipantDevice |
getActiveSpeakerParticipantDevice() |
Get the currently active speaker participant device.
|
Call |
getCall() |
Gets the call that is controlling a conference.
|
Address |
getConferenceAddress() |
Get the conference address of the conference.
|
Core |
getCore() |
Returns core for a
Conference . |
ConferenceParams |
getCurrentParams() |
Get current parameters of the conference.
|
int |
getDuration() |
Get the conference duration.
|
java.lang.String |
getId() |
Deprecated.
10/07/2020 Use
getConferenceAddress() instead. |
AudioDevice |
getInputAudioDevice() |
Gets the current input device for this conference.
|
Participant |
getMe() |
For a local audio video conference, this function returns the participant
hosting the conference For a remote audio video conference, this function returns the local participant of the conference. |
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
AudioDevice |
getOutputAudioDevice() |
Gets the current output device for this conference.
|
int |
getParticipantCount() |
Get number of participants without me.
|
ParticipantDevice[] |
getParticipantDeviceList() |
Get list of all participant devices of a conference including me if it is in.
|
int |
getParticipantDeviceVolume(ParticipantDevice device) |
Retrieves the volume of a specific participant.
|
Participant[] |
getParticipantList() |
Get list of all participants of a conference.
|
Address[] |
getParticipants() |
Deprecated.
10/07/2020 Use
getParticipantList() instead. |
long |
getStartTime() |
Get the conference start time.
|
Conference.State |
getState() |
Get the current state of the conference.
|
java.lang.String |
getSubject() |
Get the conference subject.
|
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
java.lang.String |
getUsername() |
Get the conference username.
|
int |
inviteParticipants(Address[] addresses,
CallParams params) |
Invite participants to the conference, by supplying a list of
Address If the conference is in the state LinphoneConferenceStateCreationPending, then the conference will start on the input and output audio devices used for the currently active call, if any. |
boolean |
isIn() |
For a local conference, it returns whether the local participant is enabled For
a remote conference, it return whether the remote participant has left the conference without bein removed from it. |
boolean |
isMe(Address uri) |
For a local audio video conference, this function compares the address provided
as argument with that of participant hosting the conference For a remote audio video conference, this function compares the address provided as argument with that of the local participant of the conference. |
boolean |
isRecording() |
Gets whether the conference is currently being recorded.
|
int |
leave() |
For a local conference, the local participant leaves the conference For a
remote conference, the participant leaves the conference after joining it earlier on. |
void |
removeListener(ConferenceListener listener) |
|
int |
removeParticipant(Address uri) |
Deprecated.
10/07/2020 Use
removeParticipant(org.linphone.core.Address) instead. |
int |
removeParticipant(Call call) |
Deprecated.
10/07/2020 Use
removeParticipant(org.linphone.core.Address) instead. |
int |
removeParticipant(Participant participant) |
|
void |
setConferenceAddress(Address address) |
Set the conference address.
|
void |
setId(java.lang.String conferenceId) |
Deprecated.
10/07/2020 Use
setConferenceAddress(org.linphone.core.Address) instead. |
void |
setInputAudioDevice(AudioDevice audioDevice) |
Sets the given
AudioDevice as input for this conference only. |
void |
setLocalParticipantStreamCapability(MediaDirection direction,
StreamType type) |
Set stream capability on me device of a local conference.
|
void |
setOutputAudioDevice(AudioDevice audioDevice) |
Sets the given
AudioDevice as output for this conference only. |
void |
setParticipantAdminStatus(Participant participant,
boolean isAdmin) |
Change the admin status of a participant of a conference (you need to be an
admin yourself to do this). |
void |
setSubject(java.lang.String subject) |
Set the conference subject.
|
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
void |
setUsername(java.lang.String username) |
Set the conference username.
|
int |
startRecording(java.lang.String path) |
Starts recording the conference.
|
int |
stopRecording() |
Stops the conference recording.
|
int |
terminate() |
Terminates conference.
|
java.lang.String |
toString() |
|
int |
updateParams(ConferenceParams params) |
Update parameters of the conference.
|
@Nullable ParticipantDevice getActiveSpeakerParticipantDevice()
ParticipantDevice
currently displayed as active speaker. @Nullable Call getCall()
Call
controlling the conference or null if none or local@NonNull Address getConferenceAddress()
void setConferenceAddress(@NonNull Address address)
address
- the conference address to set. @NonNull Core getCore()
@NonNull ConferenceParams getCurrentParams()
ConferenceParams
. @Nullable int getDuration()
@Deprecated @NonNull java.lang.String getId()
getConferenceAddress()
instead. @Deprecated void setId(@NonNull java.lang.String conferenceId)
setConferenceAddress(org.linphone.core.Address)
instead. conferenceId
- the conference id to set. @Nullable AudioDevice getInputAudioDevice()
AudioDevice
used by this conference as input or null ifvoid setInputAudioDevice(@Nullable AudioDevice audioDevice)
audioDevice
- The AudioDevice
. null does nothing. boolean isIn()
boolean isRecording()
@NonNull Participant getMe()
Participant
. @Nullable AudioDevice getOutputAudioDevice()
AudioDevice
used by this conference as output or null ifvoid setOutputAudioDevice(@Nullable AudioDevice audioDevice)
audioDevice
- The AudioDevice
. null does nothing. int getParticipantCount()
Conference
@NonNull ParticipantDevice[] getParticipantDeviceList()
@NonNull Participant[] getParticipantList()
@Deprecated @NonNull Address[] getParticipants()
getParticipantList()
instead. @Nullable long getStartTime()
Conference.State getState()
Conference.State
of the conference. @Nullable java.lang.String getSubject()
void setSubject(@Nullable java.lang.String subject)
subject
- conference subject @Nullable java.lang.String getUsername()
void setUsername(@Nullable java.lang.String username)
username
- conference subject int addParticipant(@NonNull Call call)
call
- a Call
that has to be added to the conference. int addParticipant(@NonNull Address uri)
uri
- a Address
that has to be added to the conference. int addParticipants(@NonNull Address[] addresses)
addresses
- A list of calls to add to the conference. int addParticipants(@NonNull Call[] calls)
Call
. calls
- A list of calls to add to the conference. int enter()
@Nullable Participant findParticipant(@NonNull Address uri)
uri
- SIP URI of the participant to search. int getParticipantDeviceVolume(@NonNull ParticipantDevice device)
device
- The Participant int inviteParticipants(@NonNull Address[] addresses, @Nullable CallParams params)
Address
addresses
- A list of SIP addresses to invite. params
- CallParams
to use for inviting the participants. boolean isMe(@NonNull Address uri)
uri
- A Address
object int leave()
@Deprecated int removeParticipant(@NonNull Address uri)
removeParticipant(org.linphone.core.Address)
instead. uri
- URI of the participant to remove getParticipants()
@Deprecated int removeParticipant(@NonNull Call call)
removeParticipant(org.linphone.core.Address)
instead. call
- call to remove int removeParticipant(@NonNull Participant participant)
participant
- participant to remove getParticipantList()
void setLocalParticipantStreamCapability(MediaDirection direction, StreamType type)
direction
- the direction of stream of type stream_type void setParticipantAdminStatus(@NonNull Participant participant, boolean isAdmin)
participant
- The Participant for which to change the admin status isAdmin
- A boolean value telling whether the participant should now be anint startRecording(@NonNull java.lang.String path)
path
- Where to record the conference int stopRecording()
int terminate()
int updateParams(@NonNull ConferenceParams params)
params
- the new parameters to apply. void addListener(ConferenceListener listener)
void removeListener(ConferenceListener listener)
void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object