IOStreamDelegate
public protocol IOStreamDelegate : AnyObject
The interface an IOStream uses to inform its delegate.
-
Tells the receiver to an audio buffer incoming.
Declaration
Swift
func stream(_ stream: IOStream, track: UInt8, didInput buffer: AVAudioBuffer, when: AVAudioTime)
-
Tells the receiver to a video buffer incoming.
Declaration
Swift
func stream(_ stream: IOStream, track: UInt8, didInput buffer: CMSampleBuffer)
-
Tells the receiver to video error occured.
Declaration
Swift
func stream(_ stream: IOStream, videoErrorOccurred error: IOVideoUnitError)
-
Tells the receiver to audio error occured.
Declaration
Swift
func stream(_ stream: IOStream, audioErrorOccurred error: IOAudioUnitError)