Example #1
0
        public void SetVideo(string path)
        {
            CurVid = new VideoPlayer(path);

            Draw = () =>
            {
                if (Paused)
                {
                    return;
                }
                if (Frm == null)
                {
                    return;
                }
                DrawForm(CurVid.GetCurrentImage(), new OpenTK.Vector4(1 * UI.CurUI.FadeAlpha, 1 * UI.CurUI.FadeAlpha, 1 * UI.CurUI.FadeAlpha, 1 * UI.CurUI.FadeAlpha));
            };

            Update = () =>
            {
                // CurVid.DecodeNextFrame();
                if (Paused)
                {
                    return;
                }
                var frame = CurVid.GetCurrentFrame();

                Frm = frame;
            };
        }