Solved

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

Posted on 2009-04-13
4
2,061 Views
Last Modified: 2013-12-07
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
0
Comment
Question by:gwendaellwood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 29

Expert Comment

by:chilternPC
ID: 24133616
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

0
 
LVL 29

Accepted Solution

by:
chilternPC earned 500 total points
ID: 24133650
sorry attached the wrong file!! :-)
please ignore....
maybe this one.....
its such a long time since I wanted to put WMV files on the web....
<html>
<head>
<title>AVI Videos</title>
 
<script language="JavaScript">
<!-- Hide code...
 
function aviResize(item) {
  aviSize = item.options[item.selectedIndex].value;
  document.all.aviPlayer.MovieWindowSize = aviSize;
}
 
function aviChoose(item) {
  aviFile = item.options[item.selectedIndex].value;
  document.all.aviPlayer.stop();
  document.all.aviPlayer.FileName = aviFile;
  document.all.aviPlayer.Run();
}
 
function aviStop() {
  document.all.aviPlayer.Stop();
}
 
function aviStart() {
  document.all.aviPlayer.Run();
}
 
function aviPause() {
  document.all.aviPlayer.Pause();
}
 
function aviVolUp() {
  document.all.aviPlayer.Volume += 100;
}
 
function aviVolDown() {
  document.all.aviPlayer.Volume -= 100;
}
// Stop hiding code -->
</script>
 
 
 
 
 
 
 
<!--mstheme--><link rel="stylesheet" type="text/css" href="_themes/leaves/leav1111.css"><meta name="Microsoft Theme" content="leaves 1111, default">
<meta name="Microsoft Border" content="none">
</head>
<body>
<center>
 
<script language="JavaScript">
<!-- Hide the JavaScript source code
 
if (navigator.appName == "Netscape") {
  document.write("<P>This demonstration only works in Explorer");
  location.replace("avierr.html");
}
 
// Stop hiding... -->
</script>
 
</center>
 
<table BORDER="0" height="459" width="514" cellspacing="0" cellpadding="0">
<tr><td BGCOLOR="#FFFFFF" valign="middle" align="center" nowrap background="images/liza1.jpg" width="657" height="459">
<table border="0" width="623" cellpadding="0" height="435" background="images/liza1.jpg" cellspacing="0">
<tr>
  <td width="289" height="427" rowspan="2" bordercolor="#FFFFFF" valign="top" align="left">
<p align="center"><font face="Calvin" size="4" color="#0000FF">&nbsp;</font></p>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="112%" id="AutoNumber1">
    <tr>
      <td width="100%">
      <p align="left"><font size="5">Liza's Video Jukebox</font></td>
    </tr>
    <tr>
      <td width="100%">
      <p align="center">&nbsp;</td>
    </tr>
    <tr>
      <td width="100%">
      <p align="center"><font color="#FF00FF">
      <span style="background-color: #FFFF00"><a href="index.htm">Home</a></span></font></td>
    </tr>
</table>
  </td>
<center>
 
<td bordercolor="#FFFFFF" width="374">
<p align="center">
<object id="aviPlayer"
        classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A" width="320" height="240">
<param name="Appearance" value="0">
<param name="AutoStart" value="-1">
<param name="AllowChangeDisplayMode" value="-1">
<param name="AllowHideDisplay" value="0">
<param name="AllowHideControls" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="CurrentPosition" value="0">
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableSelectionControls" value="0">
<param name="EnableTracker" value="-1">
<param name="Filename" value="Goodtime.avi">
<param name="FullScreenMode" value="0">
<param name="MovieWindowSize" value="0">
<param name="PlayCount" value="1">
<param name="Rate" value="1">
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="ShowControls" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowPositionControls" value="0">
<param name="ShowTracker" value="-1">
<param name="Volume" value="-600">
</object>
 
<br>
<input type="button" value="Stop" onClick="aviStop()" />
<input type="button" value="Play" onClick="aviStart()" />
<input type="button" value="Pause" onClick="aviPause()" />
<input type="button" value="louder" onClick="aviVolUp()" /><input type="button" value="quieter" onClick="aviVolDown()" />
 
  </td>
</tr>
<tr>
  <td width="374" height="201" valign="middle" align="center">
<font color="#FFFFFF">
Choose Video</font><br>
<select name="theAvi" SIZE="5" onClick="aviChoose(this)">
  <option value="videos/horseatsea1.wmv">Studland bay 2003</option>
  <option value="videos/cindyliza.wmv" selected>Liza and Cindy 2002</option>
  <option value="videos/jumpingapril2002s.wmv">Liza Jumping 2002</option>
  <option value="videos/hack2.wmv">Summer hack 2002</option>
</select>
 <p>&nbsp;</p>
</td>
</tr>
</table></td></tr></table>
 
&nbsp; </body>
</html>

Open in new window

0
 

Author Closing Comment

by:gwendaellwood
ID: 31569711
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
0
 
LVL 29

Expert Comment

by:chilternPC
ID: 24140182
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
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not everyone is tied to the Microsoft Office suite these days, as more free cloud-based solutions are entering the market. You might be used to creating presentations in PowerPoint, but did you know Google offers Slides  (https://www.google.com/slid…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
Viewers will get an overview of how to make and use Drum Racks in Ableton Live. Load new Drum Rack into empty MIDI track: Fill rack with audio samples: Re-arrange sample slots as necessary: Adjust parameters of each slot to tailor each sound a…
Viewers will learn how to use Macros for greater control over Rack parameters in Ableton Live. Group devices into a Rack by selecting them and pressing Command-G (Ctrl-G on PC): Control-click (Right Click on PC) a parameter to access pop-up menu, …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question