music-metadata: Safari parseBlob failure

Is there an existing issue for this?

  • I have searched the existing issues

music-metadata version

10.2.0

Current Behavior

When parsing a blob with Safari, I get the following error:

TypeError: ReadableStreamBYOBReader needs a ReadableByteStreamController

Expected Behavior

No response

Attached audio sample?

  • I have provided sufficient information to reproduce the issue

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Not sure if you folks are keeping the issue open for a specific reason, but tried the latest version of the library and Audio Tag Analyzer now and it works wonderfully!

Thanks for letting me know @sleepyfran, I did not know, and I am glad to hear it, as I spend many hours resolving this issue by implementing a dual Reader both, support BYOB and default, deep down in the dependency tree. But unable to test it myself with Safari.

Do you have the same issue here using Safari?

A workaround is:


import {parseBuffer} from 'music-metadata';

let blob; // Assume this Blob is assigned

const metadata = await parseBuffer(await blob.bytes()), {mimeType: blob.type});

(I have not tested it)

Ref: