-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
This issue was originally filed by @bp74
What steps will reproduce the problem?
import('dart:html');
void main() {
AudioElement audio = new AudioElement("sounds/plop.ogg");
audio.on["error"].add((e) => print(e));
audio.on["canplaythrough"].add((e) => audio.play());
}
What is the expected output? What do you see instead?
The code runs fine in Dartium, but fails in Firefox (and IE when you load a mp3 file). The reason is that the webserver in the Dart Editor sets the content type to "application/octet-stream". Firefox and IE refuse the file because they expect the mime type of an ogg file or a mp3 file.
Please add more mime type for well known file types like mp3, ogg, wav, ...
What version of the product are you using? On what operating system?
Dart Editor Build 8108 32 bit, Windows 7 64 bit