HighDots Forums  

Embedded Windows Media player not launching for Macisers

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Embedded Windows Media player not launching for Macisers in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
anubia
 
Posts: n/a

Default Embedded Windows Media player not launching for Macisers - 11-04-2005 , 02:22 PM






I have embedded a Windows Media Player on a web page to stream live radio. It
works fine for PC users, but MAC users complain that they cannot use it. It
tells them the plug-in is not supported even though they actually have the
player, then it says the host is unreachable. If they type the streaming
address into the player everything works fine. The player at one time
automatically launched for Mac users, but no more. I believe it's a flaw with
my code, but I don't know what's wrong. Here is the code:

<!--Code for Explorer-->
<OBJECT CLASS="invisible" ID="mediaPlayer"
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"

CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab
#Version=6,4,7,1112"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE="mms://66.134.90.174:8080">
<PARAM NAME="animationatStart" VALUE="0">
<PARAM NAME="transparentatStart" VALUE="True">
<PARAM NAME="autoStart" VALUE="True">
<PARAM NAME="showControls" VALUE="0">
<PARAM NAME="showDisplay" VALUE="0">
<PARAM NAME="showStatusBar" VALUE="0">
<PARAM NAME="AutoSize" VALUE="0">

<!--Code for Netscape-->
<EMBED CLASS="invisible" type="application/x-mplayer2" pluginspage =
"http://www.microsoft.com/Windows/MediaPlayer/"
SRC="mms://66.134.90.174:8080" name="MediaPlayer1" width=0 height=0
AutoStart=true>
</EMBED>
<!--end of Netscape code-->

</OBJECT>
<!--end of Explorer code-->

If you click on the radio from a mac you'll see what I mean:
http://www.kpoo.com/gallery.html?http://www.kpoo.com/stream.html

I'm in the process of revamping the site, so I'd like to unveil a fully
functioning stream. What do I do?

<!--Code for Explorer-->
<OBJECT CLASS="invisible" ID="mediaPlayer"
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"

CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab
#Version=6,4,7,1112"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE="mms://66.134.90.174:8080">
<PARAM NAME="animationatStart" VALUE="0">
<PARAM NAME="transparentatStart" VALUE="True">
<PARAM NAME="autoStart" VALUE="True">
<PARAM NAME="showControls" VALUE="0">
<PARAM NAME="showDisplay" VALUE="0">
<PARAM NAME="showStatusBar" VALUE="0">
<PARAM NAME="AutoSize" VALUE="0">

<!--Code for Netscape-->
<EMBED CLASS="invisible" type="application/x-mplayer2" pluginspage =
"http://www.microsoft.com/Windows/MediaPlayer/"
SRC="mms://66.134.90.174:8080" name="MediaPlayer1" width=0 height=0
AutoStart=true>
</EMBED>
<!--end of Netscape code-->

</OBJECT>
<!--end of Explorer code-->


Reply With Quote
  #2  
Old   
anubia
 
Posts: n/a

Default Re: Embedded Windows Media player not launching for Macisers - 11-05-2005 , 02:11 PM






Is this the holy grail of embedding?

Reply With Quote
  #3  
Old   
Holland87
 
Posts: n/a

Default Re: Embedded Windows Media player not launching for Macisers - 11-05-2005 , 02:19 PM



I embed exactly the way you do and mine works fine in all OS/browsers. The only
thing I noticed different was that I had two additional versions added to my
codebase. Try adding 5, 715 to your exisiting:


CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#
Version=6,4,7,1112"


Not sure if that will work, but it's worth a shot. After that, I'm all out of
ideas, sorry.



Shane H


Reply With Quote
  #4  
Old   
anubia
 
Posts: n/a

Default Re: Embedded Windows Media player not launching for Macisers - 11-05-2005 , 02:34 PM



Sadly this did not work, but I'm interested to understand what it's supposed to do since I don't know what the Codebase is.

Reply With Quote
  #5  
Old   
NedTheDog
 
Posts: n/a

Default Re: Embedded Windows Media player not launching for Macisers - 11-05-2005 , 08:01 PM



I had the opposite problem - making my Mac files work on Windows. I saved the
sound as an mp3 and linked to it. I didn't embed the player. That way, whatever
player the viewer has will play the sound. I type too slow to go through all
the steps, but DW generates this code in the <head> </head>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
var ok=false; document.MM_returnValue = false;
with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins &&
plugins.length)) {
ok=(plugins && plugins[plgIn]);
} else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null)
ok=window.MM_flash;
else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null)
ok=window.MM_dir;
else ok=autoGo; }
if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
//-->
</script>

The text links for Mac and Windows look like this, depending on your file
folder name and sound file name.

1a. <a href="anubiasongs/sound_1.mp3" onclick="MM_checkPlugin('QuickTime
Plug-In','anubiasongs/sound_1.mp3','anubiasongs/sound_1.mp3',false);return
document.MM_returnValue">Anubia Text Link Here / QuickTime Plug-In</a><br />
1b. <a href="anubiasongs/sound_1.mp3" onclick="MM_checkPlugin('Windows Media
Player','anubiasongs/sound_1.mp3','anubiasongs/sound_1.mp3',false);return
document.MM_returnValue">Anubia Text Link Here / Windows Media Player</a><br />


Reply With Quote
  #6  
Old   
anubia
 
Posts: n/a

Default Re: Embedded Windows Media player not launching for Macisers - 11-07-2005 , 12:32 AM



Since it's a live broadcast and we're streaming in real time this solution is
not an option, but I'll keep that code around for for future use.

I still don't know why it stopped working on the mac platform. What am I
missing?


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.