P
pampululu
hello, I try to use directx.capture in my web application, I use
visual studio web developper 2005 express with c# for code behind.
I can list the webcam available on computer, no probem,
my probem is to capture and display webcam in a control
I tried like this:
protected void Page_Load(object sender, EventArgs e)
{
Filters filters = new Filters();
Capture capture = new Capture(filters.VideoInputDevices[0],
filters.AudioInputDevices[0]);
capture.VideoCompressor = filters.VideoCompressors[0];
capture.AudioCompressor = filters.AudioCompressors[0];
capture.FrameRate = 29.997; // NTSC
capture.FrameSize = new Size(640, 480); // 640x480
capture.AudioSamplingRate = 44100; // 44.1 kHz
capture.AudioSampleSize = 16; // 16-bit
//capture.AudioChannels = 1;
capture.PreviewWindow = PanelVideo;
PanelVideo is a System.Web.UI.WebControls.Panel
it doesnt work because capture.PreviewWindow want
System.windows.forms.control
I want when the user come on my webpage, he can see his webcam, take a
shoot and send it to someone,
someone has any idea?
thanks a lot
visual studio web developper 2005 express with c# for code behind.
I can list the webcam available on computer, no probem,
my probem is to capture and display webcam in a control
I tried like this:
protected void Page_Load(object sender, EventArgs e)
{
Filters filters = new Filters();
Capture capture = new Capture(filters.VideoInputDevices[0],
filters.AudioInputDevices[0]);
capture.VideoCompressor = filters.VideoCompressors[0];
capture.AudioCompressor = filters.AudioCompressors[0];
capture.FrameRate = 29.997; // NTSC
capture.FrameSize = new Size(640, 480); // 640x480
capture.AudioSamplingRate = 44100; // 44.1 kHz
capture.AudioSampleSize = 16; // 16-bit
//capture.AudioChannels = 1;
capture.PreviewWindow = PanelVideo;
PanelVideo is a System.Web.UI.WebControls.Panel
it doesnt work because capture.PreviewWindow want
System.windows.forms.control
I want when the user come on my webpage, he can see his webcam, take a
shoot and send it to someone,
someone has any idea?
thanks a lot