Re: NSMovieView blocks Energy Saver
Re: NSMovieView blocks Energy Saver
- Subject: Re: NSMovieView blocks Energy Saver
- From: Ricky Sharp <email@hidden>
- Date: Sat, 23 Oct 2004 16:27:42 -0500
On Oct 23, 2004, at 2:35 PM, Michael Diehr wrote:
I'm using a NSMovieView inside a ScreenSaverView to play back
quicktime movies. It works fine, but I notice two significant
problems:
1. the NSMovieView captures mouse clicks and key presses (so that if
the user hits the space bar or clicks in the window, instead of
exiting the screensaver the movie simply pauses).
2. The energy saver will never kick in when the movie is playing.
Is there any way to tell QuickTime and/or the Energy Saver control
panel to honor energy saving settings while a NSMovieView is playing?
While it would be a lot more work, you could do things manually by
obtaining the movie's individual frames and rendering them. The
following example relies on QuickDraw, but it will show you how to use
the GetNextInterestingTime function.
<
http://developer.apple.com/samplecode/CocoaVideoFrameToGWorld/
CocoaVideoFrameToGWorld.html>
___________________________________________________________
Ricky A. Sharp
mailto:email@hidden
Instant Interactive(tm)
http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden