RtgvStartCameraStream
RtgvStartCameraStream starts a stream on a camera, sending frames to the specified IP Address.
Syntax
BOOL RtgvStartCameraStream(
[in] HANDLE cameraHandle,
[in] UINT32 localIP,
[in] UINT32 localPort
);
Parameters
[in] cameraHandle
The handle to the camera which will start sending frames.
[in] localIP
The IP Address of the wRTOS Network Interface Card (NIC) to which the camera should send images.
[in] localPort
The local port to which the camera should send images.
Return Values
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
Remarks
This function should succeed if a stream is already started when it is called.
This function will fail if it is called before RtgvInitialize and RtgvInitCameraControl.
To find the camera to query, call RtgvInitialize and then call RtgvEnumerateCameras to get an RTGV_CAMERA_INFO array describing each camera found on the network, along with its handles.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtgvApi.h |
RtgvApi.lib |