Valid XHTML <object> Tags for Windows Media (.wmv) Video - Web Team Procedures and Notes

This page is intended for use only by the Web Team.

NOTE: Subject to change.

Go to Code for Video, Slideshows, and more.

Embedding a Windows Media Video (.wmv) file using Valid XHTML

NOTE: Tested and validates. DOWNLOADS ENTIRE MOVIE BEFORE play can begin. Best used ONLY for SMALL file sizes. Better still, use Ohlone's YouTube account (YouTube doesn't accept WMV files so convert it first).

<div class="embeddedmedia video centertag">
<span class="source"><a href="PATHFILENAME.wmv">View TITLE video by Ohlone College
  in external video application.</a></span><br />
<span class="smalltext">(Video is not captioned; no transcript.)</span>
<object type="video/x-ms-wmv" 
  width="350" height="285" class="video">
  <param name="src" value="PATHFILENAME.wmv" />
  <param name="controller" value="true" />
  <param name="autostart" value="0" />
</object><br />
</div>
  • Replace PATHFILENAME.wmv with desired path and filename for *.wmv file
  • NOTE: Firefox "blanks out" the background behind the video when the scrollbar is touched, so the class on the <object> tag makes sure there's a colored background - so the video space on the page isn't just a big white nothing.
  • http://joliclic.free.fr/html/object-tag/en/object-video.xhtml#mov