# encodeHotspots

**Kind:** Function

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-13-upload/video-directive.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-13-upload/video-directive.ts#L84)

URL-safe encoding of the clickable hotspot list (rides the directive attribute
like chapters, so the JSON survives directive attribute parsing intact).

## Signature

```ts
function encodeHotspots(hotspots: VideoHotspot[]): string
```

## Parameters

| Name | Type |
|---|---|
| `hotspots` | `VideoHotspot[]` |

**Returns:** `string`
