about playing quicktime movies in Cocoa
about playing quicktime movies in Cocoa
- Subject: about playing quicktime movies in Cocoa
- From: Antonio Inojal <email@hidden>
- Date: Wed, 15 May 2002 21:18:01 -0400
Hello to all, I appreaciate all those who have answered my past
questions, they have helped me a lot. Now I have a new one. I was
looking at the NSMovie and NSMovieView classes and became interested. I
saw the methods for managing playing, pausing, stopping, etc. ,
including a delegate method to signal when a movie has stopped. But I
didn't see a method, like an initializer, for opening a quicktime movie
file. In NSSound, this is done very nicely by the initializer:
mySound = [[NSSound alloc]
initWithContentsOfFile:@"/System/Library/Sounds/Ping.aiff"
byReference:NO]; Where mySound is an NSSound object.
As we can see there is an initializer which takes an NSString as a
parameter to indicate the file location. This works very nicely. I tryed
looking for a similar initializer in NSMovie but all I found was -
initWithMovie: and - initWithURL:byReference:
So far initWithURL is the best choice. But who wants to access a file by
a url? At least for such a simple task I don't want it. The other,
initWithMovie: , asks one to send an NSMovie to it...
My question is, can I make a total Obj C based application which uses
the quicktime API to play a movie? I am not talking about editing
nothing, or doing very comples tasks...I only want to open and play a
movie, that's all. Can it be done with Obj. C only?
I appreciate you all's time in reading this message very much. Thank You
Tony
_______________________________________________
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.