CustomFrameVideoSource
class CustomFrameVideoSource : VideoSource画像フレームの映像入力ソース
CMSampleBufferの画像フレームをループ内からアップデートして描画を行います。
ReplayKitと組み合わせることでアプリの画面をソースにして画面共有が行えます。
let source: CustomFrameVideoSource = .init()
RPScreenRecorder.shared().startCapture { buffer, _, err in
    guard err == nil else {
        return
    }
    source.updateFrame(with: buffer)
} completionHandler: { _ in }
let stream = source.createStream()
- 
                  
                  Undocumented DeclarationSwift init()
- 
                  
                  画像のサンプルバッファを更新します。 DeclarationSwift func updateFrame(with sampleBuffer: CMSampleBuffer)ParameterssampleBuffer更新する画像フレームのサンプルバッファ 
- 
                  
                  Streamを作成します。 Streamの作成後にキャプチャ開始でも機能します。 DeclarationSwift func createStream() -> SKWLocalVideoStream
 CustomFrameVideoSource Class Reference
        CustomFrameVideoSource Class Reference