Beispiel #1
0
 void ics_VideoPreviewStarted(int videoWidth, int videoHeight, string deviceName)
 {
     Invoke(new MethodInvoker(delegate
     {
         ics.SetEncoderProperties(VideoCodecs.MPEG4, 100, 6400, 0, 0, 0);
     }));
 }
Beispiel #2
0
        void icServer_VideoPreviewStarted(int videoWidth, int videoHeight, string deviceName)
        {
            this.Dispatcher.Invoke(new MethodInvoker(delegate
            {
                //Initialize Codec -- MPEG 4, iframe frequency 20, bitrate 8000 bps

                icServer.SetEncoderProperties(VideoCodecs.MPEG4, 20, 8000, 0, 0, 0);

                if (!icServer.IsListening)
                {
                    //listen for incoming connections
                    icServer.Listen(true, icServer.GetLocalIp()[0].ToString(), 9990, 17860, 17861);
                }
            }));
        }