Hot swapping audio src

Test source

    var audio = this.audio;

    audio.addEventListener('loadedmetadata', function() {
      audio.removeEventListener('loadedmetadata', arguments.callee, false);
      audio.volume = 0.5;
      audio.addEventListener('loadedmetadata', function() {
        finish(audio.volume === 0.5);
      }, false);
      audio.src = AWPY.sound.short.stream_url();
    }, false);

    audio.src = AWPY.sound.mini.stream_url();

Description

Audio should allow src changes without re-initializing the object.

Compatibility results are NOT shown in real-time

BrowserStatus

Copyright © 2011, SoundCloud Ltd., Tomás Senart, Yves Van Goethem

"Are We Playing Yet?" is distributed under the terms of the BSD License