Treehouse: Grow your CSS skills. Land your dream job.

Last updated on:

Embedding Windows Media

Valid technique, as it doesn't need the <embed> tag.

<object type="video/x-ms-wmv" 
  data="movie.wmv" 
  width="320" height="260">
  <param name="src" 
    value="movie.wmv" />
  <param name="autostart" value="true" />
  <param name="controller" value="true" />
</object>

Reference URL

Comments

  1. LuK
    Permalink to comment#

    I have problems in ie with this one…I want to embed an .asx audio/webstream but IE in versions 6 & 7 doesn’t load the stream^^…had to go back to the embed-tag =/

  2. Sushant
    Permalink to comment#

    How to deal with VarBinary if video is store in format of byte in database and retrieving from ashx how to show video then

Leave a Comment

Posting Code

We highly encourage you to post problematic HTML/CSS/JavaScript over on CodePen and include the link in your post. It's much easier to see, understand, and help with when you do that.

Markdown is supported, so you can write inline code like `<div>this</div>` or multiline blocks of code in in triple backtick fences like this:

```
<script>
  function example() {
    element.innerHTML = "<div>code</div>";
  }
</script>
```