> ## 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.

# stopCustomTrack()

> Stops sending a custom media track to other participants.

`stopCustomTrack(trackName)`

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

Stops the specified custom track. To confirm the track has stopped, listen for [`participant-updated`](/reference/daily-js/events/participant-events#participant-updated) or [`track-stopped`](/reference/daily-js/events/media-events#track-stopped) and check that the track key is no longer present in the local participant's `tracks` property.

## Parameters

<ParamField body="trackName" type="string" required>
  The name of the custom track to stop. This is the value returned by [`startCustomTrack()`](/reference/daily-js/instance-methods/start-custom-track) when the track was started.
</ParamField>

## Return value

Returns a `Promise<string>` that resolves to the name of the stopped track.

## Example

```javascript theme={null}
const trackName = await call.startCustomTrack({ track: myTrack });

// Later, stop it
await call.stopCustomTrack(trackName);
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [startCustomTrack()](/reference/daily-js/instance-methods/start-custom-track)
    * [updateParticipant()](/reference/daily-js/instance-methods/update-participant)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [participant-updated](/reference/daily-js/events/participant-events#participant-updated)
    * [track-stopped](/reference/daily-js/events/media-events#track-stopped)
  </Card>

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