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: Playing a track only after a certain duration




On 27-sep-06, at 21:03, ayush ghai wrote:

How is it possible to start playing a track in a QT Movie only after some
offset from the start of movie?


Suppose I have a movie in which the Video track is 100 seconds long and the
audio track is only 40 seconds long. I want the audio track to begin only
after the first 60 seconds have elapsed. How can I do it? Which atom do I
need to use?

Don't access movie atoms. Use QuickTime API's only, either QTKit or the Movie Toolbox (the C API).
In this case you can use SetTrackOffset to delay the start of a track. Be sure to do at least one track edit first because SetTrackOffset has no effect on a zero duration track. You can also use InsertEmptyTrackSegment (with the same caveat).


Jan E.

_______________________________________________
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

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.