> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# updateScreenShare()

> Enables or disables the screen share video or audio track without stopping the screen share.

`updateScreenShare(options)`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

## Parameters

<ParamField body="options" type="DailyScreenShareUpdateOptions">
  <Expandable title="properties" defaultOpen="true">
    <ParamField body="screenVideo" type="{ enabled: boolean }">
      Whether to enable or disable the screen video track.
    </ParamField>

    <ParamField body="screenAudio" type="{ enabled: boolean }">
      Whether to enable or disable the screen audio track.
    </ParamField>
  </Expandable>
</ParamField>

## Return value

Returns `void`.

## Example

```javascript theme={null}
// Disable screen audio while keeping video active
call.updateScreenShare({
  screenVideo: { enabled: true },
  screenAudio: { enabled: false },
});
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [startScreenShare()](/reference/daily-js/instance-methods/start-screen-share)
    * [stopScreenShare()](/reference/daily-js/instance-methods/stop-screen-share)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [local-screen-share-started](/reference/daily-js/events/media-events#local-screen-share-started)
    * [local-screen-share-stopped](/reference/daily-js/events/media-events#local-screen-share-stopped)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Screen sharing](/docs/daily-js/features/screen-sharing)
  </Card>
</CardGroup>
