Example #1
0
        private async void InitializeCameraAsync()
        {
            sbSource      = new SoftwareBitmapSource();
            receviebitMap = new SoftwareBitmap(BitmapPixelFormat.Bgra8, 240, 180, 0);

            buffer = new Windows.Storage.Streams.Buffer((uint)(240 * 180 * 8));

            /*  stream client  close this */
            imageElement1.Source = sbSource;

            streamSocketSrv = new StreamSocketListenerServer();
            await streamSocketSrv.start(serverip, "8080");

            streamSocketClient = new StreamSocketClient();

            textBox.Text = clientip;
        }
Example #2
0
        private async void InitSocket()
        {
            streamSocketSrv = new StreamSocketListenerServer();
            await streamSocketSrv.start("22333");

            streamSocketClient = new StreamSocketClient();
            
            timer = new DispatcherTimer();
            timer.Interval = TimeSpan.FromMilliseconds(100);
            timer.Tick += Timer_Tick;
            timer.Start();
        }
Example #3
0
        private async void InitializeCameraAsync()
        {
            sbSource = new SoftwareBitmapSource();
            receviebitMap = new SoftwareBitmap(BitmapPixelFormat.Bgra8, 240, 180, 0);

            buffer = new Windows.Storage.Streams.Buffer((uint)(240 * 180 * 8));

            /*  stream client  close this */
            imageElement1.Source = sbSource;

            streamSocketSrv = new StreamSocketListenerServer();
            await streamSocketSrv.start(serverip, "22343");
          
            streamSocketClient = new StreamSocketClient();

            textBox.Text = clientip;
        }