Closed Bug 507672 Opened 15 years ago Closed 7 years ago

Gapless playback of multiple <audio> tags?

Categories

(Core :: Audio/Video: Playback, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: dholth, Unassigned)

References

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) I would like to be able to play several <audio> tags on a web page by calling the .play() method on one after the 'ended' event on another is fired. This causes very small gaps in playback. Reproducible: Always
Component: General → Video/Audio
Product: Firefox → Core
QA Contact: general → video.audio
Version: unspecified → Trunk
If gapless <audio> playback was possible then you could implement the following in the browser: http://tools.ietf.org/html/draft-pantos-http-live-streaming-01#page-11
do you have a test page to test it.
http://dingoskidneys.com/~dholth/gapful/ Expected: beautiful music Actual: gaps in the music No, I can't do any better by rearranging the JavaScript that plays the next section of the music. In Flash, gapless playback is approximated but never truly achieved by setting a high resolution timer to check when the sound is over. I want to implement a player with excellent seeking by splitting audio into many small bits, but I can't do it in HTML.
conforming...
Status: UNCONFIRMED → NEW
Ever confirmed: true
I only have a very short gap after the first ogg, the others are 100% smooth. Tested on firefox 3.5.5/Gentoo Linux.
Craig, unfortunately that's just luck. Without a way to say 'this audio must come exactly after that one' there will always be some number of missed (or, in Chrome, overlapping!) samples between sound clips.
Depends on: 664918
Blocks: 907035
This would be really nice for the Firefox OS music player. Maybe we can prioritize it for the 1.4 time frame? I looked at the Web Audio API, and unfortunately, there doesn't seem to be an easy way to handle this there, either. This might be a good opportunity for me to start hacking on the Gecko media code, provided I can find someone to help me get started.
blocking-b2g: --- → 1.4?
Not a committed feature for 1.4, so clearing nom. If you want this prioritized in a team's backlog, then feel free to email the product team with the feature request.
blocking-b2g: 1.4? → ---
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity. Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.