Teresa
December 11, 2007, 10:16:03
Hello,
I'm trying to show a live preview of a network camera stream with a VB6 application, based on the example graph that is given in the documentation, but I'm having the following problem:
- To set the IP camera source properties the "MV IP Camera Source" output pin, needs to be disconnect, and so, after I set the desired camera properties, I try to initialize the connection through the IMVIPCameraSource:InitConnection() method.
Although this method is not being recognised, but all the other methods (like Address, IsInitialized, etc) are.
I used the following code to assign the camera:
Dim graph As IMVSCFilterGraph
Dim camera As IMVIPCameraSource
Set graph = MVSmartControl.Object
Set camera = graph.GetFilter("MV IP Camera Source")
and for now, I donīt know what to do to make this work:
If camera.IsInitialized = False Then
camera.InitConnection ' HERE'S THE PROBLEM!
End If
Can you help me?
Thanks
Teresa
I'm trying to show a live preview of a network camera stream with a VB6 application, based on the example graph that is given in the documentation, but I'm having the following problem:
- To set the IP camera source properties the "MV IP Camera Source" output pin, needs to be disconnect, and so, after I set the desired camera properties, I try to initialize the connection through the IMVIPCameraSource:InitConnection() method.
Although this method is not being recognised, but all the other methods (like Address, IsInitialized, etc) are.
I used the following code to assign the camera:
Dim graph As IMVSCFilterGraph
Dim camera As IMVIPCameraSource
Set graph = MVSmartControl.Object
Set camera = graph.GetFilter("MV IP Camera Source")
and for now, I donīt know what to do to make this work:
If camera.IsInitialized = False Then
camera.InitConnection ' HERE'S THE PROBLEM!
End If
Can you help me?
Thanks
Teresa