> ## 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)`

✗ Prebuilt✓ Custom

Stops the specified custom track. To confirm the track has stopped, listen for [`participant-updated`](https://docs.daily.co/reference/daily-js/events/participant-events#participant-updated) or [`track-stopped`](https://docs.daily.co/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

**trackName** `string` *required*

The name of the custom track to stop. This is the value returned by [`startCustomTrack()`](https://docs.daily.co/reference/daily-js/instance-methods/start-custom-track) when the track was started.

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

> [card] Methods
>
> * [startCustomTrack()](https://docs.daily.co/reference/daily-js/instance-methods/start-custom-track.md)
> * [updateParticipant()](https://docs.daily.co/reference/daily-js/instance-methods/update-participant.md)

> [card] Events
>
> * [participant-updated](https://docs.daily.co/reference/daily-js/events/participant-events.md#participant-updated)
> * [track-stopped](https://docs.daily.co/reference/daily-js/events/media-events.md#track-stopped)

> [card] Guides
>
> * [Custom tracks](https://docs.daily.co/docs/daily-js/features/custom-tracks.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.