npm.io
1.4.0 • Published 10 years ago

screen-recorder

Licence
MIT
Version
1.4.0
Deps
2
Vulns
0
Weekly
0
Stars
37
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

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)

Keywords