759 Aufrufe
Gefragt in Webseiten HTML von tomham Mitglied (407 Punkte)
Hallo Leute.
möchte auf meiner Seite einen Livestream von meiner Webcam machen, funktioniert auch soweit wenn ich online bin ...
Wenn ich allerdings offline bin möchte ich von meinem Webserver eine Datei namens "offline.wmv" abspielen ...
Code sieht so aus:


<html><head></head><body><object id="WEBCAM 1" width="192" height="169" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft(r) Windows(r) Media Player <\l> components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112<http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab>">
<PARAM NAME="filename" VALUE="offline.wmv">
<PARAM NAME="url" VALUE="offline.wmv">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="0">
<PARAM NAME="ShowStatusBar" VALUE="true">
<PARAM NAME="Autorewind" VALUE="true">
<PARAM NAME="ShowDisplay" VALUE="false">
<PARAM NAME="AutoStart" VALUE="true">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="Playcount" VALUE="999">
<EMBED SRC="offline.wmv" WIDTH="192" HEIGHT="169" type="application/x-mplayer2" name="WEBCAM 1" Playcount=999 autostart=1 showcontrols="0" showstatusbar=1 autorewind=1 showdisplay=0>
</EMBED>
</object>
</body></html>

Das funktioniert leider nicht. die WMV ist im gleichen Verzeichnis wie die html-Datei ...
Wenn ich bei der WMV den vollen Pfad angebe (http://www.meinserver.xy/pfad/offline.wmv) funktioniert es leider auch nicht ...
Bitte um Hilfe !
LG Tom

1 Antwort

0 Punkte
Beantwortet von kicia Mitglied (939 Punkte)
funktionierts, wenn du die seite lokal aufrufst, aber online bist?

wenn du offline bist, ist ".../nsmp2inf.cab" natürlich nicht erreichbar.
Ich weiss aber nicht, ob das trotzdem funktionieren müsste.

(ich geh mal davon aus, dass bei dir lokal ein webserver läufft, sonst gehts natürlich nicht)
...