QMedia v1.2 |
Using QMedia |
1. Create a grabber plug-in area on your form
2. Add a video channel to the grabber area
C_LONGINT($videoChannel)
$error:=QM_NewChannel (xGrabber;$videoChannel;qm_VideoMediaType)
3. Configure the video channel and specify how it will be used
The following line of code causes the display of the Channel Settings Dialog:
$error:=QM_ChannelSettingsDialog (xGrabber;$videoChannel)
And this line says that this channel will be used for previeweing and for recording:
$error:=QM_SetChannelUsage (xGrabber;$videoChannel;qm_seqGrabPreview | qm_seqGrabRecord)
4. Previewing procedure
4a. Start previewing
$error:=QM_StartPreview (xGrabber)
4b. Stop previewing
$error:=QM_StopPreview (xGrabber)
5. Recording procedure
5a. Specify the output file
C_TEXT($path)
$path:=""
$error:=QM_SetGrabberOutput (xGrabber;$path)
5b. Start recording
$error:=QM_StartRecording (xGrabber)
5c. Stop recording
$error:=QM_StopRecording (xGrabber)
6. Grab a picture
C_PICTURE($pict)
$error:=QM_GrabPict (xGrabber;$pict)