VideoCaptureSource
@objc
public protocol VideoCaptureSource : VideoSource
VideoCaptureSource
is an interface for various video capture sources (i.e. screen, camera, file) which can emit VideoFrame
objects.
All the APIs in this protocol can be called regardless of whether the MeetingSession.audioVideo
is started or not.
-
Start capturing on this source and emitting video frames.
Declaration
Swift
func start()
-
Stop capturing on this source and cease emitting video frames.
Declaration
Swift
func stop()
-
Add a capture source observer to receive callbacks from the source on lifecycle events which can be used to trigger UI. This observer is entirely optional.
Declaration
Swift
func addCaptureSourceObserver(observer: CaptureSourceObserver)
Parameters
observer
- New observer.
-
Remove a capture source observer.
Declaration
Swift
func removeCaptureSourceObserver(observer: CaptureSourceObserver)
Parameters
observer
- Observer to remove.