ParticipantDeviceDelegate

public protocol ParticipantDeviceDelegate : AnyObject
  • Callback used to notify that is this participant device speaking has changed.

    Default Implementation

    Declaration

    Swift

    func onIsSpeakingChanged(participantDevice: ParticipantDevice, isSpeaking: Bool)

    Parameters

    participantDevice

    LinphoneParticipantDevice object

    isSpeaking

    is this participant device speaking

  • onIsMuted(participantDevice:isMuted:) Default implementation

    Callback used to notify that this participant device is muted or is no longer muted.

    Default Implementation

    Declaration

    Swift

    func onIsMuted(participantDevice: ParticipantDevice, isMuted: Bool)

    Parameters

    participantDevice

    LinphoneParticipantDevice object

    isMuted

    is this participant device muted

  • Callback used to notify that participant device changed state.

    Default Implementation

    Declaration

    Swift

    func onStateChanged(participantDevice: ParticipantDevice, state: ParticipantDeviceState)

    Parameters

    participantDevice

    LinphoneParticipantDevice object

  • Callback used to notify that participant device stream capability has changed.

    Default Implementation

    Declaration

    Swift

    func onStreamCapabilityChanged(participantDevice: ParticipantDevice, direction: MediaDirection, streamType: StreamType)

    Parameters

    participantDevice

    LinphoneParticipantDevice object

    direction

    participant device’s audio direction

  • Callback used to notify that participant device stream availability has changed.

    Default Implementation

    Declaration

    Swift

    func onStreamAvailabilityChanged(participantDevice: ParticipantDevice, available: Bool, streamType: StreamType)

    Parameters

    participantDevice

    LinphoneParticipantDevice object

  • Callback to notify that there are errors from the video rendering of the participant device. Check LinphoneCallCbsVideoDisplayErrorOccurredCb for more details.

    Default Implementation

    Declaration

    Swift

    func onVideoDisplayErrorOccurred(participantDevice: ParticipantDevice, errorCode: Int)

    Parameters

    participantDevice

    LinphoneParticipantDevice object

    errorCode

    the error code coming from the display render.