Trey Piepmeier
Trey Piepmeier

Reputation: 1006

How can you customize embedded QuickTime controls like Apple does?

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?

Upvotes: 0

Views: 2954

Answers (2)

gargantuan
gargantuan

Reputation: 8944

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 (on Wayback Machine)

Apple: About HTML5 Audio and Video

Upvotes: 4

Matt Baker
Matt Baker

Reputation: 3754

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/'></EMBED>

<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.

Upvotes: 1

Related Questions