getGstLaunchExe() public static method

public static getGstLaunchExe ( ) : bool
return bool
Esempio n. 1
0
        private static void clientdata(IAsyncResult ar)
        {
            if (client != null)
            {
                client.Close();
            }

            if (!File.Exists(GStreamer.gstlaunch))
            {
                if (CustomMessageBox.Show("A video stream has been detected, but gstreamer has not been configured/installed.\nDo you want to config it now", "GStreamer", System.Windows.Forms.MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
                {
                    if (GStreamer.getGstLaunchExe())
                    {
                    }
                    else
                    {
                        return;
                    }
                }
                else
                {
                    return;
                }
            }

            GStreamer.Start();
        }
Esempio n. 2
0
        private static void clientdata(IAsyncResult ar)
        {
            var client = ((UdpClient)ar.AsyncState);

            if (client == null || client.Client == null)
            {
                return;
            }

            var port = ((IPEndPoint)client.Client.LocalEndPoint).Port;

            if (client != null)
            {
                client.Close();
            }

            //removeme
            GStreamer.LookForGstreamer();

            if (!File.Exists(GStreamer.gstlaunch))
            {
                var gstpath = GStreamer.LookForGstreamer();

                if (File.Exists(gstpath))
                {
                    GStreamer.gstlaunch = gstpath;
                }
                else
                {
                    if (CustomMessageBox.Show("A video stream has been detected, but gstreamer has not been configured/installed.\nDo you want to install/config it now?", "GStreamer", System.Windows.Forms.MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
                    {
                        CustomMessageBox.Show(
                            "Please download gstreamer 1.9.2 from [link;HERE;https://gstreamer.freedesktop.org/data/pkg/windows/1.9.2/gstreamer-1.0-x86-1.9.2.msi]\n And install it using the 'COMPLETE' option");

                        if (GStreamer.getGstLaunchExe())
                        {
                        }
                        else
                        {
                            return;
                        }
                    }
                    else
                    {
                        return;
                    }
                }
            }

            GStreamer.UdpPort = port;
            gst = GStreamer.Start();
        }
Esempio n. 3
0
        private static void clientdata(IAsyncResult ar)
        {
            var client = ((UdpClient)ar.AsyncState);

            if (client == null || client.Client == null)
            {
                return;
            }

            var port = ((IPEndPoint)client.Client.LocalEndPoint).Port;

            if (client != null)
            {
                client.Close();
            }

            //removeme
            GStreamer.LookForGstreamer();

            if (!File.Exists(GStreamer.gstlaunch))
            {
                var gstpath = GStreamer.LookForGstreamer();

                if (File.Exists(gstpath))
                {
                    GStreamer.gstlaunch = gstpath;
                }
                else
                {
                    return;

                    if (CustomMessageBox.Show("A video stream has been detected, but gstreamer has not been configured/installed.\nDo you want to config it now", "GStreamer", System.Windows.Forms.MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
                    {
                        if (GStreamer.getGstLaunchExe())
                        {
                        }
                        else
                        {
                            return;
                        }
                    }
                    else
                    {
                        return;
                    }
                }
            }

            GStreamer.UdpPort = port;
            GStreamer.Start();
        }