Get TimeCode as a text representation
Default format: samples@denominator(:numerator if > 1)
constant has precedence over fraction if both are true
Text representation of TimeCode
Optional options: { Options for how to format text
Optional constant?: booleanOptional fraction?: booleanOptional includeConstructor for TimeCode
Object to create TimeCode of
Optional options: TimeCodeInputOptionsOptions for the timeCode
Optional dropOptional frameReturn this TimeCode added with the supplied timeCodeType If time bases differ, it will retain the time base of this TimeCode instance If supplied time code has a more granular time base - it will round down exceeding samples (hasn't reached that sample yet)
Note: This might make you "lose" frames depending on granularity of time bases, e.g. "51@50".add("25@25") => "101@50" while "25@25".add("51@50") => "50@25" (not "101@50")
A new TimeCode instance with the addition applied
A TimeCode instance you want to add with
Creates a new TimeCode instance with specified timeBase and samples adjusted to that.
If it conforms to a less granular time base - it will floor samples (hasn't reached that sample yet)
A new TimeCode instance with the conformTo timeBase applied
The TimeBase it should conform the TimeCode to
Return this TimeCode subtracted with the supplied timeCodeType If time bases differ, it will retain the time base of the instance time code If supplied time code has a more granular time base - it will round down exceeding samples (hasn't reached that sample yet)
Note: This might make you "lose" frames depending on granularity of time bases, e.g. "101@50".subtract("25@25") => "51@50" while "50@25".subtract("51@50") => "25@25" (not "49@50")
A new TimeCode instance with the subtraction applied
A TimeCode instance you want to subtract with
Get TimeCode in a duration representation The time unit char keys for the format string are:
Add consecutive chars for zero padding.
By default it:
Duration representation of the TimeCode
Optional options: { Options for how to display duration
Optional format?: stringGet TimeCode as a VidiCore TimeCodeType object
TimeCode as { samples, timeBase }
Get TimeCode in a time object representation "milliseconds" is rounded down, if you want another representation use "partialSeconds"
Time for the time code
Get TimeCode in a units object representation
Units (time and frames) for the time code
TimeCode class representing the TimeCodeType in VidiCore
For more info, see the Time Codes section of VidiCore API Docs