cwilso / WebMIDIAPIShim

Polyfill using the Jazz NPAPI MIDI plugin to implement the Web MIDI API on Mac and Windows.
380 stars 53 forks source link

Resources Not Found #2

Closed nick-thompson closed 11 years ago

nick-thompson commented 11 years ago

Hey Chris,

I get these two 404's from my local dev server when I try loading up the WebMIDIAPIShim:

localhost - - [29/Oct/2012 21:04:33] "GET /lib/net/abumarkub/midi/MIDIApplet.class HTTP/1.1" 404 - localhost - - [29/Oct/2012 21:04:33] "GET /lib/net/abumarkub/midi/MIDIApplet/class.class HTTP/1.1" 404 -

Those files don't appear to be part of this repo, or your fork of MIDIBridge, and I'm not sure where else i might look to find them, but it's breaking the shim on my machine :(

cwilso commented 11 years ago

Hey Nick - what browser and OS are you running?

nick-thompson commented 11 years ago

Ah, sorry, should've put that in my first post. That's running the latest stable release of Chrome on OS X 10.6.8.

cwilso commented 11 years ago

OK, that's just odd.

That shouldn't be requested like that; that's the name of the MIDIBridge Java class. This is from a straight copy of the WebMIDIAPIShim? (I.e. you didn't modify it at all?) Do you already have Java enabled on the browser? (chrome://plugins/ should show Java in the list, as enabled.)

Can you open up the dev tools (option-command-I), go to "Elements", look for "

", open it up and check to make sure it contains

<applet id="midibridge-applet" code="net.abumarkub.midi.MIDIApplet.class" archive="midiapplet-0.6.3.jar" codebase="lib" width="1" height="1" mayscript="">

Java is picky about the 'lib' directory... might be related to that.

-C

On Tue, Oct 30, 2012 at 9:17 AM, Nick Thompson notifications@github.comwrote:

Ah, sorry, should've put that in my first post. That's running the latest stable release of Chrome on OS X 10.6.8.

— Reply to this email directly or view it on GitHubhttps://github.com/cwilso/WebMIDIAPIShim/issues/2#issuecomment-9911966.

nick-thompson commented 11 years ago

Hm.. So I found this error using the equipment in a computer lab on campus (I'm a student, and my midi controllers aren't currently with me at school), and when I returned to that lab to inspect the error after your last comment, the shim loaded perfectly. I have no idea what may have changed, except that I'm sure the computer I was using was restarted in between uses. Both cases were an exact copy of the WebMIDIAPIShim (no modifications), and I also tried with an exact copy of your midi-synth project. (Both projects encountered this problem yesterday, and neither of them today).

So either something changed on that computer in between trials, or I was doing something wrong the first time. Either way it's probably safe to assume your project is ok. I'll close this thread, and if I see any similar issues in the future I'll make sure to let you know. Sorry to bother you!

cwilso commented 11 years ago

Weird. Maybe the UA string was switched on it, or something.