# activeHotspots

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web/src/components/Viewer/ChapteredVideo.tsx`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/components/Viewer/ChapteredVideo.tsx#L78)

Pure hotspot-visibility selector (exported for unit tests): the hotspots whose
`tMs` is within `windowMs` of the current playback position.

## Signature

```ts
function activeHotspots(hotspots: ChapteredVideoHotspot[] | undefined, currentMs: number, windowMs: number): ChapteredVideoHotspot[]
```

## Parameters

| Name | Type |
|---|---|
| `hotspots` | `ChapteredVideoHotspot[] | undefined` |
| `currentMs` | `number` |
| `windowMs` | `number` |

**Returns:** `ChapteredVideoHotspot[]`
