G
Guest
We have an application that has a propriotary mpeg2 player. The API of the version I am currently using does not provide an interface to get a bitmap of the current image being displayed. I have spent the day searching for video capture from web cam devices, etc. and I think I am on the right path to solving my problem but I am definitly missing something
I am using the capCreateCaptureWindowA function in "avicap32.dll" to create a capture window and this happens, but the window only displays black. My code is as follows
frm is a variable of a specific form that contains my OCX video playe
f is a new window opened to be the parent of the CaptureWindo
hwndc = capCreateCaptureWindowA("CaptureWindow", WS_CHILD Or WS_VISIBLE, 0, 0, 300, 300, f.Handle.ToInt32, 0
If (hwndc <> 0) The
temp = CStr(SendMessage(hwndc, WM_CAP_DRIVER_CONNECT, frm.AxVideoPlayer.Handle.ToInt32, 0)
temp = CStr(SendMessage(hwndc, WM_CAP_SET_PREVIEW, 1, 1)
temp = CStr(SendMessage(hwndc, WM_CAP_SET_PREVIEWRATE, 66, 0)
temp = CStr(SendMessage(hwndc, WM_CAP_EDIT_COPY, 1, 0)
Dim data As IDataObjec
data = Clipboard.GetDataObjec
End I
My questions/confusion.... The data being placed on the clipboard is text, not my image :
I have found several constants values for the SendMessage API but I have also discovered I am missing a whole bunch more, is there someplace I can find these and also is there a list of the functions available in the avicap32.dll ?? Or do I just add an "A" to the end of these function calls to make them work? I'm not even sure if the wParm and lParm variables I am passing to SendMessage are correct anymore so I was wondering if that is documented somewhere also !
There are business reasons for using this player so any MediaPlayer Interop is not an option
TI
Jon Cred
Please_No_SPam_CreditJ@Panthers_nfl_com_no_spam
I am using the capCreateCaptureWindowA function in "avicap32.dll" to create a capture window and this happens, but the window only displays black. My code is as follows
frm is a variable of a specific form that contains my OCX video playe
f is a new window opened to be the parent of the CaptureWindo
hwndc = capCreateCaptureWindowA("CaptureWindow", WS_CHILD Or WS_VISIBLE, 0, 0, 300, 300, f.Handle.ToInt32, 0
If (hwndc <> 0) The
temp = CStr(SendMessage(hwndc, WM_CAP_DRIVER_CONNECT, frm.AxVideoPlayer.Handle.ToInt32, 0)
temp = CStr(SendMessage(hwndc, WM_CAP_SET_PREVIEW, 1, 1)
temp = CStr(SendMessage(hwndc, WM_CAP_SET_PREVIEWRATE, 66, 0)
temp = CStr(SendMessage(hwndc, WM_CAP_EDIT_COPY, 1, 0)
Dim data As IDataObjec
data = Clipboard.GetDataObjec
End I
My questions/confusion.... The data being placed on the clipboard is text, not my image :
I have found several constants values for the SendMessage API but I have also discovered I am missing a whole bunch more, is there someplace I can find these and also is there a list of the functions available in the avicap32.dll ?? Or do I just add an "A" to the end of these function calls to make them work? I'm not even sure if the wParm and lParm variables I am passing to SendMessage are correct anymore so I was wondering if that is documented somewhere also !
There are business reasons for using this player so any MediaPlayer Interop is not an option
TI
Jon Cred
Please_No_SPam_CreditJ@Panthers_nfl_com_no_spam