Firefox can do something IE can, but on no one elses

Punkrulz

Somewhat eXPerienced
Joined
Dec 24, 2001
Messages
790
Heh, sorry for the vague subject... don't know how much better I could put it. Today I've been working on my website, http://www.tacomafire.org, specifically the audio gallery. I got an idea from a friend of mine about playing some of the sounds. He uses this code:

Code:
<OBJECT
    ID="mediaPlayer"
    CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    STANDBY="Loading Microsoft Windows Media Player components..."
    TYPE="application/x-oleobject" width="66" height="52">
    
    <PARAM NAME="fileName" VALUE="audio/9-2.wav">
    <PARAM NAME="animationatStart" VALUE="0">
    <PARAM NAME="transparentatStart" VALUE="0">
    <PARAM NAME="autoStart" VALUE="0">
    <PARAM NAME="showControls" VALUE="-1">
    
    <param name="AudioStream" value="-1">
    <param name="AutoSize" 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="0">
    <param name="DisplaySize" value="4">
    
    <param name="Enabled" value="-1">
    <param name="EnableContextMenu" value="-1">
    <param name="EnablePositionControls" value="-1">
    <param name="EnableFullScreenControls" value="0">
    <param name="EnableTracker" value="-1">
    <param name="InvokeURLs" value="-1">
    <param name="Language" value="-1">
    <param name="Mute" value="0">
    <param name="PlayCount" value="1">
    
    <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="ShowAudioControls" value="-1">
    <param name="ShowDisplay" value="0">
    <param name="ShowGotoBar" value="0">
    
    <param name="ShowPositionControls" value="-1">
    <param name="ShowStatusBar" value="0">
    <param name="ShowTracker" value="-1">
    <param name="VideoBorderWidth" value="0">
    <param name="VideoBorderColor" value="0">
    <param name="VideoBorder3D" value="0">
    <param name="Volume" value="-600">
    <param name="WindowlessVideo" value="0">
</OBJECT>
He uses this code to be able to create a small box, that plays the audio from right in the browser. I was working on the website and checking it using Firefox 2.0.0.2, which had no problems showing that up. Later in the day I went to the firehouse and used that computer, which it didn't work!

What do I have in my firefox on my laptop that I don't have anywhere else? I don't recall installing anything particular that would enable me to use that box.

Also, for you programmers, do you recommend any other possible better alternatives for playing the audio in the browser, something that works on both platforms?
 

muzikool

Act your wage.
Political User
Joined
Dec 27, 2001
Messages
7,626
Flash players are big now since they don't require a specific player such as WMP, RealPlayer or QuickTime. You can do a search for flash media player and find all kinds of options.
 

Geffy

OSNN Veteran Addict
Joined
Mar 18, 2002
Messages
7,805
I'd recommend having a way for users to mute or pause the sound from your website. They may well be listening to something else ;)
 

Vanquished

Mr. Bananagrabber
Political User
Joined
Jan 12, 2006
Messages
4,869
My Golly Gosh.
Everyone here is on the same "Brainwave" as everyone on my site :p.
We just added a radio feature too...
Granted it's music, but still.
I have a friend who loves FireTrucks and Sorts, ill pass the link to your site along.
 

Electronic Punk

willalwaysbewithyou
Staff member
Political User
Joined
Dec 2, 2001
Messages
18,626
Gonna add one to the forums without a pause button, all chemical brothers, all the time.

one1.
 

albybum

Penguin Rancher
Joined
Feb 9, 2002
Messages
280
Attempted to test this out and set it up, but it's not working for me. :( I'm using the test to try and play audio/9-2.mp3, but nothing is loading.

http://www.tacomafire.org/test.htm
It looks like you replaced the "Movie:" directive in the javascript. That isn't the location of playable media. That Movie directive points to the Flash file, the actual mp3 player.

The code below is similar to what I use on my site.
Code:
<script type="text/javascript">
 //<![CDATA[
 var FO = {movie:"mp3player.swf",width:"200",height:"200",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
 flashvars:"file=someSong.mp3&displayheight=0&repeat=true&shuffle=false&lightcolor=0x0099CC&backcolor=0x141414&frontcolor=0xCCCCCC"};
 UFO.create(FO, "player1");
 //]]>
</script>
Right beside the "flashvars:" directive you will see part of that string that says "file=something"

you need to add the location of the music file there, or the location of an xml document that contains the location of multiple music files.
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
61,974
Messages
673,294
Members
89,042
Latest member
Pancake