![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
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> Gideon |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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>
__________________
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." |
|
|
|
|
|
#3 (permalink) |
|
Registered User
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 |
|
|
|
|
|
#4 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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> 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'); ?>
__________________
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." |
|
|
|
|
|
#5 (permalink) |
|
Registered User
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. |
|
|
|
|
|
#6 (permalink) |
|
Registered User
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> |
|
|
|
|
|
#7 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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>
__________________
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." |
|
|
|
|
|
#8 (permalink) |
|
Registered User
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 |
|
|
|
|
|
#9 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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." |
|
|
|
|
|
#11 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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." |
|
|
|
|
|
#12 (permalink) |
|
Registered User
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> 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. |
|
|
|
|
|
#13 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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. |
|
|
|
![]() |
| Thread Tools | |
|
|