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

allocation size overflow on large audio files when reading from file://... #146

Open
ghost opened this issue Jul 2, 2021 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Jul 2, 2021

I'm trying to read m3u file info from mixes that are about 200 mb and it works ok when I'm reading from the file from a web server using the http:// prefix and the path to the web server and file, but when trying to read a file from the the operating system (through the browser) i get allocation size overflow on large files. I'm developing a XUL based application using XUL based web browser as my basis, and loading the file in the browser using the file:// prefix works just fine, so it doesn't seem to be a browser limitation.

//loaded from server as web page works on large files
      var file = "nasa.mp3";

      var jsmediatags = window.jsmediatags;
      jsmediatags.read("http://192.168.1.2/"+file, {
         onSuccess: function(tag) {
            console.log(tag);
         },
         onError: function(error) {
            console.log(error);
         }

      });

      //loaded in side JS in XUL doesn't work on large files
      jsmediatags.read('file://'+file, {
         onSuccess: function(tag) {
           console.log(tag);
         },
         onError: function(error) {
           console.log(error)
      });

I'm not sure what the difference is in the background between loading the file as file:// or http:// so i don't understand what the underlying cause is.

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

0 participants