views:

732

answers:

2

I'd like to embed QuickTime movies on my site using custom controls (play/pause/volume) like Apple does on its website. I'm assuming it's just some fancy JavaScript and .gifs/.pngs?

+3  A: 

I think they're using the javascript API for Quicktime and attaching functions to individual elements such as play, pause etc.

Quicktime Javascript API stuff

gargantaun
A: 

A simple example using a shoutcast stream & jQuery:

<EMBED name="shoutcastPlayer" enablejavascript="true" src="qtlogo.mov"
qtsrc="http://foo.bar:554/listen.pls"
autoplay="false" controller="false" loop="true"
pluginspage='http://www.apple.com/quicktime/download/'&gt;&lt;/EMBED&gt;

<a href="#" onclick="$('[name=shoutcastPlayer]')[0].Play();">Play</a>
<a href="#" onclick="$('[name=shoutcastPlayer]')[0].Stop();">Pause</a>

As the other poster pointed out, this is all contained within the QT Javascript API.

Matt Baker