Version: 0.0.3
Library for creating and converting SMPTE timecode objects.
Supported frame rates: 24
, 23.976
/23.98
, 29.97
(dropframe), 30
Timecode allows you to easily convert between timecodes of different frame rates.
new Timecode('01:02:03;04', 29.97);
new Timecode(1, 2, 3, 4, 29.97);
new Timecode(111694, 29.97);
##Timecode.validate(string)
Checks if the provided string matches the SMPTE timecode format.
string
– an SMPTE formated string. Must match one of the following formats:HH:MM:SS:FF
HH:MM:SS;FF
HH:MM:SS.FF
##toString()
Returns the timecode object as a string
Returns the absolute frame number that the timecode represents.
Converts the timecode to another frame rate.
framerate
– a number representing the target frame rate.