LiveKitWebRtcProvider

protocol LiveKitWebRtcProvider : BaseWebRtcProvider

Specific functions of the LiveKit implementation

  • Connect the shared Room for screen sharing only (no call delegate attached, so no call is activated).

    Declaration

    Swift

    func connectForScreenShare(serverUrl: String, rtcConfig: LiveKitRTCConfiguration?, token: String) -> Bool
  • Attach (call active) / detach (screen-share-only) the call delegate on the shared provider.

    Declaration

    Swift

    func setCallDelegate(_ delegate: (any CallModuleDelegate)?)
  • True while the shared Room is connected (call or screen-share).

    Declaration

    Swift

    func isSessionConnected() -> Bool
  • used to blur the background

    Declaration

    Swift

    func changeBackround(enabled: Bool)
  • in the case of PiP, pinned participant (if exists, otherwise last) will be in the view

    Declaration

    Swift

    func setPinParticipant(participantId: String, videoView: inout UIView?)
  • enable screen sharing

    Declaration

    Swift

    func publishScreen(enabled: Bool)
  • Starts/Stops Picture in Picture, if possible.

    Declaration

    Swift

    func startPictureInPicture()