在QTMovieView上面添加视图

可以查看苹果官方提供的代码:https://developer.apple.com/library/mac/#samplecode/Movie_Overlay/Introduction/Intro.html

This sample shows how to overlay text & graphics and perform animation on an QTMovieView through a floating "overlay" window. This is accomplished by first creating a new window and adding subviews to this window. These subviews are used to draw the images and perform the animation. The new overlay window is then added as a child window to the QTMovieView window with the NSWindowAbove ordering so it will be ordered on top of the movie window. Any subsequent drawing in the overlay window subviews will then draw on top of the QTMovieView window, giving the overlay effect we desire. 

*IMPORTANT*

While this technique is good for overlaying text & graphics on top of a QTMovieView, with Mac OS X 10.5 Leopard the recommended technique is to instead use a Core Animation layer-backed QTMovieView. For more information, see the Core Animation documentation. 

Also, the following sample code is available:

Core Animation QuickTime Layer
http://developer.apple.com/samplecode/CoreAnimationQuickTimeLayer/index.html

MyMovieFilter
http://developer.apple.com/samplecode/MyMovieFilter/

你可能感兴趣的:(OS,animation)