get_timeline_time_from_source_frame


Description:

[ Version ( since = "1.18" ) ]
public ClockTime get_timeline_time_from_source_frame (FrameNumber frame_number) throws Error

Convert the source frame number to a timeline time.

This acts the same as get_timeline_time_from_internal_time using the core children of the clip and using the frame number to specify the internal position, rather than a timestamp.

The returned timeline time can be used to seek or edit to a specific frame.

Note that you can get the frame timestamp of a particular clip asset with get_frame_time.

Parameters:

this

A Clip

frame_number

The frame number to get the corresponding timestamp of in the timeline coordinates

Returns:

The timestamp corresponding to frame_number in the core children of this, in the timeline coordinates, or CLOCK_TIME_NONE if the conversion could not be performed.




2022 vala-language.org