Skip to navigation

VIBroadcastDelegate

VoximplantCalls · iOS SDK v3

View as Markdown

Delegate that may be used to handle broadcast screen sharing events.

@objc protocol VIBroadcastDelegate

Methods

broadcast(_:didConnectWithHeaders:)

@objc func broadcast(_ broadcast: VIBroadcast, didConnectWithHeaders headers: [String : String]?)

Triggered after a broadcast has been successfully connected to a conference.

Parameters

broadcast VIBroadcast

Broadcast instance

headers [String : String]?

Optional headers passed with the event

broadcast(_:didDisconnectWithReason:headers:)

@objc func broadcast(
    _ broadcast: VIBroadcast,
    didDisconnectWithReason reason: VIBroadcastDisconnectReason,
    headers: [String : String]?
)

Triggered after a broadcast has been disconnected.

Parameters

broadcast VIBroadcast

Broadcast instance

reason VIBroadcastDisconnectReason

Reason that the broadcast ended

headers [String : String]?

Optional headers passed with the event

broadcast(_:didFailWithError:headers:)

@objc func broadcast(
    _ broadcast: VIBroadcast,
    didFailWithError error: VICallConnectionError,
    headers: [String : String]?
)

Triggered if a broadcast failed.

Parameters

broadcast VIBroadcast

Broadcast instance

error VICallConnectionError

Error object with code and description

headers [String : String]?

Optional headers passed with the event

broadcastDidReconnect(_:)

@objc optional func broadcastDidReconnect(_ broadcast: VIBroadcast)

Triggered if the connection to the Voximplant Cloud is restored and media stream are active.

Parameters

broadcast VIBroadcast

Broadcast instance

broadcastDidStartReconnecting(_:)

@objc optional func broadcastDidStartReconnecting(_ broadcast: VIBroadcast)

Triggered if the connection to the Voximplant Cloud is lost due to a network issue and media streams may be interrupted.

Parameters

broadcast VIBroadcast

Broadcast instance