Re: QTMovie weird behavior
Re: QTMovie weird behavior
- Subject: Re: QTMovie weird behavior
- From: Tim Monroe <email@hidden>
- Date: Mon, 6 Mar 2006 12:13:54 -0800
On Mar 5, 2006, at 2:32 PM, Aleaxander Cohen wrote:
On 5-Mar-06, at 3:23 PM, Matt Neuburg wrote:
On Sat, 04 Mar 2006 13:57:30 -0500, Aleaxander Cohen
<email@hidden> said:
Im using a QTMovie in an app to control music and video. Whenever i
send the 'play' message, the media starts playing for about 3
seconds, then abruptly stops. I need to call play again if i want it
to continue playing. Is there something i'm missing here? To i need
to call an update method within a timer or something?
Are you prematurely releasing the movie or anything like that? m.
Nope, its being retained and only released when it should be. I did
find a fix, but im not sure why i actually need to do this with
QTKit. Im calling 'MoviesTask(NULL, 0)' in the QTMovie
movieShouldTask: delegate.
You should not do this, and you should not need to. QTMovie objects
task themselves. The movieShouldTask: delegate is not officially
deprecated, but its use is not currently advised. Are you creating
the QTMovie on the main thread? Are you subsequently migrating it to
a background thread?
Maybe you can send me the code snippets where you create the QTMovie
object, off-list; try monroe AT apple DOT com
On another note, are there any docs anywhere that explains what the
values are that are contained in the
QTMovieLoadStateDidChangeNotification notification's info?
The values are defined in Movies.h:
enum {
kMovieLoadStateError = -1L,
kMovieLoadStateLoading = 1000,
kMovieLoadStateLoaded = 2000,
kMovieLoadStatePlayable = 10000,
kMovieLoadStatePlaythroughOK = 20000,
kMovieLoadStateComplete = 100000L
};
Tim Monroe
QuickTime Engineering
_______________________________________________
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