https://github.com/indutny/mac-screen-share
Bindings for macOS ScreenCaptureKit.
https://github.com/indutny/mac-screen-share
Last synced: 8 days ago
JSON representation
Bindings for macOS ScreenCaptureKit.
- Host: GitHub
- URL: https://github.com/indutny/mac-screen-share
- Owner: indutny
- License: mit
- Created: 2024-09-25T04:01:23.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-20T03:26:19.000Z (about 1 month ago)
- Last Synced: 2025-04-11T17:12:35.390Z (11 days ago)
- Language: Objective-C++
- Homepage:
- Size: 119 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @indutny/mac-screen-share
[](https://www.npmjs.com/package/@indutny/mac-screen-share)
Bindings for macOS ScreenCaptureKit.
## Installation
```sh
npm install @indutny/mac-screen-share
```## Usage
```js
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.