Forum Moderators: not2easy

Message Too Old, No Replies

Embedded Player that works in IE, Firefox, Opera, Netscape

Embedded Player that works in IE, Firefox, Opera, Netscape

         

empspot

10:01 pm on Mar 27, 2007 (gmt 0)

10+ Year Member



Can anybody show me how to modify the following code to make it show in all browsers?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Video Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body bgcolor="#FFFFFF">

<script type="text/javascript">
AC_AX_RunContent( 'id','MediaPlayer','width','320','height','280','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',
'pluginspage','http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/',
'filename','http://... ','src','http://... ','name','MediaPlayer','showcontrols','1','showdisplay','0',
'showstatusbar','0','autosize','0' ); //end AC code
</script>

</body>
</html>

Thanks,

empspot

[edited by: limbo at 8:16 am (utc) on Mar. 28, 2007]
[edit reason] fixed scroll - line breaks used after selected commas [/edit]

encyclo

5:18 pm on Mar 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld empspot. As you can see, ActiveX only works in Internet Explorer, and with the security restrictions for most Windows installations these days, it may not even work there.

Usually you should use a combination of

object
and
embed
. Bear in mind that if you use Windows Media, it isn't really cross-platform friendly (ie. for Linux, Mac).