<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RanaTariq's Blog &#187; Video</title>
	<atom:link href="http://www.ranatariq.com/category/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ranatariq.com</link>
	<description>Tips on Web Design, Development and Search Engine Optimization along-with my thoughts on topics like Religon, Politics &#38; everything.</description>
	<lastBuildDate>Fri, 20 Aug 2010 17:38:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Add Video on a Web Page</title>
		<link>http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/</link>
		<comments>http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 12:28:30 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Video]]></category>
		<category><![CDATA[Media Player]]></category>
		<category><![CDATA[Movies]]></category>
		<category><![CDATA[Quicktime]]></category>
		<category><![CDATA[Real Media]]></category>
		<category><![CDATA[Stream Video]]></category>

		<guid isPermaLink="false">http://www.ranatariq.com/?p=120</guid>
		<description><![CDATA[If you want to stream a video file  to the visitors of your website, The simplest of the process is:

 Create a video file in a common streaming media format
 Upload the file to your web server
 Make a simple hyperlink to the video file

When the visitor clicks on the link the video  [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to stream a video file  to the visitors of your website, The simplest of the process is:</p>
<ol>
<li> Create a video file in a common streaming media format</li>
<li> Upload the file to your web server</li>
<li> Make a simple hyperlink to the video file</li>
</ol>
<p>When the visitor clicks on the link the video  opens directly in the proper player (if installed on the users machine)  on the users machine.</p>
<p>Although this is the easiest way, but there are many cases when you want  the video to play with-in the web page. For this you need to use special HTML tags to embed the video in a web page. Lets&#8217;s discuss 3 of the major types of video/movie files.</p>
<h3>Real Media</h3>
<p>To insert a real media into a web page, you need to insert the following  code.</p>
<p>&lt;OBJECT CLASSID=&#8221;clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA&#8221;</p>
<p>HEIGHT=&#8221;300&#8243; WIDTH=&#8221;200&#8243;&gt;</p>
<p>&lt;PARAM NAME=&#8221;SRC&#8221; VALUE=&#8221;myvideo.rm&#8221;&gt;</p>
<p>&lt;PARAM NAME=&#8221;CONTROLS&#8221; VALUE=&#8221;ImageWindow&#8221;&gt;</p>
<p>&lt;PARAM NAME=&#8221;CONSOLE&#8221; VALUE=&#8221;myvideo&#8221;&gt;</p>
<p>&lt;PARAM NAME=&#8221;BACKGROUNDCOLOR&#8221; VALUE=&#8221;blue&#8221;&gt;</p>
<p>&lt;PARAN NAME=&#8221;center&#8221; VALUE=&#8221;true&#8221;&gt;</p>
<p>&lt;param name=&#8221;loop&#8221; value=&#8221;true&#8221;&gt;</p>
<p>&lt;param name=&#8221;autostart&#8221; value=&#8221;true&#8221;&gt;</p>
<p>&lt;embed src=&#8221;myvideo.rm&#8221; width=&#8221;300&#8243; height=&#8221;200&#8243; controls=&#8221;ImageWindow&#8221;</p>
<p>backgroundcolor=&#8221;blue&#8221; center=&#8221;true&#8221; console=&#8221;myvideo&#8221; loop=&#8221;true&#8221; autostart=&#8221;true&#8221;&gt;&lt;/embed&gt;</p>
<p>&lt;/OBJECT&gt;</p>
<p>Typically  the OBJECT tags are used for compatibility with Internet Explorer and  the EMBED tags are used for compatibility with Mozilla. One of the main  attributes which you would like to set is the autostart property. Set  it to &#8220;true&#8221; if you want the video to play automatically, else set it  to &#8220;false&#8221;.</p>
<p>You can adjust  various  other attributes in the PARAM tags and the embed tags according to your specific requirements. For a  detailed description of all the parameters and their functions please see the <a href="http://service.real.com/help/library/guides/extend/embed.htm" target="_blank">real media guide</a>.</p>
<h3>Windows Media</h3>
<p>Use the following code to embed windows media into a web page:</p>
<p>&lt;OBJECT ID=&#8221;MediaPlayer&#8221; WIDTH=&#8221;300&#8243; HEIGHT=&#8221;200&#8243; CLASSID=&#8221;CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95&#8243;</p>
<p>STANDBY=&#8221;Loading Windows Media Player components&#8230;&#8221; TYPE=&#8221;application/x-oleobject&#8221;&gt;</p>
<p>&lt;PARAM NAME=&#8221;FileName&#8221; VALUE=&#8221;myvideo.wmv&#8221;&gt;</p>
<p>&lt;PARAM name=&#8221;autostart&#8221; VALUE=&#8221;true&#8221;&gt;</p>
<p>&lt;PARAM name=&#8221;ShowControls&#8221; VALUE=&#8221;false&#8221;&gt;</p>
<p>&lt;param name=&#8221;ShowStatusBar&#8221; value=&#8221;false&#8221;&gt;</p>
<p>&lt;PARAM name=&#8221;ShowDisplay&#8221; VALUE=&#8221;false&#8221;&gt;</p>
<p>&lt;EMBED TYPE=&#8221;application/x-mplayer2&#8243; SRC=&#8221;myvideo.wmv&#8221; NAME=&#8221;MediaPlayer&#8221;</p>
<p>WIDTH=&#8221;300&#8243; HEIGHT=&#8221;200&#8243; ShowControls=&#8221;0&#8243; ShowStatusBar=&#8221;0&#8243; ShowDisplay=&#8221;0&#8243; autostart=&#8221;1&#8243;&gt; &lt;/EMBED&gt;</p>
<p>&lt;/OBJECT&gt;</p>
<p>For  various supported parameters list, please visit <a href="http://www.w3schools.com/media/media_playerref.asp" target="_blank">here</a>.</p>
<h3>Quicktime movie (.mov)</h3>
<p>To embed quicktime movies into a web page:</p>
<p>&lt;object  classid=&#8221;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&#8221;  codebase=&#8221;http://www.apple.com/qtactivex/qtplugin.cab&#8221; height=&#8221;250&#8243;  width=&#8221;320&#8243;&gt;</p>
<p>&lt;param name=&#8221;src&#8221; value=&#8221;myvideo.mov&#8221;&gt;</p>
<p>&lt;param name=&#8221;autoplay&#8221; value=&#8221;true&#8221;&gt;</p>
<p>&lt;param name=&#8221;controller&#8221; value=&#8221;true&#8221;&gt;</p>
<p>&lt;param name=&#8221;loop&#8221; value=&#8221;false&#8221;&gt;</p>
<p>&lt;param name=&#8221;type&#8221; value=&#8221;video/quicktime&#8221;&gt;</p>
<p>&lt;param name=&#8221;target&#8221; value=&#8221;myself&#8221;&gt;</p>
<p>&lt;embed  height=&#8221;300&#8243; pluginspage=&#8221;http://www.apple.com/quicktime/download/&#8221;  src=&#8221;myvideo.mov&#8221; type=&#8221;video/quicktime&#8221; width=&#8221;200&#8243; autoplay=true  controller=true loop=false target=&#8221;myself&#8221;&gt;</p>
<p>&lt;/object&gt;</p>
<p>A list of all the supported parameters is listed <a href="http://www.apple.com/quicktime/tutorials/embed2.html">here.</a></p>
<p>Hope this&#8217;ll help, good luck.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+to+Add+Video+on+a+Web+Page+http://www.ranatariq.com/?p=120" title="Post to Twitter"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://plurk.com/?status=How+to+Add+Video+on+a+Web+Page+http://www.ranatariq.com/?p=120" title="Post to Plurk"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-plurk.png" alt="Post to Plurk" /></a> <a class="tt" href="http://plurk.com/?status=How+to+Add+Video+on+a+Web+Page+http://www.ranatariq.com/?p=120" title="Post to Plurk">Plurk This Post</a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;submitHeadline=How+to+Add+Video+on+a+Web+Page" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;submitHeadline=How+to+Add+Video+on+a+Web+Page" title="Post to Yahoo Buzz">Buzz This Post</a> <a class="tt" href="http://delicious.com/post?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to Delicious"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to Delicious">Delicious</a> <a class="tt" href="http://digg.com/submit?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to Digg"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to Digg">Digg This Post</a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=How+to+Add+Video+on+a+Web+Page&amp;link=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/" title="Post to Ping.fm"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=How+to+Add+Video+on+a+Web+Page&amp;link=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/" title="Post to Ping.fm">Ping This Post</a> <a class="tt" href="http://reddit.com/submit?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to Reddit"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to Reddit">Reddit This Post</a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to StumbleUpon"><img class="nothumb" src="http://www.ranatariq.com/wp-content/plugins/tweet-this/icons/tt-su.png" alt="Post to StumbleUpon" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/&amp;title=How+to+Add+Video+on+a+Web+Page" title="Post to StumbleUpon">Stumble This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ranatariq.com/video/how-to-add-video-on-a-web-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

