开发者

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?


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜