Front-end
Mac
Mac
  • README
  • ScreenCaptureKit
    • API
      • SCShareableContent
        • [检索共享内容]Retrieving shareable content
        • [共享内容对象]Inspecting shareable content
        • [类型方法]Type Methods
      • Content capture[内容捕获]
        • SCStream[流]
        • SCStreamConfiguration
        • SCContentFilter
        • CSStreamDeleagate
        • SCScreenshotmanger
      • output processing [输出程序]
        • SCStreamOutput
        • SCStreamOutputType
        • SCStreamFrameInfo
        • SCFrameStatus
      • system content-sharing picker[系统内容共享选择器]
        • SCContentSharingPicker
        • SCContentSharingPickerConfiguration
        • SCContentSharingPickerMode
        • SCContentSharingPickerObserver
      • Stream errors
        • SCStreamError
  • Project
    • cut studio
  • issue
    • issue
  • 额外工具
    • Create-dmg
Powered by GitBook
On this page
  1. ScreenCaptureKit
  2. API
  3. Content capture[内容捕获]

CSStreamDeleagate

@available(macOS 12.3, *)
public protocol SCStreamDelegate : NSObjectProtocol {
    
// 《1》Responding to Presenter Overlay 回应显示着的叠加
    @available(macOS 14.0, *)
    optional func outputVideoEffectDidStart(for stream: SCStream)
    @available(macOS 14.0, *)
    optional func outputVideoEffectDidStop(for stream: SCStream)


// 《2》Responding to stream stoppage 响应流的故障
    optional func stream(_ stream: SCStream, didStopWithError error: any Error)

    //  《3》 Instance Methods 实例的方法,流是通过用户通过控制中心模块来停止的(即为认为停止的—— 正常停止状态)
    @available(macOS 14.4, *)
    optional func userDidStopStream(_ stream: SCStream)
}
PreviousSCContentFilterNextSCScreenshotmanger

Last updated 1 year ago