Page 1 of 1

embedding video...

Posted: Thu May 28, 2009 9:24 am
by StuL
I didnt know where else to put this... :'(

Am trying to embed a vid on a CMSMS page by using the html option on the wysiwyg. I've tried the following code in a content block, on the page, and in a template.

Code: Select all

<object width="240" height="200" type="application/x-oleobject" standby="Loading Windows Media Player components..." 
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer">
<param value="uploads/videos/What_is_video.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="240" height="200" stretchtofit="1" autostart="0" showdisplay="0" showstatusbar="0" showcontrols="1"
 name="MediaPlayer" src="uploads/videos/What_is_video.wmv" type="application/x-mplayer2"></embed>
</object>
The media player shows, but the controls dont work.

Anyway, does anyone have any suggestions on how to properly embed a video file in a CMSMS page?

There are some really weird behaviours going on.
When I use the HTML switch on the content editor and paste the above code in, CMSMS dumps the object, but not the embed (both in the page and global content) Then if I go back to edit it again, the html view won't load, so I have to delete the vid from the wysiwyg to paste the code back in to the html view

I've tried embedding the code in between literal tags in the template, but thats not really the answer. (didn't make any difference anyway)
the vids are chmod 777 as is the video folder, and it isnt working in IE, FF, Opera and Chrome...

thanks for looking...

Re: embedding video...

Posted: Thu May 28, 2009 1:50 pm
by Nullig
You could try using the Object tag:

http://dev.cmsmadesimple.org/projects/objecttag

Nullig

Re: embedding video...

Posted: Sat May 30, 2009 6:05 am
by StuL
magical. that was the answer. thanksĀ  ;)

Re: embedding video...

Posted: Thu Jun 11, 2009 4:48 am
by viebig
great! thanks for using it.

Please let me know if you have feature requests.

add [solved] to the subject so other can take benefit of this discussion

Regards