Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External buffers are not allowed #34

Open
josefhernandez opened this issue Mar 20, 2024 · 1 comment
Open

External buffers are not allowed #34

josefhernandez opened this issue Mar 20, 2024 · 1 comment

Comments

@josefhernandez
Copy link

I'm trying to use the API from electron.
When I try to capture a free I get this error

(node:1662201) UnhandledPromiseRejectionWarning: Error: In file ../src/capture_promise.cc on line 703, found error: External buffers are not allowed

The code to reproduce is simply:

 macadam.capture({
      deviceIndex: 1,
      displayMode: macadam.bmdModeHD1080p30,
      pixelFormat: macadam.bmdFormat8BitYUV,
      channels: 2, // enables audio - omit if audio is not required
      sampleRate: macadam.bmdAudioSampleRate48kHz,
      sampleType: macadam.bmdAudioSampleType16bitInteger
    }).then(function (c) {
      capture.frame()
    })
@cmhleveret
Copy link

Hi Josef - this isn't a solution but im also trying to use this package in my election app. I am struggling to install the package though. Could I ask which version of node you are using? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants