public void ShowFrameInVideoPlayer(long frame)
{
if (previewLauncher.IsPlaying)
previewLauncher.StopPlayback();
long frameOffset;
var clipIndex = Proj.GetVideoClipIndexAtFrame(frame, out frameOffset);
var secOffset = Proj.FrameToSec(frameOffset);
if (clipIndex == -1) {
videoPlayer.SetStillFrameNone();
}
else {
var clip = Proj.ClipsVideo[clipIndex];
videoPlayer.SetStillFrame(clip.FileName, secOffset);
//cxzxc("preview1:" + secOffset);
}
}