Hi All,
Continuing learning the Quicktime API.
I am confused about QTTimeRanges, etc
Consider the following:
QTMovie *aQTMovie = [QTMovie movieWithFile:path error:nil];
[aQTMovie setAttribute:[NSNumber numberWithBool:YES]
forKey:QTMovieEditableAttribute];
QTTime qStartTime = QTMakeTime([starttime intValue], 1);
QTTime qDuration = QTMakeTime([duration intValue], 1);
QTTimeRange aQTMovieRange = <not sure what call to use here>
[aQTMovie SetSelection: aQTMovieRange];
[aQTMovie replaceSelectionWithSelectionFromMovie: aQTMovie];
I have 2 QTTime's and I want to take my QTMovie and clip out the
section between time A and time B
This is the example I found:
// set the duration to 10 seconds
QTTimeRange range = QTMakeTimeRange(QTZeroTime, [movie duration]);
[movie scaleSegment:range newDuration:QTMakeTime(10, 1)];
But what I dont understand is when you scaleSegment the use of range
and such for my case. I want to take a clip from 10 seconds to 35
seconds.
Can anyone demonstrate?
-Jason
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]