***
id: 013780f4-3f26-4c20-b75f-e7f6d950b9ca
title: RoomScreenShare
description: Deprecated. Use RoomSessionDevice instead.
slug: /js/reference/video/room-screen-share
availability: deprecated
max-toc-depth: 3
----------------
Use [RoomSessionDevice](/docs/browser-sdk/v3/js/reference/video/room-session-device) instead.
## Properties
### active
• `Readonly` **active**: `boolean`
Whether the connection is currently active.
***
### cameraId
• `Readonly` **cameraId**: `null` | `string`
The id of the video device, or null if not available.
***
### cameraLabel
• `Readonly` **cameraLabel**: `null` | `string`
The label of the video device, or null if not available.
***
### localAudioTrack
• `Readonly` **localAudioTrack**: `null` | `MediaStreamTrack`
Provides access to the local audio [MediaStreamTrack](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack).
***
### localStream
• `Readonly` **localStream**: `undefined` | `MediaStream`
Provides access to the local [MediaStream](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream).
***
### localVideoTrack
• `Readonly` **localVideoTrack**: `null` | `MediaStreamTrack`
Provides access to the local video [MediaStreamTrack](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack).
***
### memberId
• `Readonly` **memberId**: `string`
The id of the current member within the room.
***
### microphoneId
• `Readonly` **microphoneId**: `null` | `string`
The id of the audio input device, or null if not available.
***
### microphoneLabel
• `Readonly` **microphoneLabel**: `null` | `string`
The label of the audio input device, or null if not available.
***
### remoteStream
• `Readonly` **remoteStream**: `undefined` | `MediaStream`
Provides access to the remote [MediaStream](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream).
***
### roomId
• `Readonly` **roomId**: `string`
The unique identifier for the room.
***
### roomSessionId
• `Readonly` **roomSessionId**: `string`
The unique identifier for the room session.
## Methods
### audioMute
▸ **audioMute**(): `Promise`
Puts the microphone on mute. The other participants will not hear audio from the muted device anymore.
#### Returns
`Promise`
#### Permissions
* `room.self.audio_mute`
You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side.
#### Example
Muting the microphone:
```javascript
await roomdevice.audioMute();
```
***
### audioUnmute
▸ **audioUnmute**(): `Promise`
Unmutes the microphone if it had been previously muted.
#### Returns
`Promise`
#### Permissions
* `room.self.audio_unmute`
You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side.
#### Example
Unmuting the microphone:
```javascript
await roomdevice.audioUnmute();
```
***
### join
▸ **join**(): `Promise`
Joins this device to the room session.
#### Returns
`Promise`
***
### leave
▸ **leave**(): `Promise`
Detaches this device from the room session.
#### Returns
`Promise`
***
### setInputSensitivity
▸ **setInputSensitivity**(`params`): `Promise`
Sets the input level at which the participant is identified as currently speaking.
#### Parameters
| Name | Type | Description |
| :------------- | :------- | :------------------------------------------------------------------------------------------------------------------------ |
| `params` | `Object` | |
| `params.value` | `number` | Desired sensitivity from 0 (lowest sensitivity, essentially muted) to 100 (highest sensitivity). The default value is 30. |
#### Returns
`Promise`
#### Permissions
* `room.self.set_input_sensitivity`
You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side.
#### Example
```javascript
await roomdevice.setInputSensitivity({ value: 80 });
```
***
### setInputVolume
▸ **setInputVolume**(`params`): `Promise`
Sets the input volume level (e.g. for the microphone).
#### Parameters
| Name | Type | Description |
| :-------------- | :------- | :---------------------------------------------------------------- |
| `params` | `Object` | - |
| `params.volume` | `number` | Desired volume. Values range from -50 to 50, with a default of 0. |
#### Returns
`Promise`
#### Permissions
* `room.self.set_input_volume`
You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side.
#### Example
```javascript
await roomdevice.setMicrophoneVolume({ volume: -10 });
```
***
### setMicrophoneVolume
▸ **setMicrophoneVolume**(`params`): `Promise`
Deprecated. Use [setInputVolume](#setinputvolume) instead.
#### Parameters
| Name | Type |
| :-------------- | :------- |
| `params` | `Object` |
| `params.volume` | `number` |
#### Returns
`Promise`
***
### updateCamera
▸ **updateCamera**(`constraints`): `Promise`
Replaces the current camera stream with the one coming from a different device.
#### Parameters
| Name | Type | Description |
| :------------ | :---------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `constraints` | `MediaTrackConstraints` | Specify the constraints that the device should satisfy. See [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints). |
#### Returns
`Promise`
#### Example
Replaces the current camera stream with the one coming from the specified deviceId:
```javascript
await screenShareObj.updateCamera({
deviceId: "/o4ZeWzroh+8q0Ds/CFfmn9XpqaHzmW3L/5ZBC22CRg=",
});
```
***
### updateMicrophone
▸ **updateMicrophone**(`constraints`): `Promise`
Replaces the current microphone stream with the one coming from a different device.
#### Parameters
| Name | Type | Description |
| :------------ | :---------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `constraints` | `MediaTrackConstraints` | Specify the constraints that the device should satisfy. See [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints). |
#### Returns
`Promise`
#### Example
Replaces the current microphone stream with the one coming from the specified deviceId:
```javascript
await screenShareObj.updateMicrophone({
deviceId: "/o4ZeWzroh+8q0Ds/CFfmn9XpqaHzmW3L/5ZBC22CRg=",
});
```
***
### videoMute
▸ **videoMute**(): `Promise`
Puts the video on mute. Participants will see a mute image instead of the video stream.
#### Returns
`Promise`
#### Permissions
* `room.self.video_mute`
You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side.
#### Example
Muting the camera:
```javascript
await roomdevice.videoMute();
```
***
### videoUnmute
▸ **videoUnmute**(): `Promise`
Unmutes the video if it had been previously muted. Participants will start seeing the video stream again.
#### Returns
`Promise`
#### Permissions
* `room.self.video_unmute`
You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side.
#### Example
Unmuting the camera:
```javascript
await roomdevice.videoUnmute();
```