views:

47

answers:

0

Hi all,

I have a follow-up to this question here:

http://stackoverflow.com/questions/2185357/embedded-wmv-video-object-not-working-in-firefox-works-in-ie

In response to a "Windows Media Player for Firefox Plugin" bug, I wanted to see if we could use a different plugin (e.g. VLC) to work around the problem.

(The bug: WMP plugin does not send the "jsessionid" global cookie when it requests a .wmv file. Consequently the application thinks the user has a new/empty session and is not logged in. Our app sends a 302 redirect request to the login page.).

We use TinyMCE to generate the 'embedded media' html. It turns out this html hardcodes "Use Windows Media Player for this .wmv file".

The question

How can I code this html so the browser decides on its own which plugin to use for the mime type? i.e. the html says "Use whatever streaming media plugin you see fit, Mr. Browser, to render this here video file ).

I.e. similar to how you can configure your browser to use open your favorite word processor for "application/msword". For most windows users, MS-Word will fire up when they download a .doc file. Yet they can configure it to bring up OpenOffice/Wordstar/Volkswriter/Emacs if they choose.

Evidently embedded video looks more hardcoded.

Finally, has anyone seen or solved this "windows media always gets a new session" problem?

Code Example #1: Hardcoded ActiveX/MediaPLayer

Here's the code to embed the media file (generated by TinyMCE):

**<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    codebase="http://activex.microsoft.com/activex/controls/mplayer**/en/nsmp2inf.cab#Version=6,4,5,715"
    width="320" height="240">

Code Example #2: Looks Clean, but Fails

From the references, below, this should work. But comes up blank on both windows and linux boxes. (I installed the vlc firefox plugin on both machines. I disabled the windows-media plugin on the windows workstation .)

Perhaps the VLC plugin is broken, i.e. doesn't handle WMV files correctly.

<html>
  <head>
  </head>
  <body>
    <object type="video/x-ms-wmv" data="fishstore.wmv" width="320" height="260">
      <param name="src" value="fishstore.wmv" />
      <param name="autostart" value="0" />
      <param name="controller" value="1" />
    </object>
  </body>
</htm>

References

A few links I found along the way:

http://blog.leekelleher.com/2008/06/09/how-to-best-embed-a-wmv-video-clip/

http://www.alistapart.com/articles/byebyeembed/

thanks