Skip to content

notedit/mac-screen-share

 
 

Repository files navigation

@indutny/mac-screen-share

npm

Bindings for macOS ScreenCaptureKit.

Installation

npm install @indutny/mac-screen-share

Usage

import { Stream } from '@indutny/mac-screen-share';

const stream = new Stream({
  width: 1024,
  height: 768,
  frameRate: 10,

  onStart() {},
  onStop(error) {},
  onFrame(frame, width, height, timestamp) {
    // Frame is in Nv12 encoding
    // timestamp is in seconds (not a unix epoch time)
  },
});

// Later
stream.stop();

LICENSE

This software is licensed under the MIT License.

About

Bindings for macOS ScreenCaptureKit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Objective-C++ 78.5%
  • JavaScript 10.3%
  • Objective-C 4.2%
  • HTML 3.5%
  • Python 3.5%