Link to home
Start Free TrialLog in
Avatar of gwendaellwood
gwendaellwood

asked on

How do i insert .WMV player and quicktime player into an HTML page?

Hi,
I am testing different video file formats for my web site and I've figured out how to embed a Flash player and get it to work. However, I also want to paly.MWV and Quicktime videos. Can anyone give me some tips on how these video formats work and how I can get them to play on my site?

Thanks,
GWenda
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

the WMF will only play on PCs and not Apple MACs (probably 20% of the marktet)
flash is usually the standard and also FLV files.
attached is  some code for WMF files its playing a video called "goodtime.avi" but will also play WMF files
<html>
<head><title>Live Video Plugin</title>
<script LANGAUGE="JavaScript">
<!-- Hide JavaScript code...
 
function aviRewind(item) {
  document.plugins[item].rewind();
  document.plugins[item].play();
}
 
// Stop hiding... -->
</script>
<!--mstheme--><link rel="stylesheet" type="text/css" href="_themes/water/wate1111.css"><meta name="Microsoft Theme" content="water 1111, default">
<meta name="Microsoft Border" content="t, default">
</head>
<body><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>
 
<p align="center"><font size="6"><strong>
</strong></font><br>
</p>
 
</td></tr><!--msnavigation--></table><!--msnavigation--><table dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top">
<script LANGAUGE="JavaScript">
<!-- Hide JavaScript code...
 
if (navigator.appName == "Microsoft Internet Explorer") {
  location.replace("NsAviErr.html");
}
 
// Stop hiding code -->
</script>
<center>
<h2><font size="+4"><tt>The Navigator Jukebox</tt></font></h2>
<table border=1>
<tr><td>
<table border=0>
<tr><td valign="top" align="center">
    <embed NAME="playAvi" src="Goodtime.avi" autostart="true" height="240" width="320"></td></tr>
<tr><td valign="top" align="center">
<form>
<input type="button" value="Stop" onClick="document.plugins['playAvi'].stop()">
<input type="button" value="Play" onClick="document.plugins['playAvi'].play()">
<input type="button" value="Rewind" onClick="aviRewind('playAvi')">
</form>
</td></tr>
</table></td></tr></table>
</center>
<!--msnavigation--></td></tr><!--msnavigation--></table></body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gwendaellwood
gwendaellwood

ASKER

Hi ChilternPC - thanks for this! Due to your comment that the .MWV file won't play on a Mac, I'm not going to even try testing it. However, I will post another question about how to put a Quicktime file on the web.
G
quicktime will play on a mac but if you havn't got it install on the PC then the browser will ask the client to open or save the file.
I usually convert all movies to flash using the Swich video package. - it converts any movie to flash and gicesyou the html to run it in a page.
see:
http://www.swishzone.com/index.php?area=products&product=video