예제 #1
0
파일: Form1.cs 프로젝트: Wiladams/NewTOAPIA
        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();
        }
예제 #2
0
        //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();
        }