• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: More on NSMovieView using CPU - any workarounds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More on NSMovieView using CPU - any workarounds?


  • Subject: Re: More on NSMovieView using CPU - any workarounds?
  • From: Vince DeMarco <email@hidden>
  • Date: Sat, 22 Sep 2001 15:42:17 -0700

On Friday, September 21, 2001, at 05:40 PM, Adam Iser wrote:

I've completely run into a corner with this NSMovieView issue (where it's eating 3-8% of the CPU's cycles after the sound finishes playing).


My plan was to simply wait until the sound stops playing, then dispose the movie view to prevent it from eating cycles... creating another for the next sound. But there are 2 problems with this ;)

1) there appear to be no notifications issued when a movie finishes playing.
2) [NSMovieView isPlaying] always returns YES!? even after the sound is over...


So I'm stumped. Is this issue fixed in 10.1 (I guess it would be evident in the finder)?

How is everybody else playing sounds? (keeping in mind I need to be able to control each sound's volume independently)


You need to get a copy of the QuickTime documentation, try the Apple Book.

Discovering QuickTime,

There are call backs you can set in given a Movie Structure (ask NSMovie for the QTMovie)

If you want to see an example of doing more of this kind of stuff look at

bMoviePalette on developer.apple.com (http://developer.apple.com/samplecode/Sample_Code/Cocoa/bMoviePalette.htm)

vince


References: 
 >More on NSMovieView using CPU - any workarounds? (From: Adam Iser <email@hidden>)

  • Prev by Date: Re: static typing (Learning Cocoa Chapter 13)
  • Next by Date: Re: static typing (Learning Cocoa Chapter 13)
  • Previous by thread: More on NSMovieView using CPU - any workarounds?
  • Next by thread: CFString from NSString
  • Index(es):
    • Date
    • Thread