Have you explored the newest version of the OpenTok platform? Check out OpenTok 2.0, built on top of WebRTC. Learn more

DeviceStatusEvent class

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().

DeviceStatusEvent properties

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.

IRC Live Chat

Have a quick question? Chat with TokBox Support on IRC. Join chat