public AttendeeCamera(ConferenceAttendee attendee, int deviceIndex) { fAttendee = attendee; fCamera = VideoCaptureDevice.CreateCaptureDeviceFromIndex(deviceIndex, 320, 240); fCamera.NewFrame += new CameraEventHandler(fCamera_NewFrame); }
public VideoTexture(GraphicsInterface gi, VideoCaptureDevice vidSource, bool autoStart) :base(gi, TextureBindTarget.Texture2d) { fVideoSource = vidSource; SetupCaptureDevice(gi); if (autoStart) Start(); }
// Create video source object public IVideoSource CreateVideoSource(object config) { LocalConfiguration cfg = (LocalConfiguration) config; if (cfg != null) { VideoCaptureDevice source = new VideoCaptureDevice(); source.VideoSource = cfg.source; return (IVideoSource) source; } return null; }