Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 09-22-2006, 07:37 PM   #1 (permalink)
Registered User
 
Gideon's Avatar
 
Join Date: Mar 2005
Posts: 16
OS: Win ME


Audio Player on Internet Explorer and Firefox

Hi,

I want to display a player on my web page for audio messages but the player wont display on MS. Explorer.

Please take a look at my experimental page in Firefox and Internet Explorer. http://www.5loaves2fishes.org.nz/5L2Fexperiment.htm

Here is the relevant code:
Code:
<object type="audio/midi" data="Midi/Teachchildren.mid" height="44" width="230">
<param name="src" value="Midi/Teachchildren.mid" />
<param name="autostart" value="false" />
<param name="controls" value="default" />
<param name="loop" value="false" />
</object></a>
Can someone suggest a fix so that it works in both browsers?

Gideon
Gideon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-22-2006, 08:01 PM   #2 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

HTML Code:
<OBJECT ID="MediaPlayer" WIDTH=153 HEIGHT=45
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading.. Please Wait."
TYPE="application/x-oleobject">

<PARAM NAME="FileName" VALUE="Midi/Teachchildren.mid" valuetype="ref" ref>
<param name="AudioStream" value="1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="1">
<param name="AnimationAtStart" value="0">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">

<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="1">
<param name="DisplaySize" value="1">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="-1">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="0">

<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">

<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="0">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="333333">
<param name="VideoBorder3D" value="17">
<param name="Volume" value="-2000">
<param name="WindowlessVideo" value="-1">
<EMBED TYPE="application/x-mplayer2" SRC="Midi/Teachchildren.mid" NAME="MediaPlayer" WIDTH=320 HEIGHT=45>
</EMBED></OBJECT>
There you are sir. Any questions, just reply.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2006, 09:08 PM   #3 (permalink)
Registered User
 
Gideon's Avatar
 
Join Date: Mar 2005
Posts: 16
OS: Win ME


Awesome DJ! Many thanks.

Just one more question. Can most of that be put on my stylesheet and only the SRC bit placed on my page? Because, I have half a dozen pages like that and its quite a lot of code.

Thanks
Gideon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2006, 09:40 PM   #4 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

I'm blanking out right now as far as link statements go. You can, however, use php includes.

Here's how:
First, create a PHP (.php) file and put these contents in:
HTML Code:
<OBJECT ID="MediaPlayer" WIDTH=153 HEIGHT=45 CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading.. Please Wait." TYPE="application/x-oleobject"> <PARAM NAME="FileName" VALUE="Midi/Teachchildren.mid" valuetype="ref" ref> <param name="AudioStream" value="1"> <param name="AutoSize" value="0"> <param name="AutoStart" value="1"> <param name="AnimationAtStart" value="0"> <param name="AllowScan" value="-1"> <param name="AllowChangeDisplaySize" value="-1"> <param name="AutoRewind" value="0"> <param name="Balance" value="0"> <param name="BaseURL" value> <param name="BufferingTime" value="5"> <param name="CaptioningID" value> <param name="ClickToPlay" value="-1"> <param name="CursorType" value="0"> <param name="CurrentPosition" value="-1"> <param name="CurrentMarker" value="0"> <param name="DefaultFrame" value> <param name="DisplayBackColor" value="0"> <param name="DisplayForeColor" value="16777215"> <param name="DisplayMode" value="1"> <param name="DisplaySize" value="1"> <param name="Enabled" value="-1"> <param name="EnableContextMenu" value="-1"> <param name="EnablePositionControls" value="-1"> <param name="EnableFullScreenControls" value="-1"> <param name="EnableTracker" value="-1"> <param name="InvokeURLs" value="-1"> <param name="Language" value="-1"> <param name="Mute" value="0"> <param name="PlayCount" value="0"> <param name="PreviewMode" value="0"> <param name="Rate" value="1"> <param name="SAMILang" value> <param name="SAMIStyle" value> <param name="SAMIFileName" value> <param name="SelectionStart" value="-1"> <param name="SelectionEnd" value="-1"> <param name="SendOpenStateChangeEvents" value="-1"> <param name="SendWarningEvents" value="-1"> <param name="SendErrorEvents" value="-1"> <param name="SendKeyboardEvents" value="0"> <param name="SendMouseClickEvents" value="0"> <param name="SendMouseMoveEvents" value="0"> <param name="SendPlayStateChangeEvents" value="-1"> <param name="ShowCaptioning" value="0"> <param name="ShowControls" value="-1"> <param name="ShowAudioControls" value="-1"> <param name="ShowDisplay" value="0"> <param name="ShowGotoBar" value="0"> <param name="ShowPositionControls" value="0"> <param name="ShowStatusBar" value="-1"> <param name="ShowTracker" value="-1"> <param name="TransparentAtStart" value="0"> <param name="VideoBorderWidth" value="0"> <param name="VideoBorderColor" value="333333"> <param name="VideoBorder3D" value="17"> <param name="Volume" value="-2000"> <param name="WindowlessVideo" value="-1"> <EMBED TYPE="application/x-mplayer2" SRC="Midi/Teachchildren.mid" NAME="MediaPlayer" WIDTH=320 HEIGHT=45> </EMBED></OBJECT>
Name that whatever you want (for the demo, I'll name it "music.php")

Now, go to the page you want to use the music on and rename it filenamehere.php. Don't worry, your HTML coding will still stay in tact.

Finally, add this code where you want to display the music:
HTML Code:
<?php include('music.php'); ?>
Tell me if you have any problems or don't understand something.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2006, 10:54 PM   #5 (permalink)
Registered User
 
Gideon's Avatar
 
Join Date: Mar 2005
Posts: 16
OS: Win ME


Heck, Im out of my depth here. How do you write a php file and where do you upload it to relative to the file that has your audio?

Also, I might not have been clear but the Midi song is different on each page that I use the player.

Last edited by Gideon; 09-22-2006 at 10:57 PM.
Gideon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-23-2006, 04:16 AM   #6 (permalink)
Registered User
 
Gideon's Avatar
 
Join Date: Mar 2005
Posts: 16
OS: Win ME


Hello again

Hello again,

Rather than creating a php file I have pruned all the ‘params’ except ‘filename’ and ‘autostart.’ Is that permissible? It is much smaller and seems to be working in IE plus Firefox.
Here is my latest experimental page.
http://www.5loaves2fishes.org.nz/5L2Fexperiment.htm

Here is my code. Please tell me if it’s good or bad code. Also how to make FF obey the autostart-false command.)

Code:
<OBJECT ID="MediaPlayer" WIDTH=184 HEIGHT=45 
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" 
STANDBY="Loading.. Please Wait." 
TYPE="application/x-oleobject"> 
<PARAM NAME="FileName" VALUE="Midi/Icansee.mid" valuetype="ref" ref> 
<param name="AutoStart" value="false"> 
<EMBED TYPE="application/x-mplayer2" SRC="Midi/Icansee.mid" NAME="MediaPlayer" WIDTH=184 HEIGHT=45>
</EMBED></OBJECT>
Gideon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-23-2006, 08:48 AM   #7 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

This should work:
HTML Code:
<object id="MediaPlayer" width="184" height="45" 
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" 
standby="Loading.. Please Wait." 
type="application/x-oleobject"> 
<param name="FileName" value="http://www.5loaves2fishes.org.nz/Midi/Icansee.mid" valuetype="ref"> 
<param name="AutoStart" value="false"> 
</object>
I just used PHP to help you save as much space as you could.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-23-2006, 12:01 PM   #8 (permalink)
Registered User
 
Gideon's Avatar
 
Join Date: Mar 2005
Posts: 16
OS: Win ME


So close, so close but dont get sick of me yet.

Problem with this is that the audio player shows on IE but not FF!?? Funnily enough it works on my web authoring preview. However FF refuses to work when uploaded. Heh?

Heres my latest attempt
Gideon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-23-2006, 02:18 PM   #9 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

Do you have the latest version of FF? It works fine for me.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-23-2006, 11:46 PM   #10 (permalink)
Registered User
 
Gideon's Avatar
 
Join Date: Mar 2005
Posts: 16
OS: Win ME


Hi DJ-Zep

All fixed now. Your help was invaluable.
Gideon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-24-2006, 06:09 AM   #11 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

What was your problem?
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-24-2006, 04:16 PM   #12 (permalink)
Registered User
 
Gideon's Avatar
 
Join Date: Mar 2005
Posts: 16
OS: Win ME


Evidently FF doesn’t use ActiveX. We learn something each day. I sent the link to half a dozen people and some of them saw it and some didnt. So I posted the code you gave me on the Mozilla forum and someone suggested this tweak.

Code:
<object id="MediaPlayer" width="184" height="45"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading.. Please Wait."
type="application/x-oleobject">
<param name="FileName" value="http://www.5loaves2fishes.org.nz/Midi/Airbreth.mid" valuetype="ref"> <param name="AutoStart" value="false">
 
<embed src="http://www.5loaves2fishes.org.nz/Midi/Airbreth.mid" type="application/x-mplayer2"
width="184" "height="45" autostart="0">
</object>
And that did the trick. Here is one of my final pages:
http://www.5loaves2fishes.org.nz/Lakeside.htm

Wouldnt it be nice if Mozilla and Microsoft talked to eachother?

Last edited by Gideon; 09-24-2006 at 04:18 PM.
Gideon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-24-2006, 07:14 PM   #13 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

Oh my, I just noticed I ditched the embedment. Sorry about that. Glad you found your solution, however.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."

Last edited by DJ-Zep; 09-24-2006 at 07:16 PM.
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 01:51 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85