Example #1
0
    //Gtk.Window capturerWindow;
    private void cameraRecordInitiate()
    {
        capturer = new CapturerBin();
        CapturePropertiesStruct s = new CapturePropertiesStruct();

        s.OutputFile = Util.GetVideoTempFileName();

        s.VideoBitrate =  1000;
        s.CaptureSourceType = CaptureSourceType.Raw;
        s.Width = 360;
        s.Height = 288;

        capturer.CaptureProperties = s;
        capturer.Type = CapturerType.Live;
        capturer.Visible=true;

        //capturerWindow = new Gtk.Window("Capturer");
        //capturerWindow.Add(capturer);
        //capturerWindow.ShowAll();
        //capturerWindow.DeleteEvent += delegate(object sender, DeleteEventArgs e) {capturer.Close(); capturer.Dispose();};
        //hbox_capture.PackStart(capturer, true, true, 0);
        //hbox_capture.ShowAll();

        capturer.Run();
        capturer.ClickRec();
    }