Stream information structure.
struct{ DWORD dwSize; BYTE byID[STREAM_ID_LEN/*32*/]; DWORD dwChannel; BYTE byRes[32]; }NET_DVR_STREAM_INFO,*LPNET_DVR_STREAM_INFO;
Structure size.
Stream ID, which consists of letters, digits, and dashes, 0-invalid.
Linked device channel. When it is 0xffffffff, if setting the stream source, this parameter indicates that no device channel is linked; if setting configuration condition, this parameter is invalid.
Reserved, set to 0.
If the device does not support marking stream ID, e.g., DVR, the parameter byID should be set to 0.
For transcoder, when setting the stream source, only one of byID and dwChannel can be valid; when transcoding, both the byID and dwChannel can be invalid, the transcoding channel or stream ID is automatically allocated by device.
For other devices (e.g., CVR), when this structure is inputted as configuration condition, if both the byID and dwChannel are invalid, error code (17) will be returned, if they are valid, but mismatched, error may also be returned, so only setting one of these two parameters is suggested.