public Form1() :base("Camera Server", 10, 10, 320, 240) { string groupIP = "234.5.7.15"; int groupPort = 5004; IPEndPoint ipep = new IPEndPoint(IPAddress.Parse(groupIP), groupPort); fSession = new MultiSession(Guid.NewGuid().ToString(), ipep); fChannel = fSession.CreateChannel(PayloadType.xApplication3); fCameraSender = new VideoSender(0, fChannel); fCameraSender.Start(); }
//Bitmap fPreviewBitmap; //GDIRenderer fRenderer; //GDIContext fRendererContext; public MainForm() { InitializeComponent(); fSetupControl = new CaptureDeviceSetupPage(); //this.Controls.Add(fSetupControl); splitContainer1.Panel1.Controls.Add(fSetupControl); string groupIP = "234.5.7.15"; int groupPort = 5004; IPEndPoint ipep = new IPEndPoint(IPAddress.Parse(groupIP), groupPort); fSession = new MultiSession(Guid.NewGuid().ToString(), ipep); fChannel = fSession.CreateChannel(PayloadType.dynamicPresentation); fCameraSender = new VideoSender(0, fChannel); //fPreviewBitmap = new Bitmap(fCameraSender.Width, fCameraSender.Height, fCameraSender.ReceivedVideoFrameEvent += new VideoSender.ReceivedVideoFrameHandler(fCameraSender_ReceivedVideoFrameEvent); fCameraSender.Start(); }