johndyer/mediaelement — Issue #303: Audio: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
Author: dwynne
Created: 2011-11-16 12:02:01+00:00
State: open

I'm getting an intermittent problem playing MP3's in FF (thus using Flash fallback). Occasionally Flash throws up the following error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at htmlelements::AudioElement/load()[D:\git\mediaelement\github\src\flash\htmlelements\AudioElement.as:150]
at htmlelements::AudioElement/play()[D:\git\mediaelement\github\src\flash\htmlelements\AudioElement.as:177]
at FlashMediaElement/playMedia()[D:\git\mediaelement\github\src\flash\FlashMediaElement.as:315]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flash.external::ExternalInterface$/_callIn()
at Function/()
at flash.external::ExternalInterface$/_evalJS()
at flash.external::ExternalInterface$/call()
at FlashMediaElement()[D:\git\mediaelement\github\src\flash\FlashMediaElement.as:199]

Here's what I'm doing:

```html

```

```javascript
var mediaElement = new MediaElement("myAudio", {
type: ["audio/mp3"],
success: function (me) {
me.setSrc([{ src: "/audio.mp3", type: "audio/mp3"}]);
me.load();
me.play();
}
});
```

It seems like a sure fire way to get it to occur is clear the browser cache, close browser, open site fresh. It seems less frequent once the audio file has been cached, but does still occasionally happen.

Tried adding a "canplay" event listner, and not calling play() until that fires - but that doesn't seem to make any difference.
Tried a couple of different MP3's thinking it might a problem with the encoding or something, but that doesn't seem to make any difference.

Am I doing something wrong?

Using version 2.3.2 of ME and 8.0 of FF.