Link Video
5 posts by 3 authors in: Forums > CMS Builder
Last Post: August 7, 2008 (RSS)
Hi,
Please could you tell me the best way to embed a video within cmsb output. My thought is to have within my html file, a cell that displays a video from YouTube etc. The idea is that I would just need to change the url for a different video to be made available.
Alternatively can I set it up so that cmsb displays either a rotating choice of videos or publishes a different video say every 5 days, probably best to do that manually though through changing the url referenced?
Actually whilst I type this I am thinking why not just do it manually in the html code, what do you think is best?
Mickey
Please could you tell me the best way to embed a video within cmsb output. My thought is to have within my html file, a cell that displays a video from YouTube etc. The idea is that I would just need to change the url for a different video to be made available.
Alternatively can I set it up so that cmsb displays either a rotating choice of videos or publishes a different video say every 5 days, probably best to do that manually though through changing the url referenced?
Actually whilst I type this I am thinking why not just do it manually in the html code, what do you think is best?
Mickey
Re: [Michael Blake] Link Video
By Dave - August 6, 2008
Hi Mickey,
The first step is to figure out how to display your videos in a plain html file. Once you do that you should be able to notice what's different in each block of code. If it's just an url you can have CMS Builder display that url in the code.
So when I go to youtube I see this embed code:
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/7Psg3WEhc1w&hl=en&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/7Psg3WEhc1w&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed>
</object>
So if I had a text field for "YouTube Video Url" I could just insert that where the red url is.
Hope that helps!
The first step is to figure out how to display your videos in a plain html file. Once you do that you should be able to notice what's different in each block of code. If it's just an url you can have CMS Builder display that url in the code.
So when I go to youtube I see this embed code:
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/7Psg3WEhc1w&hl=en&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/7Psg3WEhc1w&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed>
</object>
So if I had a text field for "YouTube Video Url" I could just insert that where the red url is.
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] Link Video
Thanks Dave,
I am slightly held up whilst I await a response from my web-host about file uploads not happenning. Once that arrives I will try this out :-)
Mickey
I am slightly held up whilst I await a response from my web-host about file uploads not happenning. Once that arrives I will try this out :-)
Mickey
Re: [Michael Blake] Link Video
By Wolf-E - August 7, 2008
Hi, i've embedded several videos into CMSB pages very easily. First off, go to: http://www.dvdvideosoft.com/ and grab their free video to flash (.flv) converter tool. It is small in size but capable of converting a large number of video formats into .flv - which saves wondering if the end user has all manner of viewers installed. If you prefer you can convert it to a .swf file format. It's up to you. Once the conversion is complete, the software generates the player (player.swf) to place in a relevant folder (in this case 'videos'). Then embedded the converted file into the page using plain old HTML and style sheets.
<div id="movie">
<p align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" id="player" align="middle">
<param name="movie" value="videos/player.swf?file=YOURMOVIE.flv&size=false&aplay=false&autorew=false&title="/>
<param name="menu" value="false"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#FFFFFF"/>
<embed src="videos/player.swf?YOURMOVIE.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="320" height="240" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/></object>
</p></div>
The free converter offers a few varieties on the look of it and runs/pauses etc when the page loads and the viewer hits 'play'. As freebies go, it's not bad.
Cheers.
<div id="movie">
<p align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" id="player" align="middle">
<param name="movie" value="videos/player.swf?file=YOURMOVIE.flv&size=false&aplay=false&autorew=false&title="/>
<param name="menu" value="false"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#FFFFFF"/>
<embed src="videos/player.swf?YOURMOVIE.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="320" height="240" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/></object>
</p></div>
The free converter offers a few varieties on the look of it and runs/pauses etc when the page loads and the viewer hits 'play'. As freebies go, it's not bad.
Cheers.
Re: [Wolf-E] Link Video
Hi Wolf-E,
Thanks for that excellent info, I'll give it a go.
Many thanks,
Mickey
Thanks for that excellent info, I'll give it a go.
Many thanks,
Mickey