Local Media
A representation of all the media devices available to the local participant, as well as helper methods for easier access for controlling those devices.
Properties
The list of available audio devices.
Whether the camera can switch position (i.e. from front facing to back facing camera, and vice-versa).
The list of available camera devices.
The local participant's camera track if one is published.
Whether the camera is enabled.
Whether the microphone is enabled.
Whether screen sharing is enabled.
The local participant's microphone track if one is published.
The local participant's screen share track if one is published.
The current audio device in use, if it exists.
The id of the current camera in use, if it exists.
Functions
Selects the audio device to be used.
Selects the camera to be used.
Enables/disables the camera track and publishes it if needed.
Enables/disables the microphone track and publishes it if needed.
Enables/disables screen share track and publishes it if needed.
Switches the position of the camera, if able.