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

ALAC encoded files not playing #1699

Open
bogosorter opened this issue Dec 7, 2023 · 0 comments
Open

ALAC encoded files not playing #1699

bogosorter opened this issue Dec 7, 2023 · 0 comments
Labels

Comments

@bogosorter
Copy link

The Problem

Hi there!

I used Howler in an app of mine and was warned that not all M4A files were playing. However, Howler's website says that Howler "Supports all browser-ready files: MP3, ..., M4A, ...".

After investigating for a bit, here's what I learned - not quite sure it's right, but let's hope so :)

  • Tracks encoded with ALAC and AAC use the same file extension: .m4a.
  • Tracks encoded with AAC play without any errors.
  • Tracks encoded with ALAC won't play - error code 4 is raised.
  • Error code 4 means that "The media resource indicated by the src attribute or assigned media provider object was not suitable." (quoting from the documentation).

Here's what I'd like to know:

  • Is this a known issue with Howler? If so, how might I get around it?
  • Error code 4 is also raised when the file doesn't exist in the specified track. If there really is no way to fix this issue, how can I distinguish between the file not existing and the file type not being supported?

I'm using Howler with Node. The issue is happens in both Windows and Ubuntu (couldn't test it on Mac).

Yours,
M7kra

Here are two sample files:

  • File encoded with AAC, working
  • File encoded with ALAC, not working.

Reproducible Example

No response

Reproduction Steps

const howl = new Howl({
    src: ['file://' + track.path],
    html5: true,
    autoplay: true,
    onloaderror: (id, err) => {
        // Logging error
    }
})

Possible Solution

No response

Context

No response

Howler.js Version

v2.2.3

Affected Browser(s)/Versiuon(s)

No response

@bogosorter bogosorter added the bug label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant