Skip to content

External buffers are not allowed #34

@josefhernandez

Description

@josefhernandez

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()
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions