ScreenRecorderWithAudio
这是 iOS 上带有 ReplayKit2 的屏幕录制(带音频)的包装器。
示例
要运行示例项目,请先克隆仓库,然后在 Example 目录中首先运行 pod install
需求
安装
ScreenRecorderWithAudio 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'ScreenRecorderWithAudio'
使用
创建一个屏幕录制协调器变量
let screenRecorder = ScreenRecordCoordinator()
设置录制质量
screenRecorder.screenRecorder.recordingQua = .high
屏幕录制抽象为一个单函数
screenRecorder.startRecording(recordingHandler: { (error) in
print("Recording in progress")
}) { (error) in
print("Recording Complete")
}
也有一个单一的停止行
screenRecorder.stopRecording()
获取录制文件的路径
ReplayFileUtil.filePath()
功能
- 使用麦克风中录入音频或从设备扬声器播放音频进行屏幕录制
- 设置您希望的输出质量
捐赠
请自由地为此项目做出贡献 :)
作者
Ajaysainisd, [email protected]
许可证
ScreenRecorderWithAudio 在MIT许可证下可用。更多信息请参阅LICENSE文件。