# town.delve.embed.video

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Description

A video embedded in a Bluesky record (eg, a post).

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.embed.video)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.embed.video/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.embed.video/examples)

## Definitions

### `town.delve.embed.video#caption`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `file` | `blob` | Yes |  |
| `lang` | `string` (language) | Yes |  |

### `town.delve.embed.video`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No | Alt text description of the video, for accessibility. |
| `aspectRatio` | `ref` → `town.delve.embed.defs#aspectRatio` | No |  |
| `captions` | `array` | No |  |
| `presentation` | `string` | No | A hint to the client about how to present the video. |
| `video` | `blob` | Yes | The mp4 video file. May be up to 300mb, formerly limited to 100mb. |

### `town.delve.embed.video#view`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No |  |
| `aspectRatio` | `ref` → `town.delve.embed.defs#aspectRatio` | No |  |
| `cid` | `string` (cid) | Yes |  |
| `playlist` | `string` (uri) | Yes |  |
| `presentation` | `string` | No | A hint to the client about how to present the video. |
| `thumbnail` | `string` (uri) | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "caption": {
      "properties": {
        "file": {
          "accept": [
            "text/vtt"
          ],
          "maxSize": 20000,
          "type": "blob"
        },
        "lang": {
          "format": "language",
          "type": "string"
        }
      },
      "required": [
        "lang",
        "file"
      ],
      "type": "object"
    },
    "main": {
      "properties": {
        "alt": {
          "description": "Alt text description of the video, for accessibility.",
          "type": "string"
        },
        "aspectRatio": {
          "ref": "town.delve.embed.defs#aspectRatio",
          "type": "ref"
        },
        "captions": {
          "items": {
            "ref": "#caption",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "presentation": {
          "description": "A hint to the client about how to present the video.",
          "knownValues": [
            "default",
            "gif"
          ],
          "type": "string"
        },
        "video": {
          "accept": [
            "video/mp4"
          ],
          "description": "The mp4 video file. May be up to 300mb, formerly limited to 100mb.",
          "maxSize": 300000000,
          "type": "blob"
        }
      },
      "required": [
        "video"
      ],
      "type": "object"
    },
    "view": {
      "properties": {
        "alt": {
          "type": "string"
        },
        "aspectRatio": {
          "ref": "town.delve.embed.defs#aspectRatio",
          "type": "ref"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "playlist": {
          "format": "uri",
          "type": "string"
        },
        "presentation": {
          "description": "A hint to the client about how to present the video.",
          "knownValues": [
            "default",
            "gif"
          ],
          "type": "string"
        },
        "thumbnail": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "cid",
        "playlist"
      ],
      "type": "object"
    }
  },
  "description": "A video embedded in a Bluesky record (eg, a post).",
  "id": "town.delve.embed.video",
  "lexicon": 1
}
```
