NetStreamDelegate
public protocol NetStreamDelegate : AnyObject
The interface a NetStream uses to inform its delegate.
-
Tells the receiver an audio packet incoming.
Declaration
Swift
func stream(_ stream: NetStream, didOutput audio: AVAudioBuffer, when: AVAudioTime)
-
Tells the receiver to playback a video incoming.
Declaration
Swift
func stream(_ stream: NetStream, didOutput video: CMSampleBuffer)
-
Tells the receiver to video error occured.
Declaration
Swift
func stream(_ stream: NetStream, videoErrorOccurred error: IOVideoUnitError)
-
Tells the receiver to audio error occured.
Declaration
Swift
func stream(_ stream: NetStream, audioErrorOccurred error: IOAudioUnitError)
-
Tells the receiver to the stream opened.
Declaration
Swift
func streamDidOpen(_ stream: NetStream)