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

No suitable tag reader found #161

Open
NivEz opened this issue Apr 13, 2022 · 0 comments
Open

No suitable tag reader found #161

NivEz opened this issue Apr 13, 2022 · 0 comments

Comments

@NivEz
Copy link

NivEz commented Apr 13, 2022

I am trying to read the metadata of an mp3 file in the browser.
It works fine for most of the files.
In some files it throws the error No suitable tag reader found.
Note that I use the native HTML file input.
Why in most of the files it works and in some others it does not?

const getSongMetaData = file => {
	return new Promise((resolve, reject) => {
		jsmediatags.read(new Blob(URL.createObjectURL(file)), {
			onSuccess: result => {
				resolve(result.tags);
			},
			onError: error => {
				console.log('-> error', error);
				reject(error);
			},
		});
	});
};
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

1 participant