Skip to content

mm.parseBuffer throws error this.buf.copy is not a function #850

@polisen

Description

@polisen

Bug description
mm.parseBuffer throws error this.buf.copy is not a function

Expected behavior
correct execution

Any insight would be greatly appreciated.
The files underlying format, encoding, etc has been confirmed to be mp3.

    console.log('file :>> ', file);
      (async () => {
        try {
          const buffer = await file.arrayBuffer()
          console.log(buffer)
          const metadata = await mm.parseBuffer(file, 'audio/mpeg');
          console.log(metadata);
        } catch (error) {
          console.error(error.message);
        }
      })();

Screenshot 2021-07-16 at 14 37 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions