I am trying to add a video tag to a Sharepoint 2007 website without success.
I created a new Content Editor web part and entered this code:
http://pastebin.ca/2076724
<video id="movie" width="320" height="240" preload controls>
<source src="/videos/test.ogv" type='video/ogg; codecs="theora, vorbis"' />
<object id="MediaPlayer" width="320" height="240" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Windows Media Player components..." type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://www.domain.com/videos/test.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="http://www.domain.com/videos/test.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"></EMBED>
</OBJECT>
</video>
The controls are uploaded, the video is displayed when the video is saved (so that the link is not broken), but the video does not play.
What I did was save the page. As for my local disk and tada: it works.
I searched for the code several times. I noticed that Sharepoint changes the code a bit, but the same code works locally, so ..
I also do not have a document like HTML5 on my site. (neither locally).
Ideas?
source
share