Embedding YouTube videos in your page
Date: 26-Jul-2010
There are two ways to add video to your populus website. The first is to upload your video in .flv format (Macromedia Flash Video) to the media section as 'video', and then create a video module. The second is to upload the video to YouTube and then add the embed script to the relevant field in the admin
The process to add a YouTube video is as follows.
- Upload your video to YouTube (you'll need to be a registered user).
- Generate the embed script from YouTube. As part of that process you will be asked to specify the 'height' and 'width' of the video. You should ensure that this matches the area in which you wish to display the video.
- Copy the embed script from YouTube and paste it into the relevant field in the administration area.
The following is an example of a YouTube embed script (added without clicking source).
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/3IwDHvNxjJo&hl=en_US&fs=1?rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3IwDHvNxjJo&hl=en_US&fs=1?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
And here is the YouTube video when the embed script is added to the admin as 'source'.
