NSMovieView never !isPlaying?

  • (I sent this out before, but my network was down, so I sent it from
    another account and was moderated till who knows when)

    Okay, so I created this nice NSMovieView object that I can play NSMovies
    in.  aiff and mp3 files are coming out great.  I didn't add it into any
    contentViews cause I wanted to control it entirely programatically.
    So, I
    wanted my NSMovieView to start playing another song after it gone done
    with whatever it is playing now.  To check that, I probably should just
    call isPlaying().  Hmm... the only thing is, it always returns true
    unless
    I manually call stop off of my NSMovieObject.  The song will be done
    playing, I'll keep checking if my NSMovieView object is !isPlaying(),
    but it always returns true!  So, how do I know when my NSMovieView
    object is done playing it's current movie?  Is there a way?

    Thanks,
    F-bacher
  • Okay, so I created this nice NSMovieView object that I can play NSMovies
    in.  aiff and mp3 files are coming out great.  I didn't add it into any
    contentViews cause I wanted to control it entirely programatically.  So, I
    wanted my NSMovieView to start playing another song after it gone done
    with whatever it is playing now.  To check that, I probably should just
    call isPlaying().  Hmm... the only thing is, it always returns true unless
    I manually call stop off of my NSMovieObject.  So, how do I know when my
    NSMovieView object is done playing it's current movie?  Is there a way?

    Thanks,
    F-bacher

    =======================================================================
    Matthew Allen Fahrenbacher        ICS-CCSO Tech Crew and Site Con
    Email: <fahrenba...>          Pager: <fahrenba...>
    Page: http://fahrenbacher.com

          James T. Kirk - "Spock, the women on your planet are logical.No
                          other planet in the galaxy can make that claim."
    ========================================================================
  • On Saturday, October 13, 2001, at 03:41 pm, matthew allen fahrenbacher
    wrote:

    > Okay, so I created this nice NSMovieView object that I can play NSMovies
    > in.  aiff and mp3 files are coming out great.  I didn't add it into any
    > contentViews cause I wanted to control it entirely programatically.  So, I
    > wanted my NSMovieView to start playing another song after it gone done
    > with whatever it is playing now.  To check that, I probably should just
    > call isPlaying().  Hmm... the only thing is, it always returns true unless
    > I manually call stop off of my NSMovieObject.  So, how do I know when my
    > NSMovieView object is done playing it's current movie?  Is there a way?
    >
    If you are not using NSMovieView and are just putting it offscreen then
    you really don't need to create it at all.

    Just instanciate a NSMovie object, then use a bunch of the QT funtions

    like

    extern Boolean IsMovieDone(Movie theMovie);

    etc....

    There is an book called

    Discovering Quicktime that is written by Apple that is a really good book
    describing the QT api.

    vince
  • On Monday, October 15, 2001, at 01:09  PM, Vince DeMarco wrote:
    > Discovering Quicktime that is written by Apple that is a really good
    > book describing the QT api.

    Any chance they'll be an Objective-C interface to more of the QT api?
    It seems odd to deal with things like
    QTUtils_ConvertCToPascalString(). :-)

    Steve
  • Hmmm... my original question was about the Java APIs, although I wasn't
    explicit enough.  I can't call QTMovie off of my NSMovie object because
    no such method exists in  the Java version of NSMovie.  If using the
    bridge didn't seem so hard (the documentation still talks about
    non-existant apps like Bridget), I guess I could send my objects
    Objective-C calls.

    So, unless anyone has any better ideas, I'm going to have to entirely
    abandon using NSMovie and figure out how to use Quicktime for Java.

    Oh yeah, wrapping basic QuickTime calls in a Cocoa API would be really
    nice (heck, I'd just be happy if they were accessable in my case)

    F-bacher

    On Tuesday, October 16, 2001, at 02:17 AM, Steve Dekorte wrote:

    >
    > On Monday, October 15, 2001, at 01:09  PM, Vince DeMarco wrote:
    >> Discovering Quicktime that is written by Apple that is a really good
    >> book describing the QT api.
    >
    > Any chance they'll be an Objective-C interface to more of the QT api?
    > It seems odd to deal with things like
    > QTUtils_ConvertCToPascalString(). :-)
    >
    > Steve
    >
    >
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
  • I finally figured this out.  You have to add your NSMovieView object to
    the Subview of the contentview of some window which is open for
    isPlaying yo work right.  If the window is closed, it won't work.  So I
    just made a transparent window and added my NSMovieView object and it
    works great now.

    Thanks,
    F-bacher