tomashanacek / screen-recorder

OS X screen recording library for Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen recorder

OS X screen recording library for Node

Installation

npm install screen-recorder

Example

var ScreenRecorder = require('screen-recorder').ScreenRecorder
var path = require('path')

var movie = new ScreenRecorder(path.resolve(__dirname, 'test.mp4')) // [, displayId]
movie.setCapturesMouseClicks(true)
movie.setCropRect(0, 0, 500, 500)
movie.setFrameRate(30) // default is 15
movie.recordAudio()
movie.start()

setTimeout(function() {
  movie.stop()
}, 10000)

About

OS X screen recording library for Node

License:MIT License


Languages

Language:Objective-C++ 46.8%Language:Objective-C 30.7%Language:C++ 11.8%Language:Python 5.9%Language:JavaScript 4.8%