Uploading the Video
First you must upload/save your video to your web server. You may want to create a folder called "video" and save it there. So the path to your video will be something like http://yoursite.com/video/movie.avi.
Embedding the Video
The web browser treats videos differently. It may work in one browser, may not work in another. So you should use both old and new HTML embed tags and embed. See the sample code below:
embed a video, just copy the code from the "Embed" box—you can find it in the "About This Video" box when you're watching the video. Once you've copied the code, just paste it into your website or blog to embed it.
Also, please note that if you don't want one of your videos to be embedded on other websites, you can disable that feature by following the steps below:
- Within your account, click the "My Uploaded Videos" link (http://youtube.com/my_videos).
- Click the "Edit Video Info" button to the right of the video in question.
- Under "Sharing Options," click the button next to "No, external sites may NOT embed and play this video."
<!-- begin embedded Flash file... -->
<table border='0' cellpadding='0' align="left">
<tr><td>
<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'
width="320" height="240">
<param name='movie' value="http://put your servername/path/to/media.file">
<param name='quality' value="high">
<param name='bgcolor' value='#FFFFFF'>
<param name='loop' value="true">
<EMBED src="http://put your servername/path/to/media.file" quality='high' bgcolor='#FFFFFF' width="320"
height="240" loop="true" type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded Flash file -->
</table>
No comments:
Post a Comment