OzCamera.getCameraByIndex(index) 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 index is not present in the array.
Parameters
index: Type: number. The index of the camera in the array returned by function getNames e.g. 1
Returns
camera: Type: ?Camera. A new Camera object or null if the given index is not present in the array.
Method usage example
This example shows how to write out the the first camera's name on the console (Code example 1).
console.log(OzCamera.getCameraByIndex(0));
More information