ParticipantDevice

public class ParticipantDevice : LinphoneObject

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().

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> ParticipantDevice
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Undocumented

    Declaration

    Swift

    public func addDelegate(delegate: ParticipantDeviceDelegate)
  • Undocumented

    Declaration

    Swift

    public func removeDelegate(delegate: ParticipantDeviceDelegate)
  • Get the address of a participant’s device.

    Declaration

    Swift

    public var address: Address? { get }

    Return Value

    The Address of the participant’s device

  • Gets the current LinphoneParticipantDeviceCbs.

    Declaration

    Swift

    public var currentDelegate: ParticipantDeviceDelegate? { get }

    Return Value

    The LinphoneParticipantDeviceCbs that has called the last callback.

  • Return whether the participant device is in a conference or not.

    Declaration

    Swift

    public var isInConference: Bool { get }

    Return Value

    a boolean to state whether the device is in a conference

  • Return whether the participant device is muted or not.

    Declaration

    Swift

    public var isMuted: Bool { get }

    Return Value

    true if the participant device is muted, false otherwise.

  • Return the name of the device or nil.

    Declaration

    Swift

    public var name: String { get }

    Return Value

    the name of the device or nil.

  • Set window ID for a device.

    Declaration

    Swift

    public var nativeVideoWindowId: UnsafeMutableRawPointer? { get set }

    Parameters

    windowId

    the window ID of the device
    Get window ID.

    Return Value

    the window ID of the device

  • Get the security level of a participant’s device.

    Declaration

    Swift

    public var securityLevel: ChatRoomSecurityLevel { get }

    Return Value

    The ChatRoomSecurityLevel of the device

  • Get the SSRC of the device.

    Declaration

    Swift

    public var ssrc: UInt32 { get }

    Return Value

    the SSRC of the device

  • Get the timestamp the device joined a conference.

    Declaration

    Swift

    public var timeOfJoining: time_t { get }

    Return Value

    time of joining a conference as returned by time(nullptr). For UNIX based systems it is the number of seconds since 00:00hours of the 1st of January 1970

  • Assign a user pointer to the participant’s device.

    Declaration

    Swift

    public var userData: UnsafeMutableRawPointer? { get set }

    Parameters

    userData

    The user pointer to associate with the participant’s device.
    Retrieve the user pointer associated with the participant’s device.

    Return Value

    The user pointer associated with the participant’s device.

  • Create a window ID and return it.

    Declaration

    Swift

    public func createNativeVideoWindowId() throws -> UnsafeMutableRawPointer

    Return Value

    the window ID of the device

  • Get 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

    Declaration

    Swift

    public func getStreamAvailability(streamType: StreamType) -> Bool

    Parameters

    streamType

    Return Value

    true if the stream of type stream_type is available for device, false otherwise

  • Get 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).

    Declaration

    Swift

    public func getStreamCapability(streamType: StreamType) -> MediaDirection

    Parameters

    streamType

    Return Value

    the capability of stream of type stream_type of the device