Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2006, 04:09 PM
Authorized User
 
Join Date: Mar 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to arimakidd
Default Embedding a wmv file

I have embedded a windows media file into an html page and it shows quite well in firefox. However it is not showing in Internet Explorer 6. Can anyone help? Here is the code;
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language="JavaScript" type="text/javascript">
var full_version = 0
var ie_start = navigator.appVersion.indexOf("MSIE")
if (ie_start != -1) {
   var version_string = navigator.appVersion.substring(ie_start + 5)
   full_version = parseFloat(version_string)
}
</script>

</head>
<body>
<OBJECT ID="MediaPlayer" width=320 height=310 classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" standby= "Loading Media Player" type="application/x-oleobject">
<PARAM NAME="taylia" VALUE="images/taylia.wmv">
<PARAM NAME="AutoStart" Value="True">
<PARAM NAME="ShowControls" VALUE="True">
<PARAM NAME="ShowStatusBar" VALUE="True">
<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="images/taylia.wmv" width=320 height=310 autostart="True" ShowStatusBar=1 ShowControls=1 >
</EMBED>
</OBJECT><br>
<FORM name="MediaForm">
<SELECT NAME="VidChange" onChange="{document.MediaPlayer.FileName = document.MediaForm.VidChange.options[document.MediaForm.VidChange.selectedIndex].value}">
<OPTION VALUE="images/taylia.wmv" selected>Taylia Sports Day
</SELECT>
Loop: 
<INPUT TYPE="checkbox" NAME="VidRepeat" onClick="{if ( document.forms.MediaForm.VidRepeat.checked == true){document.MediaPlayer.PlayCount = 999}else {document.MediaPlayer.PlayCount = 1 }}">
</FORM> 
</body>
</html>
 
Old March 27th, 2007, 04:32 PM
Authorized User
 
Join Date: Jan 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi arimakidd
change following line
<PARAM NAME="taylia" VALUE="images/taylia.wmv">

to
<PARAM NAME="URL" VALUE="images/taylia.wmv">

and try in IE6. It should work.
KD






Similar Threads
Thread Thread Starter Forum Replies Last Post
wmv dimentions MosheGolden Classic ASP Professional 0 December 26th, 2007 05:54 AM
File embedding in vbasic(Please help ) dextergaisie Pro VB 6 1 September 21st, 2007 11:47 AM
Cutting and joining wmv files arun.sharma.kumar Visual C++ 0 January 25th, 2007 02:35 AM
Command Button event WMV File C.W. Clark Excel VBA 2 August 7th, 2006 09:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.