Package org.linphone.core
Interface ParticipantDevice
public interface ParticipantDevice
This object represents a unique device for a member of a
Devices are identified by the gruu parameter inside the
can be obtained by
security level of each device inside an end-to-end encrypted
You can get a list of all
.
Conference orChatRoom. Devices are identified by the gruu parameter inside the
Address whichcan be obtained by
getAddress(). It is specially usefull to know thesecurity level of each device inside an end-to-end encrypted
ChatRoom.You can get a list of all
ParticipantDevice using Participant.getDevices().
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ParticipantDeviceListener listener) Creates a window ID and return it.createNativeVideoWindowId(Object context) Creates a window ID and return it.Gets the address of a participant's device.Gets the disconnection method.Gets the disconnection reason.booleanReturns whether the participant device is muted or not.booleanReturns whether the participant device is speaking or not.Gets the joining method or it the device is the focus owner.getName()Returns the name of the device.longGets the native pointer used by this class to make native method calls.Gets the native window ID where video for this participant device is to be
rendered.Returns theParticipantthisParticipantDevicebelongs to.Gets the security level of a participant's device.intgetSsrc(StreamType streamType) Get the audio stream SSRC of the device.getState()Gets the state of a participant device.booleangetStreamAvailability(StreamType streamType) Gets the stream availability of the device.getStreamCapability(StreamType streamType) Gets the stream capability of the device.getStreamLabel(StreamType streamType) Gets the stream label of the device.intGet the thumbnail stream SSRC of the device.booleanGets the thumbnail stream availability of the device.Gets the thumbnail stream capability of the device.Gets the thumbnail stream label of the device.longGets the timestamp the device left a conference.longGets the timestamp the device joined a conference.Gets the object stored in this object user's databooleanReturns whether the participant device is in a conference or not.booleanisMe()Tells whether the participant device is Me.booleanReturns whether the participant device is screen sharing or not.voidremoveListener(ParticipantDeviceListener listener) voidsetNativeVideoWindowId(Object windowId) Sets the the native window ID where video for this participant device is to be
rendered.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getAddress
Gets the address of a participant's device.
- Returns:
- The
Addressof the participant's device
-
getDisconnectionMethod
ParticipantDevice.DisconnectionMethod getDisconnectionMethod()Gets the disconnection method.
- Returns:
- disconnection method
ParticipantDevice.DisconnectionMethod
-
getDisconnectionReason
Gets the disconnection reason.
- Returns:
- disconnection reason
-
isInConference
boolean isInConference()Returns whether the participant device is in a conference or not.
- Returns:
- a boolean to state whether the device is in a conference
-
isMe
boolean isMe()Tells whether the participant device is Me.
- Returns:
- true if the participant is me, false otherwise.
-
getIsMuted
boolean getIsMuted()Returns whether the participant device is muted or not.
- Returns:
- true if the participant device is muted, false otherwise.
-
getIsSpeaking
boolean getIsSpeaking()Returns whether the participant device is speaking or not.
- Returns:
- true if the participant device is speaking, false otherwise.
-
getJoiningMethod
ParticipantDevice.JoiningMethod getJoiningMethod()Gets the joining method or it the device is the focus owner.
- Returns:
- joining method or focus owner
ParticipantDevice.JoiningMethod
-
getName
Returns the name of the device.
- Returns:
- the name of the device or null.
-
getNativeVideoWindowId
Gets the native window ID where video for this participant device is to be
rendered.
- Returns:
- the window ID of the device
-
setNativeVideoWindowId
Sets the the native window ID where video for this participant device is to be
rendered.
- Parameters:
windowId- the window ID of the device
-
getParticipant
- Returns:
- the
Participantthis device belongs to
-
isScreenSharingEnabled
boolean isScreenSharingEnabled()Returns whether the participant device is screen sharing or not.
- Returns:
- true if the participant device is screen sharing, false otherwise.
-
getSecurityLevel
ChatRoom.SecurityLevel getSecurityLevel()Gets the security level of a participant's device.
- Returns:
- The
ChatRoom#SecurityLevelof the device
-
getState
ParticipantDevice.State getState()Gets the state of a participant device.
- Returns:
- The
ParticipantDevice.Stateof the device
-
getThumbnailSsrc
int getThumbnailSsrc()Get the thumbnail stream SSRC of the device.
- Returns:
- the thumbnail stream's SSRC of the device
-
getThumbnailStreamAvailability
boolean getThumbnailStreamAvailability()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 aParticipantDevice- Returns:
- true if the stream of type stream_type is available for device, false
otherwise
-
getThumbnailStreamCapability
MediaDirection getThumbnailStreamCapability()Gets the thumbnail stream capability of the device.
- Returns:
- the capability of the thumbnail stream of the device
MediaDirection
-
getThumbnailStreamLabel
Gets the thumbnail stream label of the device.
- Returns:
- the label of the thumbnail stream of the device
-
getTimeOfDisconnection
long getTimeOfDisconnection()Gets the timestamp the device left a conference.
- Returns:
- time of disconnection a conference as returned by time(nullptr). For
UNIX based systems it is the number of seconds since 00:00:00 of the 1st of
January 1970
-
getTimeOfJoining
long getTimeOfJoining()Gets the timestamp the device joined a conference.
- Returns:
- time of joining a conference expressed as a number of seconds since
00:00:00 of the 1st of January 1970
-
createNativeVideoWindowId
Creates a window ID and return it.
see:Core.setNativeVideoWindowId(java.lang.Object)for a general discussion about window
IDs.
A context can be used to prevent Linphone from allocating the container
(MSOglContextInfo for MSOGL). null if not used.
A context can be used to prevent Linphone from allocating the container
(MSOglContextInfo for MSOGL). null if not used.- Parameters:
context- preallocated Window ID (Used only for MSOGL)- Returns:
- the native video window id (type may vary depending on platform).
-
createNativeVideoWindowId
Creates a window ID and return it.
see:Core.setNativeVideoWindowId(java.lang.Object)for a general discussion about window
IDs.- Returns:
- the native video window id (type may vary depending on platform).
-
getSsrc
Get the audio stream SSRC of the device.
- Parameters:
streamType- AStreamType- Returns:
- the stream's SSRC of the device
-
getStreamAvailability
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 aParticipantDevice- Parameters:
streamType- AStreamType- Returns:
- true if the stream of type stream_type is available for device, false
otherwise
-
getStreamCapability
Gets the stream capability of the device.
The capability information represents the capability for theParticipantDevice
to handle a given stream type (audio, video or text).- Parameters:
streamType- AStreamType- Returns:
- the capability of stream of type stream_type of the device
MediaDirection
-
getStreamLabel
Gets the stream label of the device.
The capability information represents the capability for theParticipantDevice
to handle a given stream type (audio, video or text).- Parameters:
streamType- AStreamType- Returns:
- the label of stream of type stream_type of the device
-
addListener
-
removeListener
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-