getId() method
If an OzCamera object is added to the program, this method can run on it. It is used to get the ID of the camera that the object represents.
Returns
id: Type: string. The ID of the camera display.
Method usage example
In this example we will make a myCam object and write out its camera Id on the console (Code example 1).
//constructor of the myCam object, the default camera is used var myCam = OzCamera.getCameraByName(); console.log("This the id of your camera: " + myCam.getId());
More information