Embedding Windows Media, Part 2
Microsoft would like you to embed Windows Media with the classid attribute that calls the ActiveX control. That classid attribute, because it is non-standard, causes other browser to ignore the object. While I was researching this chapter, I discovered a new, standards-compliant way of embedding Window Media files that works on all major browsers, except Safari 2.
To embed Windows Media in a standards-compliant way:
1. | Begin the movie by typing <object.
|
2. | Specify the MIME type for Windows Media File movies by entering type="video/x-ms-wmv".
|
3. | Indicate the name and location of the movie on your server with data="filename.wmv".
|
4. | Specify the dimensions of your movie in pixels with width="w" height="h".
|
5. |
Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.