Skip to content

Ajaysainisd/ScreenRecorderWithAudio

Repository files navigation

Screen Recorder With Audio

This is a wrapper for screen recording with audio on iOS with ReplayKit2 using Swift.

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

ScreenRecorderWithAudio is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ScreenRecorderWithAudio'

Usage

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()

Features

  • Record Screen with audio from microphone or playing audio from device speaker
  • Set output quality as you wish

Contributions

Please feel free to contribute to the project :)

Author

Ajaysainisd, [email protected]

License

ScreenRecorderWithAudio is available under the MIT license. See the LICENSE file for more info.

About

Screen recorder with audio iOS swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published