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