run() public method

public run ( ) : void
return void
 protected void PreviewAvsSegmentInMplayer(double secMplayerPreview, bool onlyLockedClips, ExternalPlayerType playerType)
 {
     cxzxc("creating mplayer...");
     var mplayed = new MPlayerPlaybackSegment(Context.Proj);
     mplayed.ExternalPlayer = playerType;
     mplayed.WhileYoureAtIt_cropProj(Context.UiObjects.CurrentMarkerFrame, (long)(Context.Proj.FrameRate * secMplayerPreview), onlyLockedClips);
     mplayed.run();
     if (mplayed.ResultCode == OpResultCode.FileNotFound)
         Context.eeee("Error: please make sure mplayer is in your PATH!");
     else if (mplayed.ResultCode == OpResultCode.OtherError)
         Context.eeee("Error: " + mplayed.ErrorMessage);
 }
        private void btnPreview_Click(object sender, EventArgs e)
        {
            var sampleProj = new VidkaProj
            {
                Width = proj.Width,
                Height = proj.Height,
                FrameRate = proj.FrameRate,
            };
            vclipFullToDraw.HasCustomAudio = vclip.HasCustomAudio;
            vclipFullToDraw.CustomAudioFilename = vclip.CustomAudioFilename;
            vclipFullToDraw.CustomAudioLengthSec = vclip.CustomAudioLengthSec;
            vclipFullToDraw.CustomAudioOffset = vclip.CustomAudioOffset;
            sampleProj.ClipsVideo.Add(vclipFullToDraw);

            var mplayed = new MPlayerPlaybackSegment(sampleProj);
            mplayed.ExternalPlayer = ExternalPlayerType.VirtualDub;
            mplayed.run();
            if (mplayed.ResultCode == OpResultCode.FileNotFound)
                MessageBox.Show("Please make sure " + mplayed.ExternalPlayer + " in your PATH", "Unexpected error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            else if (mplayed.ResultCode == OpResultCode.OtherError)
                MessageBox.Show("Error: " + mplayed.ErrorMessage, "Unexpected error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }