Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Explanation



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 (email@hidden)

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/email@hidden

This email sent to email@hidden


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.