VIInAppSharingVideoSourceDelegate
VoximplantCalls · iOS SDK v3
Delegate mathods to handle in-app screen sharing video source events.
@objc protocol VIInAppSharingVideoSourceDelegate
Methods
inAppSharingVideoSource(_:didFailWith:)
@objc optional func inAppSharingVideoSource(
_ source: VIInAppSharingVideoSource,
didFailWith error: VIVideoSourceError
)
Triggered when an in-app screen sharing video source has failed to start capturing video.
Parameters
source VIInAppSharingVideoSource
In-app screen sharing video source
error VIVideoSourceError
Error object with details
inAppSharingVideoSource(_:didStop:)
@objc func inAppSharingVideoSource(
_ source: VIInAppSharingVideoSource,
didStop reason: VILocalVideoSourceStopReason
)
Triggered when an in-app screen sharing video source stops capturing a video.
Parameters
source VIInAppSharingVideoSource
In-app screen sharing video source
reason VILocalVideoSourceStopReason
Reason the local video source is stopped
inAppSharingVideoSourceDidPause(_:)
@objc optional func inAppSharingVideoSourceDidPause(_ source: VIInAppSharingVideoSource)
Triggered when an in-app screen sharing video source pauses capturing, for example, when the app enters the background.
Parameters
source VIInAppSharingVideoSource
In-app screen sharing video source
inAppSharingVideoSourceDidStart(_:)
@objc optional func inAppSharingVideoSourceDidStart(_ source: VIInAppSharingVideoSource)
Triggered when an in-app screen sharing video source starts capturing video.
Parameters
source VIInAppSharingVideoSource
In-app screen sharing video source