I'm writing a script that plays a sound when it finds a certain element on the screen. If it finds the element it's looking for, it inserts an <embed> node in the DOM that plays the sound. I've been able to get it to work successfully if the sound is located on my webserver and I fetch it with an URL. With GreaseMonkey 0.8, I thought I'd try to load the sound file from the local drive using "GM_getResourceURL()". However, when I get back the "data" URL returned from that method, the mediatype of the data is "unknown" instead of the expected "audio/wav" or whatever is appropriate for a WAV file. I've also tried using String.replace() to change "unknown" to each of the different mediatypes specified for WAV files listed in Wikipedia's article on "WAV", but the sound doesn't play. Has anyone run into a similar issue? Any suggestions? Thanks for any help.
-- Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
