参考demo AppleVideoCapturer
核心类
An object that manages capture activity and coordinates the flow of data from input devices to capture outputs.
A device that provides input (such as audio or video) for capture sessions and offers controls for hardware-specific capture features.
A capture input that provides media from a capture device to a capture session.
A capture output that records video and provides access to video frames for processing.
A connection between a specific pair of capture input and capture output objects in a capture session.
A Core Animation layer that displays the video as it’s captured.
步骤
- 创建 captureSession
- 配置captureSession,添加Input和output
- 开始采集startRunning
网友评论