OzCamera.getCameraByName(cameraName) method
It is a stand alone static method, you do not need to create an object in the OzCamera class to use it. As a fact you can not use it on an OzCamera object. It returns a new Camera object or null if the given cameraName does not exists.
Parameters
cameraName: Type: string. The name of the camera (use getNames to retrieve the names of available cameras). e.g. "myCamera"
Returns
camera: Type: ?Camera. A new Camera object or null if the given cameraName does not exist.
Method usage example
This example shows how to write out the camera with the name of myCamera on the console (Code example 1).
console.log(OzCamera.getCameraByName("myCamera"));
More information