All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Gapless.js: JavaScript Plugin for Seamless Audio Playback on the Web

By

switz

3mo ago· 5 min readenCode

Summary

Gapless.js is a JavaScript plugin for seamless audio playback on the web that uses HTML5 audio and Web Audio API to enable gapless transitions between tracks. Built for Relisten.net to handle live music playback, it features a simple API, minimal dependencies (only xstate for state management), and is designed for easy implementation with clear documentation and a live demo available.

Key quotes

· 5 pulled
Gapless audio player for the web. Takes an array of audio tracks and uses HTML5 audio with the Web Audio API to enable seamless, gapless transitions between tracks.
Though the earnest goal is not bundle-size driven, it has only one production dependency (xstate) so it operates in a rigid manner according to a well-designed state machine.
It has a dead simple API and is easy to get up and running.
Built for Relisten.net, where playing back gapless live tracks is paramount.
const player = new Queue({ tracks: [] })
Snippet from the RSS feed
Gapless audio playback javascript plugin (for seamless audio playback) - RelistenNet/gapless.js

You might also wanna read