# buildVideoDirective

**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#L112)

Build the `:::video{…}` container directive from a resolved spec. The reader's
remark plugin reads these attributes; chapters ride URL-encoded so the JSON
survives directive attribute parsing intact.

## Signature

```ts
function buildVideoDirective(spec: ChapteredVideoSpec): string
```

## Parameters

| Name | Type |
|---|---|
| `spec` | `ChapteredVideoSpec` |

**Returns:** `string`
