PDA

View Full Version : Quick question for Interface Builder




ghall
Dec 13, 2006, 08:03 PM
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.

Thanks.

EDIT: Oh, and I would like it to play automatically.



HiRez
Dec 13, 2006, 09:26 PM
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.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 (http://developer.apple.com/documentation/QuickTime/Reference/QTRef_MovieController/Reference/reference.html#//apple_ref/c/func/HIMovieViewSetMovie). And since you're setting the movie programmatically, you can just call HIMovieViewPlay (http://developer.apple.com/documentation/QuickTime/Reference/QTRef_MovieController/Reference/reference.html#//apple_ref/c/func/HIMovieViewPlay) immediately after you load it to make it autoplay.