UNPKG

@indutny/mac-screen-share

Version:

ScreenCaptureKit bindings for Node.js

24 lines (19 loc) 419 B
class FallbackStream { constructor() { throw new Error('Not supported on this platform'); } stop() { throw new Error('Not supported on this platform'); } } exports.isSupported = false; exports.Stream = FallbackStream; try { const { Stream } = require('bindings')('mac-screen-share'); if (Stream) { exports.Stream = Stream; exports.isSupported = true; } } catch { // Windows, Linux }