{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://deckyard.eu/schema/v24/slide-types/eu.deckyard.slide.video.schema.json",
  "title": "eu.deckyard.slide.video slide content",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 100,
      "title": "Title"
    },
    "source": {
      "type": "string",
      "maxLength": 400,
      "title": "Video",
      "description": "A YouTube or Vimeo link, a Bunny embed link or a Bunny video ID."
    },
    "transcript": {
      "type": "string",
      "maxLength": 20000,
      "title": "Transcript",
      "description": "Not shown on the slide. The reader document and the print version show it under the link to the video."
    },
    "background": {
      "type": "string",
      "title": "Background"
    },
    "autoplay": {
      "type": "string",
      "enum": [
        "off",
        "on",
        ""
      ],
      "title": "Autoplay"
    },
    "watchUrl": {
      "type": "string",
      "maxLength": 400,
      "title": "Watch link for the PDF export",
      "description": "Shown in the PDF export and the reader document instead of the generated link. Use it for a short, readable URL."
    },
    "bunnyLibraryId": {
      "type": "string",
      "maxLength": 20,
      "title": "Bunny library ID",
      "description": "The video library in your own Bunny Stream account (Stream > Video Library). A pasted Bunny play or embed URL already carries one; a bare video UUID needs this."
    },
    "a11yTitle": {
      "type": "string",
      "maxLength": 140,
      "title": "Accessibility title",
      "description": "Optional. Screen readers announce this when the slide becomes active. Prefer a short, descriptive phrase."
    },
    "a11ySummary": {
      "type": "string",
      "maxLength": 280,
      "title": "Accessibility summary",
      "description": "Optional extra context for screen readers (announced after the title). Keep it brief."
    },
    "slideBgImage": {
      "type": "string",
      "title": "Background image",
      "description": "Optional. Fills the whole slide behind the content. Large images are resized automatically; use the focus control to pick which part stays visible when cropped."
    },
    "slideBgFit": {
      "type": "string",
      "enum": [
        "cover",
        "contain",
        ""
      ],
      "title": "Background fit"
    },
    "slideBgFocusX": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "const": ""
        }
      ],
      "title": "Background focus X"
    },
    "slideBgFocusY": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "const": ""
        }
      ],
      "title": "Background focus Y"
    },
    "slideBgOverlay": {
      "type": "string",
      "enum": [
        "auto",
        "none",
        "light",
        "dark",
        "gradient-top",
        "gradient-bottom",
        ""
      ],
      "title": "Background overlay",
      "description": "Auto adds a subtle scrim only when the image is too busy for readable text. Gradient options darken one edge behind the text."
    },
    "slideBgText": {
      "type": "string",
      "enum": [
        "auto",
        "light",
        "dark",
        ""
      ],
      "title": "Text colour",
      "description": "Auto picks the theme text colour with the best contrast for the background image. Light/dark force it. (Legacy \"default\" is treated as the theme default.)"
    },
    "slideLogo": {
      "type": "string",
      "enum": [
        "none",
        "top-right",
        ""
      ],
      "title": "Theme logo",
      "description": "Show the active theme logo in a corner of this slide."
    }
  },
  "propertyNames": {
    "enum": [
      "a11ySummary",
      "a11yTitle",
      "autoplay",
      "background",
      "bunnyLibraryId",
      "slideBgAutoFor",
      "slideBgFit",
      "slideBgFocusX",
      "slideBgFocusY",
      "slideBgImage",
      "slideBgNeedsScrim",
      "slideBgOverlay",
      "slideBgText",
      "slideBgTextAuto",
      "slideLogo",
      "source",
      "title",
      "transcript",
      "watchUrl"
    ]
  },
  "required": [
    "source"
  ]
}