Pop Up Mp3 flash player?

Reply

Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Pop Up Mp3 flash player?

 
0
  #11
Jan 8th, 2009
Originally Posted by jproducer View Post
Not to mention i am a great believer in using quicktime rather than windows anyway. Oh wait, I'm a mac user.

Also, when you update quicktime, does it not ask you what mime types to associate?
No, it does not. Like a bull in a china shop, it does what it wants.

You can set it to not do this. But when it automatically updates the nest time, it turns off that setting. If you don't notice that the setting was turned off, the following time it updates, it grabs all of the file defaults in Windows Explorer. I have even seen it grab file types it can't play.

It also installs itself in such a way that it can't be uninstalled without reinstalling Windows.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Pop Up Mp3 flash player?

 
0
  #12
Jan 8th, 2009
Originally Posted by roryt View Post
Midimagic: This uses the default play on the computer, that is the point!
What if you don't have a player installed that plays that kind of file?

I have to have three different audio players just to play the files I do have, and there are other file types I can't play, because I have problems with the way the players for those files affect computers.
Last edited by MidiMagic; Jan 8th, 2009 at 2:23 am.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1,283
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Solved Threads: 14
roryt's Avatar
roryt roryt is offline Offline
Nearly a Posting Virtuoso

Re: Pop Up Mp3 flash player?

 
0
  #13
Jan 8th, 2009
Well I don't use realplayer at all because of the reason... it is really dodgy.

Itunes and VLC seem to do the job for me though.

Good point though, if you don't have quicktime or windows media player for WMV and MOV files, what does it do!?
PhotoShopthis
FlyingPen
If I have helped you please add to my reputation
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 18
Reputation: jproducer is an unknown quantity at this point 
Solved Threads: 0
jproducer's Avatar
jproducer jproducer is offline Offline
Newbie Poster

Re: Pop Up Mp3 flash player?

 
0
  #14
Jan 8th, 2009
As you can see in the below code, this is not the "be all end all" answer for all of us out there. In the code it looks like it only deals with variables for two different mime types and let's your computer decide how to handle, but I have not experiemented on a machine without windows media or quicktime, so I'm not 100% sure.

I'm still on the search because I honestly think .flv would be a better answer for what I was looking for, i am just not savvy enough to write my own scrip on this or have found anything that is easily customizable to fit my site. I'm glad for all the feedback though. Maybe we'll actually find a good solution for all.

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. // Pop-Up Embedder Script by David Battino, www.batmosphere.com
  2. // Version 2006-05-31
  3. // OK to use if this notice is included
  4.  
  5. function BatmoAudioPop(filedesc,filepath,WindowNumber) {
  6. // Get Operating System
  7. var isWin = navigator.userAgent.toLowerCase().indexOf("windows") !=-1
  8. if (isWin) { // Use MIME type = "application/x-mplayer2"
  9. visitorOS="Windows";
  10. }
  11. else { // Use MIME type = "audio/mpeg"; // or audio/x-wav or audio/x-ms-wma, etc.
  12. visitorOS="Other";
  13. }
  14.  
  15. // Get the MIME type of the audio file from its extension (for non-Windows browsers)
  16. var mimeType = "audio/mpeg"; // assume MP3/M3U
  17. var objTypeTag = "application/x-mplayer2"; // The Windows MIME type to load the WMP plug-in in Firefox, etc.
  18. var theExtension = filepath.substr(filepath.lastIndexOf('.')+1, 3); // truncates .aiff to aif
  19. if (theExtension.toLowerCase() == "wav") { mimeType = "audio/x-wav"};
  20. if (theExtension.toLowerCase() == "aif") { mimeType = "audio/x-aiff"};
  21. if (theExtension.toLowerCase() == "wma") { mimeType = "audio/x-ms-wma"};
  22. if (theExtension.toLowerCase() == "mid") { mimeType = "audio/mid"};
  23. // Add additional MIME types as desired
  24.  
  25. if (visitorOS != "Windows") { objTypeTag = mimeType; // audio/mpeg, audio/x-wav, audio/x-ms-wma, etc.};
  26. PlayerWin = window.open('',WindowNumber,'width=320,height=217,top=0,left=0,screenX=0,screenY=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0');
  27. PlayerWin.focus();
  28. PlayerWin.document.writeln("<html><head><title>" + filedesc + "</title></head>");
  29. PlayerWin.document.writeln("<body bgcolor='#9999ff'>"); // specify background img if desired
  30. PlayerWin.document.writeln("<div align='center'>");
  31. PlayerWin.document.writeln("<b style ='font-size:18px;font-family:Lucida,sans-serif;line-height:1.6'>" + filedesc + "</b><br />");
  32. PlayerWin.document.writeln("<object width='280' height='69'>");
  33. PlayerWin.document.writeln("<param name='src' value='" + filepath + "'>");
  34. PlayerWin.document.writeln("<param name='type' value='" + objTypeTag + "'>");
  35. PlayerWin.document.writeln("<param name='autostart' value='1'>");
  36. PlayerWin.document.writeln("<param name='showcontrols' value='1'>");
  37. PlayerWin.document.writeln("<param name='showstatusbar' value='1'>");
  38. PlayerWin.document.writeln("<embed src ='" + filepath + "' type='" + objTypeTag + "' autoplay='true' width='280' height='69' controller='1' showstatusbar='1' bgcolor='#9999ff' kioskmode='true'>");
  39. PlayerWin.document.writeln("</embed></object></div>");
  40. PlayerWin.document.writeln("<p style='font-size:12px;font-family:Lucida,sans-serif;text-align:center'><a href='" + filepath +"'>Download this file</a> <span style='font-size:10px'>(right-click or Control-click)</span></p>");
  41. PlayerWin.document.writeln("<form><div align='center'><input type='button' value='Close this window' onclick='javascript:window.close();'></div></form>");
  42. PlayerWin.document.writeln("</body></html>");
  43. PlayerWin.document.close(); // "Finalizes" new window
Last edited by jproducer; Jan 8th, 2009 at 10:54 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Graphics and Multimedia Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC