Welcome to WebmasterWorld Guest from 54.163.168.15

Forum Moderators: incrediBILL

WMV embed for Mac users, embed

Problem with Status bar

   
11:43 pm on Dec 26, 2005 (gmt 0)

5+ Year Member



Hi folks, i just did an embed for windows media. for some reason, the status bar shows for all browsers on windows , but will not show for Mac users who have either Safari or Firefox, could someone tell me what i might be doing wrong here? here is the code


//write out the mozilla complient code
document.write( "<EMBED NAME =\"EmbedmediaPlayer\"");
document.write( "PLUGINSPAGE =\"http://microsoft.com/windows/mediaplayer/en/download/\" ");
document.write( "FILENAME =\"domain.com/videofile\" ");
document.write( "SHOWSTATUSBAR =\"true\" ");
document.write( "SHOWCONTROLS =\"true\" ");
document.write( "TYPE =\"application/x-mplayer2\" ");
document.write( "SRC =\"" + videolink + "\"");
document.write( "WIDTH =\"480\" ");
document.write( "HEIGHT =\"425\"> ");
document.write( "</EMBED>" );
}

</script>
<noscript>
<embed name ="EmbedmediaPlayer"
pluginspage ="http://microsoft.com/windows/mediaplayer/en/download/"
filename ="domain.com/videofile"
showstatusbar ="true"
showcontrols ="true"
showdisplay ="true"
showtracker ="true"
type ="application/x-mplayer2"
src ="domain.com/videofile"
width ="480"
height ="425"></embed>
</noscript>
</object>

2:13 am on Dec 27, 2005 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



... because it's embedding media player ... on a Mac?

<confused>

6:55 pm on Dec 27, 2005 (gmt 0)

5+ Year Member



Why output from document.write is different from <noscript> and what is this lonely </object>?

showcontrols="true" (deprecated) is unnecessary and waste of bytes, since it is true by default. Same applies to these:
showdisplay ="true" (deprecated)
showtracker ="true" (deprecated)

In IE when you use active-x media player object (clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6) uiMode = full is default.

For browsers that use non-active-x plugin like Firefox, Opera always use 1 or 0 instead of true or false.
ShowStatusBar="1" should add status bar.

4:33 am on Dec 28, 2005 (gmt 0)

5+ Year Member



taffa, thank you very much for the help, i used numbers for it and it worked fine

thanks again!

4:36 am on Dec 28, 2005 (gmt 0)

5+ Year Member



oh, btw i posted only a small part of the code, last(mozilla) part of the code that we have th "lonely", </object> it was part of the whole thing wherefore i have put in the Activex part for window begining with ,<object> but you didnt see it here, thanks anyways for you help
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month