Example #1
0
 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);
 }
Example #2
0
 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);
 }