Embedding video

4 posts by 4 authors in: Forums > CMS Builder
Last Post: April 25, 2010   (RSS)

Re: [WildMan] Embedding video

By Damon - May 25, 2009

Hi Dave,

There is two different methods that I use to embed youtube videos:

1. Using just the video URL, in CMS Builder (using the WYSIWYG editor) click on the media button for insert/edit embedded media. In the popup, under the General tab:
Type: Flash
File/Url: enter you youtube URL here

2. The other method is to copy the embed code from youtube, then click on the HTML button in the WYSIWYG editor (in CMS Builder) and paste the code.

Both methods work for me. Can you give some more details and a link to the page?
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] Embedding video

By ikanizaj - April 25, 2010

I have problem displaying embeded youtube video in IE, it works fine in Chrome and firefox, but it doesn't show up in IE. It only displays a missing link?
--
Igor Kani¾aj

Re: [ikanizaj] Embedding video

By gkornbluth - April 25, 2010 - edited: April 25, 2010

Hi Igor,

I had the same issue. Here's an excerpt from my CMSB Cookbook www.thecmsbcookbook.com on how to solve it.

First, download the free YouTube video downloader from http://www.xilisoft.com/download-youtube-video.html

Create an upload field that will accept 1 .flv file, a video_title text field, and if necessary, a video_image upload field.

Then, to render a blank video screen in the viewer:

<embed src="http://freevideocoding.com/flvplayer.swf?file=http://your_site.com/
<?php foreach ($common_informationRecord['video'] as $upload): ?><?php echo $upload['urlPath'] ?><?php endforeach ?>
&autoStart=false" width="432" height="240" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</p><br /><span class="Medium-Text-Bold"><?php echo $common_informationRecord['video_title'] ?></span>


To render an embedded still image to click on:

<?php foreach ($common_informationRecord['video_image'] as $upload): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" <?php endforeach ?>style="cursor:pointer;" onclick="this.parentNode.innerHTML = '\x3Cembed src=\'http://freevideocoding.com/flvplayer.swf?file=http://your_site.com
<?php foreach ($common_informationRecord['video'] as $upload): ?><?php echo $upload['urlPath'] ?><?php endforeach ?>
&autoStart=true\' width=\'325\' height=\'250\' quality=\'high\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\'\x3E\x3C/embed\x3E';" />

<br /><span class="Medium-Text-Bold"><?php echo $common_informationRecord['video_title'] ?></span><br><span class="Medium-Text">CLICK THE IMAGE TO PLAY THE VIDEO</span>


The line breaks are only there for clarity. There should be no extra spaces. Change the sizes to fit your application and the URL to match your web site URL.

There's more information at 'http://freevideocoding.com

Hope that solves some of the mystery.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php