W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

[whatwg] <embed> feedback

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Sat, 22 Nov 2008 00:21:08 -0500
Message-ID: <op.ukz85hxf1ejg13@sandra-svwliu01>
On Fri, 21 Nov 2008 19:28:05 -0500, Ian Hickson <ian at hixie.ch> wrote:

> On Thu, 24 Jul 2008, Michael A. Puls II wrote:
>>
>> Attached are 2 object examples.
>
> Quoting here for completeness:
>
> <!DOCTYPE html>
> <html>
>     <head>
>         <meta charset="utf-8">
>         <title></title>
>     </head>
>     <body>
>         <figure>
>             <!-- WMP 7+ API for IE or for Netscape-compatible browsers  
> using the Firefox WMP plug-in (That also uses the 7+ api) -->
>             <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"  
> type="application/x-ms-wmp" width="320" height="240">
>                 <param name="url" value="file.wmv">
>                 <param name="autostart" value="false">
>                 <!-- WMP 6.4 API for IE or for Netscape-compatible  
> browsers using the Netscape 6.4 WMP plug-in -->
>                 <!-- Assumes application/x-mplayer2 is handled by the  
> Netscape 6.4 WMP plug-in and not the Firefox one -->
>                 <object  
> classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"  
> type="application/x-mplayer2" width="320" height="240">
>                     <param name="filename" value="file.wmv">
>                     <param name="autostart" value="0">
>                     <!-- Load the file with the VideoLan ActiveX or  
> Mozilla plug-in using the Version 2 API -->
>                     <object  
> classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"  
> type="application/x-vlc-plugin" width="320" height="240">
>                         <param name="version"  
> value="VideoLAN.VLCPlugin.2">
>                         <param name="mrl" value="file.wmv">
>                         <!-- Try loading the file with anything that  
> says it can handle it -->
>                         <object type="video/x-ms-wmv" data="file.wmv"  
> width="320" height="240">
>                             Giving up: Embedding <a  
> href="file.wmv">file.wmv</a> failed.
>                         </object>
>                     </object>
>                 </object>
>             </object>
>             <legend>Plug-in markup is too clean and simple</legend>
>         </figure>
>     </body>
> </html>
>
> <!DOCTYPE html>
> <html>
>     <head>
>         <meta charset="utf-8">
>         <title></title>
>     </head>
>     <body>
>         <figure>
>             <!-- WMP 7+ API for IE or for Netscape-compatible browsers  
> using the Firefox WMP plug-in (That also uses the 7+ API -->
>             <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"  
> type="application/x-ms-wmp" data="file.wmv" width="320" height="240">
>                 <param name="url" value="file.wmv">
>                 <param name="autostart" value="false">
>                 <!-- WMP 6.4 API for IE or for Netscape-compatible  
> browsers using the Netscape 6.4 WMP plug-in -->
>                 <!-- Assumes application/x-mplayer2 is handled by the  
> Netscape 6.4 WMP plug-in and not the Firefox one -->
>                 <object  
> classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"  
> type="application/x-mplayer2" data="file.wmv" width="320" height="240">
>                     <param name="filename" value="file.wmv">
>                     <param name="autostart" value="0">
>                     <!-- Load the file with the VideoLan ActiveX or  
> Mozilla plug-in using the Version 2 API -->
>                     <object  
> classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"  
> type="application/x-vlc-plugin" data="file.wmv" width="320" height="240">
>                         <param name="version"  
> value="VideoLAN.VLCPlugin.2">
>                         <param name="mrl" value="file.wmv">
>                         <!-- Try loading the file with anything that  
> says it can handle it -->
>                         <object type="video/x-ms-wmv" data="file.wmv"  
> data="file.wmv" width="320" height="240">
>                             Giving up: Embedding <a  
> href="file.wmv">file.wmv</a> failed.
>                         </object>
>                     </object>
>                 </object>
>             </object>
>             <legend>Plug-in markup is too clean and simple</legend>
>         </figure>
>     </body>
> </html>
>
>
>> I'd be interested in what plug-in (if it's installed) should be loaded:
>>
>> 1. When file.wmv is present.
>> 2. When file.wmv is not present.
>
> Per the current spec:
>
> If the file.wmv is present, the first of the following plugins to be
> supported:
>
>  1. clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6
>  2. clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
>  3. clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921
>  4. The plugin that supports whatever the MIME type of the file.wmv is,  
> if
>     it had a type and it wasn't "application/octet-stream".
>  5. The plugin for "video/x-ms-wmv".
>  6. no plugin.
>
> If the file.wmv is absent, the first of the following plugins to be
> supported:
>
>  1. clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6
>  2. clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
>  3. clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921
>  4. no plugin.
>
> The only difference between the two files is the data="" attribute on the
> <object>s with classid="", but per spec, if there is a classid=""
> attribute, the data="" attribute doesn't matter.
>

Thank you.

-- 
Michael
Received on Friday, 21 November 2008 21:21:08 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:07 UTC