Michael Pommerenke: Video in HTML - MozillaFirefox

Einen schönen Guten Tag!!!

Ich habe folgendes Problem: Ich habe versucht folgendes Video in HTML einzubinden:

<HTML><HEAD><TITLE>ActiveMovie Embedded MPG Object Test Page</TITLE></HEAD>
<BODY>
<OBJECT ID="ActiveMovie1" WIDTH="356" HEIGHT="369" CLASSID="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A">
<PARAM NAME="Version" VALUE="1"><PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="-1"><PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowPositionControls" VALUE="0">
<PARAM NAME="ShowSelectionControls" VALUE="0">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableSelectionControls" VALUE="-1">
<PARAM NAME="ShowTracker" VALUE="-1"><PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="AllowHideDisplay" VALUE="-1">
<PARAM NAME="AllowHideControls" VALUE="-1">
<PARAM NAME="MovieWindowSize" VALUE="0"><PARAM NAME="FullScreenMode" VALUE="0">
<PARAM NAME="MovieWindowWidth" VALUE="352">
<PARAM NAME="MovieWindowHeight" VALUE="288"><PARAM NAME="AutoStart" VALUE="0">
<PARAM NAME="AutoRewind" VALUE="-1"><PARAM NAME="PlayCount" VALUE="1">

<PARAM NAME="SelectionStart" VALUE="0">
<PARAM NAME="SelectionEnd" VALUE="32767">
<PARAM NAME="Appearance" VALUE="1"><PARAM NAME="BorderStyle" VALUE="1">
<PARAM NAME="FileName" VALUE="trailer.wmv">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="AllowChangeDisplayMode" VALUE="-1">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayBackColor" VALUE="0"></OBJECT></BODY>

Und es funktioniert im InternetExplorer auch einwandfrei, jedoch unter Mozilla Firefox läuft es gar nicht!

Wo liegt der Fehler, habe schon rumprobiert und nachgelesen, komme aber auf keine Lösung!

Vielen Dank für eure Hilfe!
Beste Grüsse
Micha

  1. Hi,

    Für Mozilla kommst Du AFAIK mit object alleine nicht weiter und kannst z.B. das invalide embed-Element zusätzlich verwenden.

    freundliche Grüße
    Ingo

    1. Hallo,

      ich habe es folgendermaßen angestellt:

      Entweder als Javascript-Routine generieren (eignet sich gut, wenn das Video im externen Fenster geöffnet wird), wobei der gesamte Quelltext ein klein wenig mehr ist...

      <script language="JavaScript">
              <!--

      document.write("<object id="Video" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="320" height="286" type="application/x-oleobject" standby="Der Microsoft Windows Media Player wird geladen." class="Bild">");
                document.write("<param name="src" value=""+Dateiname+"" />");
                document.write("<param name="fileName" value=""+Dateiname+"" />");
                document.write("<param name="AnimationatStart" value="0" />");
                document.write("<param name="TransparentatStart" value="0" />");
                document.write("<param name="AutoStart" value="0" />");
                document.write("<param name="ShowControls" value="1" />");
                document.write("<param name="ShowPositionControls" value="1" />");
                document.write("<embed id="Video" type="application/x-mplayer2" width="320" height="286" src=""+Dateiname+"" fileName=""+Dateiname+"" autostart="0" showcontrols="1" ShowPositionControls="1" animationatstart="0" transparentatstart="0" class="Bild" /></object>");

      //-->
            </script>

      Die Variable Dateiname muss eine absolute Adresse beeinhalten (http://www....) da das ganze sonst bei Firefox nicht funktioniert.

      Hier noch einmal das ganze ohne Javascript:

      <object id="Video" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="320" height="286" type="application/x-oleobject" standby="Der Microsoft Windows Media Player wird geladen.">
            <param name="src" value="http://www.irgendwo.de/beliebigesVideo.wmv" />
            <param name="fileName" value="http://www.irgendwo.de/beliebigesVideo.wmv" />
            <param name="AnimationatStart" value="0" />
            <param name="TransparentatStart" value="0" />
            <param name="AutoStart" value="0" />
            <param name="ShowControls" value="1" />
            <param name="ShowPositionControls" value="1" />
            <embed id="Video" type="application/x-mplayer2" width="320" height="286" src="http://www.irgendwo.de/beliebigesVideo.wmv" fileName="http://www.irgendwo.de/beliebigesVideo.wmv" autostart="0" showcontrols="1" ShowPositionControls="1" animationatstart="0" transparentatstart="0" class="Bild" />
            </object>

      Das funktioniert bei IE, Firefox u.a.

      Schönen Gruß

      Marco