NSMovieView stops playing
NSMovieView stops playing
- Subject: NSMovieView stops playing
- From: Ben Haller <email@hidden>
- Date: Sat, 10 May 2003 01:10:24 -0700
Hi! I've just surfed the archives fairly extensively, and although I
found perhaps five different people asking about this problem, I didn't
find a solution posted by anybody. So I'm hoping there's someone there
who knows the answer and will enlighten us all.
I'm trying to use NSMovie and NSMovieView to play a sound (audio
only). It's about six and a half minutes long. My code is brain-dead
simple; (from memory -- exact method names may differ, but it's not
like the API is large :->): alloc-initWithURL: for the NSMovie,
alloc-initWithFrame: for the movie view, setMovie:, start:. The sound
will play for some random length of time (occasionally all the way
through, usually only twenty or thirty seconds), and then cut out. I
think once or twice it has started playing again after a while, but
usually it seems to be dead for good.
Does anybody have a workaround? Vince DeMarco mentioned not using
NSMovieView at all, but rather just using NSMovie and direct QT API;
I'm not sure how to do this, but I will look into the book he
recommended if nobody offers a better solution. Is there a simple
example somewhere of doing this? I really just need the most basic
case of loading and playing the sound; I'm not trying to do anything
fancy, I just can't have the sound cutting out partway through...
Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.