Input Device Selection
Overview
Before joining a video channel you have the option of selecting which video input (camera) and audio input device (microphone) to use. If you do not specify an input devices the operating system's default devices will be used.
In order to get the current list of available video devices you can use the getMediaList()
method.
Example Device List Retrieval
Example getMediaList() response
When you instantiate the AloVideo object you can specify the input device id on the videoInputDeviceId
property. See: Instantiating Video Service
Device List Changes
You should also add a listener for the onDeviceListUpdate
event. If the list of available input devices changes you can update your input device selection.
Input Device Related Events
Example onDeviceListUpdate
event payload:
onDeviceListUpdate
event payload:Last updated