QuickTime Kit Programming Guide - filibeto.org
QuickTime Kit Programming Guide - filibeto.org
QuickTime Kit Programming Guide - filibeto.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
C H A P T E R 6<br />
Adding Multimedia Playback Capability<br />
- (IBAction)doShowViewTestsWindow:(id)sender<br />
{<br />
// add a toolbar<br />
if ([mViewTestsWindow toolbar] == nil)<br />
[mViewTestsWindow setToolbar:[[[NSToolbar alloc]<br />
initWithIdentifier:@"QT<strong>Kit</strong>Player"] autorelease]];<br />
}<br />
@end<br />
// show the window<br />
[mViewTestsWindow makeKeyAndOrderFront:nil];<br />
This completes the steps for adding code to your ViewTestsController.m implementation file. You<br />
can build and compile your QT<strong>Kit</strong>Player application for multimedia playback.<br />
The Completed QT<strong>Kit</strong> Multimedia Player<br />
If you’ve worked through the steps outlined in this chapter, you’ll have extended your knowledge<br />
of how to build a media player that is capable of displaying and playing back up to six <strong>QuickTime</strong><br />
movies. You can modify the code to meet your own needs, if, for example, you want to set up the<br />
QT<strong>Kit</strong>Player so that it only displays movies that are pre-selected. This is possible with a minimum<br />
amount of code tweaking.<br />
The goal is to expand the possibilities that are available to you with the new QT<strong>Kit</strong> framework.<br />
The effect of multimedia playback can be dramatic, indeed, when the user is able to view all six movies<br />
at full screen on their computer and even resize each movie to meet their viewing needs. In the<br />
illustration shown in Figure 6-17, the <strong>QuickTime</strong> VR movie in the lower left portion of the playback<br />
window is stretched out for improved VR viewing and navigation.<br />
116 The Completed QT<strong>Kit</strong> Multimedia Player<br />
2005-11-09 | © 2004, 2005 Apple Computer, Inc. All Rights Reserved.