I've posted this some months ago and I still haven't got it to work.
I'm trying to play .dv files through firewire to a DV-cam from Cocoa.
I can get the display on the DV-cam connected to the computer to turn
black,
so it seams I have managed to choose the correct output component.
But when I start to play a movie I doesn't show up on the display of
the DV-Cam.
I know the movie is playing because I can hear the audio from the
computer's speakers.
I have taken most of the code from the SimpleVideoOut example code.
The SimpleVideoOut example code works fine with the same DV-cam.
Movie OpenMovie(CFStringRef inPath) {
Movie myMovie = NULL;
OSType myDataRefType;
Handle myDataRef = NULL;
short myResID = 0;
OSErr myErr = noErr;
// create the data reference
myErr = QTNewDataReferenceFromFullPathCFString(inPath,
kQTNativeDefaultPathStyle, 0, &myDataRef, &myDataRefType);
if (myErr != noErr) goto bail;
// get the Movie
myErr = NewMovieFromDataRef(&myMovie, newMovieActive |
newMovieAsyncOK, &myResID, myDataRef, myDataRefType);
if (myErr != noErr) goto bail;
// dispose of the data reference handle - we no longer need it
DisposeHandle(myDataRef);
return myMovie;
bail: {
NSLog(@"bail!");
return nil;
}
}
@end
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden