Page 1 of 1

Embedding videos

Posted: Sun Mar 02, 2008 10:37 pm
by Zappa
Is there a way how to embed videos that work in IE7 and Firefox.... I'm using the following code but it doesn't seem to load

Code: Select all

<object id="MediaPlayer1" style="left: 0px; width: 349px; top: 82px; height: 285px" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=5,1,52,701" type="application/x-oleobject" standby="Loading Microsoft Windows® Media Player components..." classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" height="285" width="349">
	<param value="/downloads/media/video.wmv" name="fileName">
	</param>
	<param value="true" name="animationatStart">
	</param>
	<param value="true" name="transparentatStart">
	</param>
	<param value="true" name="autoStart">
	</param>
	<param value="true" name="showControls">
	</param>
	<param value="-450" name="Volume">
	</param>
</object>
I've also tried:

Code: Select all

<embed src="/downloads/media/video.wmv" displaybackcolor="black" showstatusbar="1" height="369" width="410"></embed>
Thanks everyone

Re: Embedding videos

Posted: Sun Mar 02, 2008 11:36 pm
by cubix
have a look in the forge, there are a few modules for playing videos..

FLVPlayer and Play would be a good place to start

Re: Embedding videos

Posted: Mon Mar 03, 2008 10:06 am
by Zappa
cubix wrote: have a look in the forge, there are a few modules for playing videos..

FLVPlayer and Play would be a good place to start
I've already had a look at them and the description says they are currently for flash players, audio files and FFmeg?
I didn't want to use the {embed} tag built in the CMS because that uses iFrames.

Thanks

Re: Embedding videos

Posted: Fri Mar 07, 2008 3:57 pm
by vaughnt
Zappa-

You can use a standard HTML Object tab, with the Embed tag inside it. This works for both IE and Firefox. Nothing CMSMS to do with it.

Here is an example I used on http://www.edamar.com ...

Code: Select all

<object width="192" height="153" type="application/x-oleobject" standby="Loading Windows Media Player components..." 
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer">
<param value="uploads/videos/KitBooks.wmv" name="FileName" />
<param value="false" name="autostart" />
<param value="true" name="ShowControls" />
<param value="false" name="ShowStatusBar" />
<param value="false" name="ShowDisplay" />
<param value="true" name="stretchToFit" /> 
<embed width="192" height="173" stretchtofit="1" autostart="0" showdisplay="0" showstatusbar="0" showcontrols="1"
 name="MediaPlayer" src="uploads/videos/KitBooks.wmv" type="application/x-mplayer2"></embed>
</object>
Note that Autostart is set to False and "0" in this case... you would set yours to True and "1" to make it play automagically.