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