#cp.apple.fcpxml.timecode
Functions for working with timecode in Final Cut Pro XML. Note that a timecode does not have any concept of a frame rate, so it is simple a structure of hours, minutes, seconds and frames.
To calculate the exact number of frames for a timecode, call the timecode:totalFramesWithFPS(fps)
method, where fps
is a number
.
To calculate the exact number of seconds for a timecode, call the timecode:timeWithFrameDuration(frameDuration)
method, where frameDuration
is the frame duration as a time
value.
Note, this currently does not support "Drop Frame" timecodes.
#API Overview
Constructors - API calls which return an object, typically one that offers API methods
Methods - API calls which can only be made on an object returned by a constructor