Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
[SOLVED]Quicktime movie is shown on screen when using QTMovie addImage:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED]Quicktime movie is shown on screen when using QTMovie addImage:



It seems the new offscreen GWorld has to be set AFTER the call to QTMovie movieWithQuicktimeMovie:. Before, I was attempting to set the GWorld immediately after CreatMovieStorage(), and that didn't work.

Here's the code that works, modified from QTKitCreateMovie example:

qtMovie = nil;
OSErr err;
GWorldPtr gworld = NULL;
Rect bounds = { 0, 0, 100, 100 };
err = QTNewGWorld( &gworld, 0, &bounds, NULL, NULL, 0 );
if( err ) NSLog(@"QTNewGWorld probelm");

CreateMovieStorage (dataRefH,
				dataRefType,
				'TVOD',
				smSystemScript,
				newMovieActive,
				&mDataHandlerRef,
				&qtMovie);

// instantiate a QTMovie from our QuickTime movie
mMovie = [QTMovie movieWithQuickTimeMovie:qtMovie disposeWhenDone:YES error:nil];
[mMovie retain];
// mark the movie as editable
[mMovie setAttribute:[NSNumber numberWithBool:YES] forKey:QTMovieEditableAttribute];


SetMovieGWorld( qtMovie, gworld, NULL );


Cheers, Juan _______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Quicktime movie is shown on screen when using QTMovie addImage: (From: "Juan P. Pertierra" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.