Exemplo n.º 1
0
        private void BeginStream()
        {
            var url = Pref.CamUrl;

            Task.Factory.StartNew(() =>
            {
                try
                {
                    return(MjpegInputStream.Read(url));
                }
                catch (Exception)
                {
                    return(null);
                }
            }).ContinueWith((t) =>
            {
                CamView.SetSource(t.Result);
                t.Result?.SetSkip(1);

                CamView.SetDisplayMode(MjpegView.SizeBestFit);
                CamView.ShowFps(false);
            });
        }