Re: [ikanizaj] Embedding video
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.htmlCreate 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.comHope 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