RTMPStreamDelegate
public protocol RTMPStreamDelegate : AnyObject
The interface a RTMPStream uses to inform its delegate.
-
Tells the receiver to publish insufficient bandwidth occured.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, publishInsufficientBWOccured connection: RTMPConnection)
-
Tells the receiver to publish sufficient bandwidth occured.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, publishSufficientBWOccured connection: RTMPConnection)
-
Tells the receiver to playback an audio packet incoming.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, didOutput audio: AVAudioBuffer, presentationTimeStamp: CMTime)
-
Tells the receiver to playback a video packet incoming.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, didOutput video: CMSampleBuffer)
-
Tells the receiver to update statistics.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, updatedStats connection: RTMPConnection)
-
Tells the receiver to session was interrupted.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, sessionWasInterrupted session: AVCaptureSession, reason: AVCaptureSession.InterruptionReason)
-
Tells the receiver to session interrupted ended.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, sessionInterruptionEnded session: AVCaptureSession, reason: AVCaptureSession.InterruptionReason)
-
Tells the receiver to video codec error occured.
Declaration
Swift
func rtmpStream(_ stream: RTMPStream, videoCodecErrorOccurred error: VideoCodec.Error)
-
Tells the receiver to the stream opend.
Declaration
Swift
func rtmpStreamDidClear(_ stream: RTMPStream)