LOAD_STATE_NOT_SUPPORTED appears when playing MIDI

34 views
Skip to first unread message

Softhinker Qin

unread,
Sep 27, 2013, 11:38:23 AM9/27/13
to gwt-v...@googlegroups.com
Hi Fred,

I'm using gwt-voices-3.2.0.jar with GWT-2.5.1, and test it in Chrome and Firefox 24.0, however, midi file is not playing, and it gives LOAD_STATE_NOT_SUPPORTED. Please take a look at below code and advise.

// http://127.0.0.1:8888/midi/test.mid
String url = Window.Location.getProtocol() + "//" + Window.Location.getHost() + "/midi/" + midiName + ".mid";
final Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_X_MIDI, url);
this.selectedSoundList.add(sound);
...
for(Sound sound : this.selectedSoundList){
Window.alert(sound.getLoadState().toString());
sound.setVolume(80);
}

Thanks a lot!
Reply all
Reply to author
Forward
0 new messages