# net.atchan.embed.video

> Published by [atchan.net](https://lexicon.garden/identity/did:plc:vshgahazzq7qwvp2xc6ai27o)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.embed.video)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.embed.video/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.embed.video/examples)

## Definitions

### `net.atchan.embed.video`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | Yes | Alt text description of the video for accessibility. May be empty. |
| `video` | `blob` | Yes | The video represented as bytes |
| `duration` | `integer` | No | Client-declared length of the video in whole seconds |
| `filename` | `string` | Yes | Name of the file as uploaded |
| `thumbnail` | `blob` | No | Frame to show when video is loading, or to use as a thumbnail |
| `aspectRatio` | `ref` → `net.atchan.embed.defs#aspectRatio` | No |  |
| `presentation` | `string` | No | A hint to the client about how to present the video |

## Raw Schema

```json
{
  "id": "net.atchan.embed.video",
  "defs": {
    "main": {
      "type": "object",
      "required": [
        "filename",
        "video",
        "alt"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "maxLength": 20000,
          "description": "Alt text description of the video for accessibility. May be empty.",
          "maxGraphemes": 2000
        },
        "video": {
          "type": "blob",
          "accept": [
            "video/mp4",
            "video/webm"
          ],
          "maxSize": 26214400,
          "description": "The video represented as bytes"
        },
        "duration": {
          "type": "integer",
          "minimum": 0,
          "description": "Client-declared length of the video in whole seconds"
        },
        "filename": {
          "type": "string",
          "maxLength": 2600,
          "description": "Name of the file as uploaded",
          "maxGraphemes": 260
        },
        "thumbnail": {
          "type": "blob",
          "accept": [
            "image/*"
          ],
          "maxSize": 5242880,
          "description": "Frame to show when video is loading, or to use as a thumbnail"
        },
        "aspectRatio": {
          "ref": "net.atchan.embed.defs#aspectRatio",
          "type": "ref"
        },
        "presentation": {
          "type": "string",
          "description": "A hint to the client about how to present the video",
          "knownValues": [
            "default",
            "gif"
          ]
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
