<?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>Quicktime Video Archives - gj</title>
	<atom:link href="https://blog.gaiterjones.com/tag/quicktime-video/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/tag/quicktime-video/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Mon, 24 Sep 2012 14:25:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>How to Embed Quicktime Video Correctly in a Web Page</title>
		<link>https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/</link>
					<comments>https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Mon, 09 Jan 2012 12:49:18 +0000</pubDate>
				<category><![CDATA[Darwin Streaming Server]]></category>
		<category><![CDATA[Quicktime Video]]></category>
		<category><![CDATA[Streaming]]></category>
		<category><![CDATA[darwin streaming server]]></category>
		<category><![CDATA[Quicktime Embed Code]]></category>
		<category><![CDATA[RTSP]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=638</guid>

					<description><![CDATA[As a HUGE David Bowie fan, I like to celebrate his birthday (he was 65 yesterday) with lots of Bowie videos and music. I like to share the videos with...<a class="more-link" href="https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="hang-2-column     alignnone" title="How to embed quicktime video" src="http://images.apple.com/downloads/images/essentials_quicktime20070611.png" alt="" width="120" height="120" />As a <em>HUGE</em> <a href="http://www.davidbowie.com">David Bowie</a> fan, I like to celebrate his birthday (he was 65 yesterday) with lots of Bowie videos and music. I like to share the videos with friends using Apples Darwin streaming server to create a live streaming playlist..Each year I do this I forget how to correctly embed the Quicktime video in html. So after searching around a lot for the best multi browser compatible way to do this here is the <em>correct</em> way to embed Quicktime video into your web site.</p>
<p>My example will embed the video using Apples recommended multi browser html and javascript code,  reference movie file and a poster image.</p>
<p>First, the reference movie file. If you use Quicktime Pro you can get the software to generate a reference file when you encode your movies for the web. The reference file has a .mov file extension but is not a media file instead it passes information to Quicktime to help it determine the best media to play for the client, i.e. low bandwidth version, iPhone version etc. In my case I am streaming all my media through a <a title="Apple Darwin Streaming Server Compilation &amp; Installation for Linux" href="https://blog.gaiterjones.com/how-to-install-apple-darwin-streaming-server/">Darwin Streaming Server </a>using RTSP and will create a reference file that points to the videos on my Darwin server.</p>
<p>The media reference file is accessed from Quicktime via HTTP so needs to be saved on in a publicly accessible area of your site.</p>
<p>In my example I am going to embed Bowies Lets Dance video. The video is saved in my Darwin media folder<em> /home/media/video</em> and is called <strong>davidbowie-lets-dance.mp4.</strong></p>
<p>In my website folder I create a reference file called <strong>davidbowie-lets-dance.mov</strong> and paste the following text into it.</p>
<p><em><strong>RTSPtextRTSP://medazzaland.co.uk:554/video/davidbowie-lets-dance.mp4</strong></em></p>
<p>We need a &#8220;poster&#8221; image to represent the video, this will be shown on the embed page before the video plays, so we simply take a frame from the video and save it in a publicly accessible folder, in this example its called <strong>davidbowie-lets-dance.png</strong></p>
<p>Now the HTML code to embed the video. In the head section we need to include Apples javascript and some styling that is used for the Click Here link on the embedded video.</p>
<pre class="brush:xml">&lt;script src="http://www.apple.com/library/quicktime/scripts/ac_quicktime.js" language="JavaScript" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://www.apple.com/library/quicktime/scripts/qtp_library.js" language="JavaScript" type="text/javascript"&gt;&lt;/script&gt;
&lt;link href="http://www.apple.com/library/quicktime/stylesheets/qtp_library.css" rel="StyleSheet" type="text/css" /&gt;</pre>
<p>And now for the embed code which should go between the body tags of your html</p>
<pre class="brush:xml">	&lt;div id="quicktimevideo"&gt;
		&lt;script type="text/javascript"&gt;&lt;!--
		QT_WritePoster_XHTML('Click to Play - David Bowie - Lets Dance', 'images/davidbowie-lets-dance.png',
			'http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov',
			'720', '576', '',
			'controller', 'true',
			'autoplay', 'true',
			'bgcolor', 'black',
			'scale', 'aspect');
	//--&gt;
	&lt;/script&gt;
	&lt;noscript&gt;
	&lt;object width="720" height="576" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"&gt;
		&lt;param name="src" value="images/davidbowie-lets-dance.png" /&gt;
		&lt;param name="href" value="http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov" /&gt;
		&lt;param name="target" value="myself" /&gt;
		&lt;param name="controller" value="false" /&gt;
		&lt;param name="autoplay" value="false" /&gt;
		&lt;param name="scale" value="aspect" /&gt;
		&lt;embed width="720" height="576" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"
			src="images/davidbowie-lets-dance.png"
			href="http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov"
			target="myself"
			controller="false"
			autoplay="false"
			scale="aspect"&gt;
		&lt;/embed&gt;
	&lt;/object&gt;
	&lt;/noscript&gt;

	&lt;/div&gt;</pre>
<p>This code should work across all browsers and will embed the video using the poster image as a link as show below.</p>
<figure id="attachment_639" aria-describedby="caption-attachment-639" style="width: 372px" class="wp-caption alignnone"><a href="http://tv.medazzaland.co.uk/?play=davidbowie-lets-dance"><img fetchpriority="high" decoding="async" class=" wp-image-639   " title="Embedded Quicktime Video Example" src="https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1-620x485.jpg" alt="Embedded Quicktime Video Example" width="372" height="291" srcset="https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1-620x485.jpg 620w, https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1-440x344.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1.jpg 671w" sizes="(max-width: 372px) 100vw, 372px" /></a><figcaption id="caption-attachment-639" class="wp-caption-text">Embedded Quicktime Video Example</figcaption></figure>
<p>&nbsp;</p>
<p>Notice that the embed code points to the reference .mov file with an http link, the reference file then redirects Quicktime to the correct RTSP link for the video.</p>
<p>If you want to serve up a lot of videos in this way, you can create the reference file on the fly with PHP as I have done with this example &#8211; click the photo above to goto a demo page. The video information, name, title, size etc. are all stored in a database, the PHP script pulls out the video info from the database and creates the reference files and html on the fly.</p>
<p>As a side note, I was unable to compile Darwin from source under the latest version of Ubuntu Server 11.10, I had to use previously compiled files from another Ubuntu server running Ubuntu 8.x for the install.</p>
<p>I am still looking at perfecting the MP4 encoding for Darwin streaming, so more on that another time and Happy Birthday David Bowie!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		<enclosure url="http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov" length="69" type="video/quicktime" />

			</item>
	</channel>
</rss>
