Quick question for Interface Builder

Discussion in 'Mac Programming' started by ghall, Dec 13, 2006.

  1. ghall macrumors 68040


    Jun 27, 2006
    Rhode Island
    Okay, so I'm trying to make a small app that will play a sort video upon being opened. It's like a digital christmas card like thing. Well, basically, I have the interface layed out, and everything works perfectly, except the HIMovieView element, because I don't know how to get it to work. How do I connect the HIMovieView element with a short QuickTime video.


    EDIT: Oh, and I would like it to play automatically.
  2. HiRez macrumors 603


    Jan 6, 2004
    Western US
    I can't find a way to set the movie in IB itself (like you can do with QTMovieView), but according to the Apple docs you can set it programmatically using HIMovieViewSetMovie. And since you're setting the movie programmatically, you can just call HIMovieViewPlay immediately after you load it to make it autoplay.

Share This Page