Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Play and Pause a movie on keystroke?



Hi,

Please find attached a commented leopard patch. Similar approach to the others for Tiger - externalise the timebase -> use a 'toggle' switch to start / stop a stopwatch driving the timebase of the movie.

In Leopard, if you set the movie to 'asyncronous mode' (allowing sound playback) - the movie is de-coupled from the QC time bases, and you have to use the movie position data (in a loop) with a 'sample and hold'. I found if you set the loop duration to a very small number - . 001 - it effectively pauses the movie.

You'll need to change the movie paths to your own local movies.

Cheers, Ian

Attachment: video keyboard pause control.qtz
Description: application/quartzcomposer



*******************************
Ian Grant
Senior Lecturer in Digital Art
Faculty of the Arts
Thames Valley University
Ealing, UK
W5 5DX
<email@hidden>
*******************************



On 4 Feb 2008, at 14:22, Benjamin Khoo wrote:

hi all

i was wondering if it is possible to play and pause a movie on keystroke?
i have managed to get a movie to play, but i haven't been able to find a way to pause the playback
does any one have any idea how it can be done?


thanks lots

--
bENJAMIN kHOO
qIU wENDA
http://www.copperblue.per.sg
http://himiko.dnsalias.net:8000
gpg --search-keys email@hidden

perl -e "while(length(\$s='1079797275327873776574786966')-(++\ $i*2)>=0){push(@_,substr(\$s,length(\$s)-\$i*2,2))}print pack('c'.scalar(@_),@_)"



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden


This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Play and Pause a movie on keystroke? (From: Benjamin Khoo <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.