OzCamera.getNames() 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 even use it on an OzCamera object. It returns the camera names connected to the webclient in a string array.
Returns
name: Type: Array<string>. The names of available cameras.
Method usage example
This example shows how to write out the camera names on the console (Code example 1).
console.log(OzCamera.getNames());
More information