The Publisher object dispatches a DeviceStatusEvent in response to calling the detectDevices()
method.
To check whether a user has available cameras and other requirements for publishing, check the capabilities property of the Session object.
For more information and sample code, see Publisher.detectDevices().
The DeviceStatusEvent object has the following properties:
cameras (Array[Camera]) An array of Camera objects corresponding to available cameras.
microphones (Array[Microphone]) An array of Microphone objects corresponding to available microphones.
selectedCamera (Camera) The selected camera.
selectedMicrophone (Microphone) The selected microphone.
target (Object) The object that dispatched the event.
type (String) The type of event.