Example #1
0
        public void OpenWindow(bool WithAudio)
        {
            VideoCont.UseAudio = WithAudio;
            VideoCont.Connect();
            //if (!Video)
            //    throw new DutPropertiesException("No compatible video decoder found");
            //if (WithAudio && !Audio)
            //    throw new DutPropertiesException("No compatible audio decoder found");

#if false
            VideoCont.Run();
            Invoke(new Action(() =>
            {
                VideoCont.ReflectPosition(this);
                BringToFront();
                Visible = true;
            }));
#else
#if false
            Invoke(new Action(() =>
            {
                VideoCont.ReflectPosition(this);
                //Video.AttachWindow(VideoPanel);
                BringToFront();
                Visible = true;
            }));
#else
            VideoCont.SetupWindow();
#endif
            VideoCont.Run();
#endif
        }