Sensoray 812 Windows User Manual
Page 10

channel index (0-7)
Returns
0 on success, negative value if error (see mid812types.h for error codes list).
MID812_API int S812_StartPreview(
int devid,
int strmidx
);
Starts video preview
Parameters
devid
device id in the system (use 0 with a single board installed).
strmidx
channel index (0-7)
Returns
0 on success, negative value if error (see mid812types.h for error codes list).
MID812_API int S812_StartRecord(
char *fileName,
int devid,
int strmidx
);
Starts recording to a file. Please note that the 812 is a uncompressed capture device and this
function was designed for recording short clips. Similarly, it is not recommended to record more
than one stream at a time using this function.
Parameters
fileName
full path to the target file, no extension.
devid
device id in the system (use 0 with a single board installed).
strmidx
channel index (0-7)
Returns
0 on success, negative value if error (see mid812types.h for error codes list).
MID812_API int S812_StartRecordW(
10