Check whether str
is a valid tape timecode string representation.
(Boolean): true
- str
is valid, false
- otherwise
TapeTimecode.isValid("01:00:00:12");
// => true
TapeTimecode.isValid("00:00:53;13");
// => true
TapeTimecode.isValid("01:00:00:1234");
// => false
Parse tape timecode from string tc
.
tc
(String): string to parsetimecodeRate
(Integer): frames per seconddropFrame
(Boolean): is timecode drop frame or non-drop frame
(Integer): frame number corresponding to the parsed timecode
TapeTimecode.parseTimecode("00:00:01:12", 24, false);
// => 36
Get tape timecode at frame frame
.
frame
(Integer): frame number
(String): tape timecode
ttc.getTimecodeAtFrame(36);
// => "01:00:01:12"
Get frame number by tape timecode.
tc
(String): tape timecode
(Integer): frame number
ttc.getFrameByTimecode("01:00:01:12");
// => 36
Get the tape frame rate of this tape timecode instance.
(Integer): tape frame rate
Get timeline duration as tape timecode.
(String): tape timecode
ttc.getTimecodedDuration();
// => "00:33:28:12"
Return true if this tape timecode instance is drop frame.
(Boolean): true
for drop frame, false
for non-drop frame