Jump to content

Gapless playback of multiple audio files in the browser


TheDcoder
 Share

Recommended Posts

Is there a way to do that? I tried several different approaches and none of them worked, the two most promising approaches I tried were:

  1. My own DIY double-buffer solution which listens for the `timeupdate` event on two audio elements and tries to start playback of the other one just a little while before the other ends, but the resolution is nowhere near high-enough for this to work.
  2. Gapless-5 - Even this fails and introduces small pauses in-between the files, even though it's supposed to work perfectly.

I was actually streaming audio which arrives in little chunks of MP3s encoded as base64, so that might make the task a bit harder. I converted the strings to Blobs in my experiments.

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...