开发者

How can you customize embedded QuickTime controls like Apple does?

开发者 https://www.devze.com 2022-12-09 14:30 出处:网络
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'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

精彩评论

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