Liblinphone
5.4.0
|
This object represents a unique device for a member of a Conference or ChatRoom. More...
#include <participant_device.hh>
Public Types | |
enum | JoiningMethod { JoiningMethod::DialedIn = 0, JoiningMethod::DialedOut = 1, JoiningMethod::FocusOwner = 2 } |
JoiningMethod is used to indicate how a participant joined a conference or if it is the focus. More... | |
enum | DisconnectionMethod { DisconnectionMethod::Booted = 0, DisconnectionMethod::Departed = 1, DisconnectionMethod::Busy = 2, DisconnectionMethod::Failed = 3 } |
DisconnectionMethod is used to indicate how a participant left a conference. More... | |
enum | State { State::Joining = 0, State::Present = 1, State::Leaving = 2, State::Left = 3, State::ScheduledForJoining = 4, State::ScheduledForLeaving = 5, State::OnHold = 6, State::Alerting = 7, State::MutedByFocus = 8, State::RequestingToJoin = 9 } |
State is used to list all states a participant device can be in More... | |
Public Member Functions | |
LINPHONECXX_PUBLIC | ParticipantDevice (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneParticipantDevice * | cPtr () |
LINPHONECXX_PUBLIC void | addListener (const std::shared_ptr< ParticipantDeviceListener > &listener) |
Add an application listener to the ParticipantDevice instance. More... | |
LINPHONECXX_PUBLIC void | removeListener (const std::shared_ptr< ParticipantDeviceListener > &listener) |
Remove a previously added listener from the ParticipantDevice instance. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > | getAddress () const |
Gets the address of a participant's device. More... | |
LINPHONECXX_PUBLIC DisconnectionMethod | getDisconnectionMethod () const |
Gets the disconnection method. More... | |
LINPHONECXX_PUBLIC std::string | getDisconnectionReason () const |
Gets the disconnection reason. More... | |
LINPHONECXX_PUBLIC bool | isInConference () const |
Returns whether the participant device is in a conference or not. More... | |
LINPHONECXX_PUBLIC bool | getIsMuted () const |
Returns whether the participant device is muted or not. More... | |
LINPHONECXX_PUBLIC bool | getIsSpeaking () const |
Returns whether the participant device is speaking or not. More... | |
LINPHONECXX_PUBLIC JoiningMethod | getJoiningMethod () const |
Gets the joining method or it the device is the focus owner. More... | |
LINPHONECXX_PUBLIC std::string | getName () const |
Returns the name of the device. More... | |
LINPHONECXX_PUBLIC void * | getNativeVideoWindowId () const |
Gets the native window ID where video for this participant device is to be rendered. More... | |
LINPHONECXX_PUBLIC void | setNativeVideoWindowId (void *windowId) |
Sets the the native window ID where video for this participant device is to be rendered. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Participant > | getParticipant () const |
Returns the Participant this ParticipantDevice belongs to. More... | |
LINPHONECXX_PUBLIC bool | screenSharingEnabled () const |
Returns whether the participant device is screen sharing or not. More... | |
LINPHONECXX_PUBLIC linphone::ChatRoom::SecurityLevel | getSecurityLevel () const |
Gets the security level of a participant's device. More... | |
LINPHONECXX_PUBLIC State | getState () const |
Gets the state of a participant device. More... | |
LINPHONECXX_PUBLIC uint32_t | getThumbnailSsrc () const |
Get the thumbnail stream SSRC of the device. More... | |
LINPHONECXX_PUBLIC bool | getThumbnailStreamAvailability () const |
Gets the thumbnail stream availability of the device. More... | |
LINPHONECXX_PUBLIC linphone::MediaDirection | getThumbnailStreamCapability () const |
Gets the thumbnail stream capability of the device. More... | |
LINPHONECXX_PUBLIC std::string | getThumbnailStreamLabel () const |
Gets the thumbnail stream label of the device. More... | |
LINPHONECXX_PUBLIC time_t | getTimeOfDisconnection () const |
Gets the timestamp the device left a conference. More... | |
LINPHONECXX_PUBLIC time_t | getTimeOfJoining () const |
Gets the timestamp the device joined a conference. More... | |
LINPHONECXX_PUBLIC void * | createNativeVideoWindowId (void *context) |
Creates a window ID and return it. More... | |
LINPHONECXX_PUBLIC void * | createNativeVideoWindowId () |
Creates a window ID and return it. More... | |
LINPHONECXX_PUBLIC uint32_t | getSsrc (linphone::StreamType streamType) const |
Get the audio stream SSRC of the device. More... | |
LINPHONECXX_PUBLIC bool | getStreamAvailability (linphone::StreamType streamType) const |
Gets the stream availability of the device. More... | |
LINPHONECXX_PUBLIC linphone::MediaDirection | getStreamCapability (linphone::StreamType streamType) const |
Gets the stream capability of the device. More... | |
LINPHONECXX_PUBLIC std::string | getStreamLabel (linphone::StreamType streamType) const |
Gets the stream label of the device. More... | |
This object represents a unique device for a member of a Conference or ChatRoom.
Devices are identified by the gruu parameter inside the Address which can be obtained by getAddress(). It is specially usefull to know the security level of each device inside an end-to-end encrypted ChatRoom. You can get a list of all ParticipantDevice using Participant::getDevices().
|
strong |
DisconnectionMethod is used to indicate how a participant left a conference.
|
strong |
JoiningMethod is used to indicate how a participant joined a conference or if it is the focus.
Enumerator | |
---|---|
DialedIn | device called the conference |
DialedOut | device is called the conference |
FocusOwner | device is the focus |
|
strong |
State is used to list all states a participant device can be in
LINPHONECXX_PUBLIC void linphone::ParticipantDevice::addListener | ( | const std::shared_ptr< ParticipantDeviceListener > & | listener | ) |
Add an application listener to the ParticipantDevice instance.
listener | the application listener |
LINPHONECXX_PUBLIC void* linphone::ParticipantDevice::createNativeVideoWindowId | ( | void * | context | ) |
Creates a window ID and return it.
context | preallocated Window ID (Used only for MSOGL) |
LINPHONECXX_PUBLIC void* linphone::ParticipantDevice::createNativeVideoWindowId | ( | ) |
Creates a window ID and return it.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::ParticipantDevice::getAddress | ( | ) | const |
Gets the address of a participant's device.
LINPHONECXX_PUBLIC DisconnectionMethod linphone::ParticipantDevice::getDisconnectionMethod | ( | ) | const |
Gets the disconnection method.
LINPHONECXX_PUBLIC std::string linphone::ParticipantDevice::getDisconnectionReason | ( | ) | const |
Gets the disconnection reason.
LINPHONECXX_PUBLIC bool linphone::ParticipantDevice::getIsMuted | ( | ) | const |
Returns whether the participant device is muted or not.
LINPHONECXX_PUBLIC bool linphone::ParticipantDevice::getIsSpeaking | ( | ) | const |
Returns whether the participant device is speaking or not.
LINPHONECXX_PUBLIC JoiningMethod linphone::ParticipantDevice::getJoiningMethod | ( | ) | const |
Gets the joining method or it the device is the focus owner.
LINPHONECXX_PUBLIC std::string linphone::ParticipantDevice::getName | ( | ) | const |
Returns the name of the device.
LINPHONECXX_PUBLIC void* linphone::ParticipantDevice::getNativeVideoWindowId | ( | ) | const |
Gets the native window ID where video for this participant device is to be rendered.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Participant> linphone::ParticipantDevice::getParticipant | ( | ) | const |
Returns the Participant this ParticipantDevice belongs to.
LINPHONECXX_PUBLIC linphone::ChatRoom::SecurityLevel linphone::ParticipantDevice::getSecurityLevel | ( | ) | const |
Gets the security level of a participant's device.
LINPHONECXX_PUBLIC uint32_t linphone::ParticipantDevice::getSsrc | ( | linphone::StreamType | streamType | ) | const |
Get the audio stream SSRC of the device.
streamType | A StreamType |
LINPHONECXX_PUBLIC State linphone::ParticipantDevice::getState | ( | ) | const |
Gets the state of a participant device.
LINPHONECXX_PUBLIC bool linphone::ParticipantDevice::getStreamAvailability | ( | linphone::StreamType | streamType | ) | const |
Gets the stream availability of the device.
The availability information represents whether a given stream type is currently available to be presented in the conference for a ParticipantDevice
streamType | A StreamType |
LINPHONECXX_PUBLIC linphone::MediaDirection linphone::ParticipantDevice::getStreamCapability | ( | linphone::StreamType | streamType | ) | const |
Gets the stream capability of the device.
The capability information represents the capability for the #ParticipantDevice to handle a given stream type (audio, video or text).
streamType | A StreamType |
LINPHONECXX_PUBLIC std::string linphone::ParticipantDevice::getStreamLabel | ( | linphone::StreamType | streamType | ) | const |
Gets the stream label of the device.
The capability information represents the capability for the #ParticipantDevice to handle a given stream type (audio, video or text).
streamType | A StreamType |
LINPHONECXX_PUBLIC uint32_t linphone::ParticipantDevice::getThumbnailSsrc | ( | ) | const |
Get the thumbnail stream SSRC of the device.
LINPHONECXX_PUBLIC bool linphone::ParticipantDevice::getThumbnailStreamAvailability | ( | ) | const |
Gets the thumbnail stream availability of the device.
The availability information represents whether a given stream type is currently available to be presented in the conference for a ParticipantDevice
LINPHONECXX_PUBLIC linphone::MediaDirection linphone::ParticipantDevice::getThumbnailStreamCapability | ( | ) | const |
Gets the thumbnail stream capability of the device.
LINPHONECXX_PUBLIC std::string linphone::ParticipantDevice::getThumbnailStreamLabel | ( | ) | const |
Gets the thumbnail stream label of the device.
LINPHONECXX_PUBLIC time_t linphone::ParticipantDevice::getTimeOfDisconnection | ( | ) | const |
Gets the timestamp the device left a conference.
LINPHONECXX_PUBLIC time_t linphone::ParticipantDevice::getTimeOfJoining | ( | ) | const |
Gets the timestamp the device joined a conference.
LINPHONECXX_PUBLIC bool linphone::ParticipantDevice::isInConference | ( | ) | const |
Returns whether the participant device is in a conference or not.
LINPHONECXX_PUBLIC void linphone::ParticipantDevice::removeListener | ( | const std::shared_ptr< ParticipantDeviceListener > & | listener | ) |
Remove a previously added listener from the ParticipantDevice instance.
listener | the application listener |
LINPHONECXX_PUBLIC bool linphone::ParticipantDevice::screenSharingEnabled | ( | ) | const |
Returns whether the participant device is screen sharing or not.
LINPHONECXX_PUBLIC void linphone::ParticipantDevice::setNativeVideoWindowId | ( | void * | windowId | ) |
Sets the the native window ID where video for this participant device is to be rendered.
windowId | the window ID of the device |