Git Product home page Git Product logo

screenrecorderwithaudio's Introduction

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.

screenrecorderwithaudio's People

Contributors

ajaysainisd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

screenrecorderwithaudio's Issues

Microphone stops working once application got killed (when we open application second time).

  • Hello first of all thanks for such wonderful repo

I'm facing one issue in this, once i kill the application and start performing screen recording recording of the screen working fine but the Audio from microphone isn't getting captured.

Regeneration :

  1. install Application
  2. click on Start recording button
  3. Allow "Record screen & MicroPhone" in permission popup
  4. start capturing screen(first Attempt : Working Fine and video will be seen with Audio when we click on "View recording" button)
  5. Kill the Application
  6. perform same operation
  7. when we click on view recording now Audio from microphone won't get captured.

Sometimes generated file is of zero bytes

Sometimes the file is of zero bytes of the url which is generated. Mostly it happens when the video I recorded is of almost one seconds.
I would really appreciate any help of pointer on this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.