PicnicTutorials Posted March 26, 2009 Report Posted March 26, 2009 (edited) Can you do me a favor? Can you test this on your computer with all your browsers please? It works perfect on mine in all browsers. But who knows, maybe it's only because I have the correct plugins. I "think" it's playing it with QuickTime. Here is the page. Hover over the red house in the top right corner. You should hear a baby sound if it's working for you? http://ww w.building blockshome daycare.com/enrollment-test.html Currently, I'm embedding it with this. Should this let the browser decide which media to use to play it? Thanks! <br />function EvalSound(soundobj) {<br /> var thissound= eval("document."+soundobj);<br /> thissound.Play();<br />}<br /> Edited March 26, 2009 by Eric Quote
jlhaslip Posted March 26, 2009 Report Posted March 26, 2009 Awwwwww! Cute. Works in Linux / Firefox3. Quote
PicnicTutorials Posted March 26, 2009 Author Report Posted March 26, 2009 Thanks for looking! Although, I was hoping to get a good sampling from others as well. Because the end user needs to have the correct plugins for it to play. I tried to embedd WMP but I can't seem to get that to play on mouseover and NOT autostart in FX. I'm also going to try converting the mp3 to swf and play it with flash. That would aleviate my problem also. Or there is also swfSound - but that's a bit much for one simple sound effect. Quote
LSW Posted March 26, 2009 Report Posted March 26, 2009 Chrome just showed me the HTML... no multimedia and not a peep that anything is there at all. Safari showed the HTML and notified me that there is something there but cannot be played. Safari cannot find the Internet Plug-inThe Page has content of an unspecified MIME type. Because you don't have a plugin for this Mime type, the content cannot be shown. Not the exact wording but close enough. I think you need to check deeper into the MIME type for that content and the browsers may auto download or at least ask. IE7 complained that the MIME type is associated with another program and not Quicktime, shall it do so. I said No, and it said "du kannst mich mal" and refused to show me the thing. Firefox, like Chrome, said nothing and just let we look at the HTML wondering what was to be special about it. No notice of missing plugins at all, not even an indication that I am missing anything. Opera unfortunately is not working on my work machine at this time. Quote
PicnicTutorials Posted March 26, 2009 Author Report Posted March 26, 2009 That's sad. I really like the effect, but I'm not having much luck finding a cross computer method. Seems like embedding WMP is the way to go but I cant get that to work in all. I've tried like about fifety different pieces of code so far. Quote
PicnicTutorials Posted March 27, 2009 Author Report Posted March 27, 2009 (edited) Well I found the cross computer way. But putting it to use is the next trick. Play the mp3 with flash. Either one of these... http://www.schillmania.com/projects/soundmanager/ http://www.schillmania.com/projects/soundmanager2/ http://code.google.com/p/swfsound/ Tutorials on them http://www.sitepoint.com/article/flash-anthology-5-sound-effects/5/ http://www.boutell.com/newfaq/creating/scriptsound.html Edited March 27, 2009 by Eric Quote
virtual Posted March 27, 2009 Report Posted March 27, 2009 Sorry hit the button too soon, It works fine in Safari and Opera on the Mac, but not in Firefox3. I had an issue with playing media cross browser and cross platform and finally settled for Flash. Quote
PicnicTutorials Posted March 28, 2009 Author Report Posted March 28, 2009 OK - I did it with flash - hows it work for you now? Here is the page - make sure you clear your cache - Thanks! http://tinyurl.com/csex4k Quote
jlhaslip Posted March 28, 2009 Report Posted March 28, 2009 (edited) Cleared Cache and it tested fine in Linux FF3 and Opera 9.6something *edit* Opera 9.62 Edited March 28, 2009 by jlhaslip Quote
Wickham Posted March 28, 2009 Report Posted March 28, 2009 IE8 OK with sound on red house provided Active Scripting and Run ActiveX Controls & Plugins both enabled, also sounds over left menu. Quote
PicnicTutorials Posted March 28, 2009 Author Report Posted March 28, 2009 Cool - thanks guys! Good to hear it! I'm pretty stocked on this new flash method. It's so easy too! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.