IsMaster
Top  Previous  Next

Description

Checks if the application has an exclusive control over the selected camera.


Syntax


[VB]
Value=objActiveGeni.IsMaster 


[C/C++]
HRESULT IsMaster( BOOL pValue );


Data Types
[VB]

Return value: Boolean


Parameters
[C/C++]
 
pValue [out, retval]  
Pointer to the boolean value which is TRUE if the application has an exclusive control and FALSE otherwise  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

Example


This VB example checks the status of the camera control to enable or disable the exposure slider:

if IsMaster then  
Slider1.Enable(TRUE)  
else  
Slider1.Enable(FALSE)  
endif  
      
Remarks


This method is usually used in combination with the Multicast mode of GigE cameras. When the camera is set in the Multicast mode, only the master application (the one that was launched first and initiated the multicast) can control the camera settings. Other applications that typically run on other computers in the network can display the video and report camera parameters, but cannot modify them. The IsMaster method can be used to find out if an application works in the slave mode and disable some user interface elements.