• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Explanation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Explanation


  • Subject: Explanation
  • From: "J. Todd Slack" <email@hidden>
  • Date: Fri, 29 Aug 2008 11:50:03 -0700

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Explanation
      • From: Rob Keniger <email@hidden>
  • Prev by Date: Re: What to use observeValueForKeyPath: context
  • Next by Date: Cocoa Developer Needed - San Jose, Ca
  • Previous by thread: Re: Dynamic right-sizing of TextContainer
  • Next by thread: Re: Explanation
  • Index(es):
    • Date
    • Thread