johndyer/mediaelement — Issue #388: Download buffer broken when using setSrc with flash
Author: bartels
Created: 2012-02-11 23:20:39+00:00
State: open

The player displays a progress indicator to show how much of the source file has been downloaded/buffered. If you begin playing a file and then call `setSrc` to load a new file before the old one has finished downloading, the buffer progress from the old file still seems to be triggered along with the new one. This causes the progress indicator to visually jump back and forth between the old and new positions as if the player is trying to show the buffer progress for both files simultaneously.

This only seems to happen with flash player and not with native html5, so I'm guessing this bug may be in the flash element itself. Possibly some events are not cleaned up when `setSrc` is called. Also, I'm noticing this when playing mp3s, so I'm not certain if this bug effects video sources as well, or only audio sources.