startCapture(completionHandler:)
Starts the stream with a callback to indicate whether it successfully starts.
Declaration
func startCapture(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func startCapture() async throwsParameters
- completionHandler:
A completion handler that provides an error if the stream fails to start.