-
-
Notifications
You must be signed in to change notification settings - Fork 620
Moving from 1.5.5 APIs to 1.5.6
shogo4405 edited this page Aug 9, 2023
·
1 revision
/// The interface a RTMPStream uses to inform its delegate.
public protocol RTMPStreamDelegate: AnyObject {
#if os(iOS)
/// Tells the receiver to session was interrupted.
func rtmpStream(_ stream: RTMPStream, sessionWasInterrupted session: AVCaptureSession, reason: AVCaptureSession.InterruptionReason)
/// Tells the receiver to session interrupted ended.
func rtmpStream(_ stream: RTMPStream, sessionInterruptionEnded session: AVCaptureSession, reason: AVCaptureSession.InterruptionReason)
#endif
}
/// The interface a NetStream uses to inform its delegate.
public protocol NetStreamDelegate: AnyObject {
#if os(iOS)
/// Tells the receiver to session was interrupted.
func stream(_ stream: NetStream, sessionWasInterrupted session: AVCaptureSession, reason: AVCaptureSession.InterruptionReason?)
/// Tells the receiver to session interrupted ended.
func stream(_ stream: NetStream, sessionInterruptionEnded session: AVCaptureSession)
#endif
}
HaishinKit.swift | 🇬🇧 HaishinKit.kt | 🇯🇵 Zenn