Embedding video

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

By WildMan - May 25, 2009

I am trying to show my client how he can embed video into his articles - and when i try both the EMBED code and the URL link of the video, it shows up in the preview box in when I am creating the article but not in the final page on the web. Can anyone help me with this? Is there a special setting that I need to configure in order to display embedded video in the articles?

Dave

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