Mailing Lists: Apple Mailing Lists

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

Re: QTTrack is awfully limiting



Hi Nathaniel,

If you want to create/initialize a QTTrack with a new track that is of a Movie Media Type, do the following:

1)  Create a new track using the QuickTime function NewMovietrack()

2) Fill the track with Movie Media. See the QtMovieTrack sample code <http://developer.apple.com/samplecode/qtmovietrack/index.html> for an example of how to do this.

3) Create or initialize your new QTTrack object using the new track created in step 1 using either +trackWithQuickTimeTrack:error: or - initWithQuickTimeTrack:error:

Alternately, if all you want to do is insert a segment of an existing movie into another existing movie, then I would suggest that you use QTMovie's editing methods - insertSegmentOfMovie:fromRange:scaledToRange: or - insertSegmentOfMovie:timeRange:atTime: or the QuickTime function InsertMovieSegment()

Note, this advice is given without really knowing what you are trying to accomplish, with additional details I may be able to supply a more appropriate answer.

regards,

douglas



On Dec 28, 2007, at 3:57 PM, Nathaniel Gottlieb-Graham wrote:

I may be daft, but there doesn't seem to be any way to create a QTTrack with a movie in it. The only real way that I can see to add anything to a QTTrack is the addImage:forDuration:withAttributes: method, which takes NSImages, and can't be fed QTMovies or anything like that. Am I just missing something obvious, or will I have to resort to some ugly hack like adding a new track for every image of a movie I want to overlay?

Nathaniel
_______________________________________________

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
References: 
 >QTTrack is awfully limiting (From: Nathaniel Gottlieb-Graham <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.