LXDeviceAPI

Definition

 

int EventMarkingOnStream_LXDeviceAPI(int device_handling_id, unsigned int event_id);

Parameters

Parameter Available Value Description
int device_handling_id
  • return value of OpenDevice
unsigned int event_id
  • 1~ 65535.
The event_id will be marked on signal stream. When you retrieve the marked value from stream, you can recognize the what type of the event( press the key , image shown, etc. ) has been marked on stream.

Return Values

Return  meaning Description
 1  Success
 -3  Fail. No device(correspond to int device_handling_id).
 -10  Fail. Wrong calling order. Should be called after OpenApi.

Code Example

void CLXDeviceAPI_Sample1View::OnMenuEventmarkingonstream()
{
  EventMarkingOnStream_LXDeviceAPI(m_iDeviceHandlingID,20000);
}

Result