Home | Index | Dotnet4all Snippets | Submit resources
About | Mail us 





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



0 Comments:

Post a Comment

<< Home

 
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



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