This is a wrapper for screen recording with audio on iOS with ReplayKit2 using Swift.
To run the example project, clone the repo, and run pod install
from the Example directory first.
ScreenRecorderWithAudio is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ScreenRecorderWithAudio'
Create a object of screenRecorder Coordinator
let screenRecorder = ScreenRecordCoordinator()
Set Recording quality
screenRecorder.screenRecorder.recordingQua = .high
Screen recording is abstracted to a single function
screenRecorder.startRecording(recordingHandler: { (error) in
print("Recording in progress")
}) { (error) in
print("Recording Complete")
}
Also a single line stop
screenRecorder.stopRecording()
Get path of recorded file
ReplayFileUtil.filePath()
- Record Screen with audio from microphone or playing audio from device speaker
- Set output quality as you wish
Please feel free to contribute to the project :)
Ajaysainisd, ajaysainisd@gmail.com
ScreenRecorderWithAudio is available under the MIT license. See the LICENSE file for more info.