Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo  
 
How to Video Capture on ASP.Net (Friday, October 08, 2004)



Found the following interesting discussion in the Newsgroups:

Video Capture on ASP.Net
by:Ramanaji

Hi,
I did code for to captue the video on Windows form in vb.net. I used the
"CapCreateCapturewindowA" API and binded to PictureBox. I used the timer
also to refresh. Same thing I would like to Capture the videoon Web. So
please any one help to capture the video(used webcam) on Web. I am here with
attaching the cdoe what I did in vb.net. Thank you.

Dim iWidth As Integer = PictureBox1.Width
hHwnd = capCreateCaptureWindowA(iDevice, WS_VISIBLE Or WS_CHILD,
0, 0, 640, _
480, PictureBox1.Handle.ToInt32, 0)
If SendMessage(hHwnd, WM_CAP_DRIVER_CONNECT, iDevice, 0) Then
SendMessage(hHwnd, WM_CAP_SET_SCALE, True, 0)
SendMessage(hHwnd, WM_CAP_SET_PREVIEWRATE, 66, 0)
SendMessage(hHwnd, WM_CAP_SET_PREVIEW, True, 0)
SetWindowPos(hHwnd, HWND_BOTTOM, 0, 0, PictureBox1.Width,
PictureBox1.Height, _
SWP_NOMOVE Or SWP_NOZORDER)

Else
DestroyWindow(hHwnd)

End If

regards
Ramanaji


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
You will have to do that on the client side, not on the server side.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>



Posted by Xander Zelders



 
Previous Posts
    - How to save an Excel Sheet without a confirmation
    - How to add Columns to a combobox?
    - Populating Structure Arrays
    - System.Net.Sockets
    - How to get a Flashing TreeView Control on Web Page...
    - Grouped Headers in a datagrid
    - How to add an attachment to an expression mailto
    - HTTPWebRequest - better server error handling
    - Windows Forms datagrid won't show more than 255 ro...
    - How to create an About Dialog

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006


Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland