Add live video from a built-in or plugin iSight camera on a Webpage using Quartz Composer
Categories:
This page only works if you are using an Apple Mac computer that has an iSight camera either built into the computer or has an external iSight camera plugged in.
As you'll see, below is a QuickTime movie embedded into a webpage. The QuickTime movie makes use of the Quartz Composer engine and feeds live data from the iSight camera. Quartz Composer is built into the Mac OS X operating system, hence it is restricted to working only on Macintosh computers.
take a look and see what all the fuss is about!
Want to build this into your own pages?
It's simple, here's how:
- Copy and paste the following HTML code into a webpage...
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
width="320" height="240" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" VALUE="http://www.jonathansblog.net/userfiles/live_isight_video.mov"/>
<param name="autoplay" VALUE="true"/>
<param name="controller" VALUE="false"/><embed src="http://www.jonathansblog.net/userfiles/live_isight_video.mov" width="320" height="240" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/" />
</object>
- You can download the live_isight_video.mov file from this webserver. (CTRL click the link and Save As...)
Comments
visitor
9 July 2007 - 8:10pm
Permalink
John Johnston
Hi Jonathan,
Very cool indeed. didn't work on my old G4 but on the school macbook it is perfect.
I can also play the movie in SuperCard and use it to capture from the isight via a script, which has got me thinking.
Thanks so much for sharing this.
John @ Sandaig
visitor
11 July 2007 - 12:08am
Permalink
Shirley
What an amazing idea! Thanks, Jonathan.
visitor
16 July 2007 - 10:54am
Permalink
Hal
Wow... pretty cool stuff... but reported in O'Reilly over a year ago? And here:
http://www.tuaw.com/2006/11/14/neat-isight-trick-seeing-you-seeing-me/
But, all the same, it's worth mentioning it regularly - well done!
Jonathan
16 July 2007 - 11:58am
Permalink
Jonathan
That's the one... I was developing some stuff in Quartz Composer last week and stumbled across that. Funny that it wasn't made more of it back then. Hey ho.
J
visitor
26 July 2007 - 7:57pm
Permalink
Doug
very cool.
but how do i paste into a webpage?
Jonathan
28 July 2007 - 11:32am
Permalink
Jonathan
Hi Doug,
If you are building an HTML web page, go to the HTML code view of the page and simply paste in the HTML code that I have shown above. Save the page and view in a web browser.
Hope that helps
J
visitor
2 October 2007 - 3:44am
Permalink
abraham weiss
WOW..ALL I CAN TELL YOU IS THAT I PUT IT IN MY WEBSITE AND IT WORKS AMAZING
THANKS AGAIN FOR THAT INFO...
visitor
18 October 2007 - 3:46pm
Permalink
Matthew Burton
Would it be possible to setup so that you could view the live feed from another mac on the local network? ie if you wanted to use it to monitor your office room from the lounge?
Does anyone know of any good external mac cameras to use as an isight camera - the built in ones are no good if you want to take a decent quick snapshot of a product ?
visitor
20 March 2008 - 1:00pm
Permalink
Coen
Hi, is it possible to create a code so it works on hyves also? (As a gadget)
Coen
visitor
9 April 2008 - 1:45am
Permalink
nicoduka
At WWDC, Glen had the unenviable task of hitting the compatibility lab and testing the upcoming release of iGlasses on as many computers as he could. When checking out the new 2.2 and 2.4 GHz MacBook Pros, he noticed something interesting about the built-in iSight:
It’s a whole new camera. Really!
First, looking at System Profiler:
It has a new USB PID. What I’ll henceforth have to refer to as the original built-in iSight, had the USB Product ID: 0×8501 and reports its manufacturer as Micron. The new built-in iSight has the Product ID of 0×8502 and reports manufacturer of Apple Inc.
Now the cool part: It’s a 1.3 megapixel sensor! I wrote a simple test application to capture a frame of video using an SGDataProc and save it to the Desktop. On my older 2.33 GHz MB Pro with the original built-in iSight, what I get is a VGA (640×480) image. This is the maximum size of the original camera, which I know for sure uses a VGA sensor.
Then, braving the 95 degree the heat, we got on our bikes and cruised down to the Cambridge Apple Store. After fighting our way through the crowds of people asking if they can pre-order an iPhone, we commandeered some MB Pros. The same test program produced a nice, big 1.3 MP (1280×1024) image.
Nutricion
visitor
23 June 2008 - 9:36am
Permalink
Heavyweek
THis iSight in Quartz Composer doesn't appear to work any more qith QC 3 and QT7.5 It works in the IDE visual preview but not as a exported QT file.
visitor
22 February 2010 - 5:07am
Permalink
Charles Everwood
I concur with "Heavyweek" - this QC patch, and others like it, only work in QC viewer and preview, but the exported QT file just shows a black screen. I have QC-3.1, QT-7.6.4 on MacOS-10.5.8
Add new comment