mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-06-06 20:17:36 +00:00
15 lines
244 B
Swift
15 lines
244 B
Swift
#if os(macOS)
|
|
|
|
import AVFoundation
|
|
import Foundation
|
|
|
|
extension NetStream {
|
|
public func attachScreen(_ screen: AVCaptureScreenInput?) {
|
|
lockQueue.async {
|
|
self.mixer.videoIO.attachScreen(screen)
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|