public static void SetFrameMarker_RightOfVClipJustBefore(this IVidkaOpContext iEditor, VidkaClipVideoAbstract vclip, VidkaProj proj) { long frameMarker = proj.GetVideoClipAbsFramePositionLeft(vclip); var rightThreshFrames = proj.SecToFrame(Settings.Default.RightTrimMarkerOffsetSeconds); // if clip is longer than RightTrimMarkerOffsetSeconds, we can skip to end-RightTrimMarkerOffsetSeconds if (vclip.LengthFrameCalc > rightThreshFrames) frameMarker += vclip.LengthFrameCalc - rightThreshFrames; iEditor.SetFrameMarker_ShowFrameInPlayer(frameMarker); }
public static void SetFrameMarker_RightOfAClipJustBefore(this IVidkaOpContext iEditor, VidkaClipAudio clip, VidkaProj proj) { long frameMarker = clip.FrameOffset; // start var rightThreshFrames = proj.SecToFrame(Settings.Default.RightTrimMarkerOffsetSeconds); // if clip is longer than RightTrimMarkerOffsetSeconds, we can skip to end-RightTrimMarkerOffsetSeconds if (clip.LengthFrameCalc > rightThreshFrames) frameMarker += clip.LengthFrameCalc - rightThreshFrames; iEditor.SetFrameMarker_ShowFrameInPlayer(frameMarker); }