Open Presentation

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Embed Payload

    A live web page, shown in a web presenter when its host allows and as a linked picture everywhere else (PDF, PNG, PowerPoint, print, thumbnails). A string is shorthand for { "src": value }. Engines never load 'src': whether and from which sites a page is shown live is the host's decision (the presenter's 'embeds' option), not the deck's, so a deck holds no sandbox policy.

    Metadata

    Definition
    #/$defs/EmbedPayload
    Form
    2 alternative forms (oneOf)
    Source
    spec/schemas/opf.schema.json

    Field index

    This definition uses the forms or value constraints below.

    oneOf 1 · ref:EmbedUrl

    Referenced EmbedUrl · string

    An https URL. Any other scheme (http, data, javascript, a relative path) is a schema error.

    Exact constraints for Referenced EmbedUrl
    Referenced EmbedUrl schema
    {
      "type": "string",
      "pattern": "^https://[^\\s/?#]+[^\\s]*$",
      "maxLength": 2048,
      "description": "An https URL. Any other scheme (http, data, javascript, a relative path) is a schema error.",
      "examples": [
        "https://app.example.com/dashboards/revenue"
      ]
    }
    Exact constraints for oneOf 1
    oneOf 1 schema
    {
      "$ref": "#/$defs/EmbedUrl"
    }

    oneOf 2 · object

    FieldTypeReq.DefaultDescription
    srcref:EmbedUrlyes—The page's https address. Never loaded by an engine; a click on the static form opens it in a new tab.
    titlestring——What the page is: its accessible name, and the heading of the card drawn when there is no 'preview'. Absent: the site name (the host of 'src' without 'www.').
    aspectRationumber——Width to height of the frame, as an image block's aspectRatio (1.6 is 16:10). The frame is the largest box of that ratio inside the block's region. Absent: 16:9 (1.7777777777777777).
    previewref:ImageSource——A picture of the page, drawn wherever the page is not shown live: PDF, PNG, PowerPoint, print and thumbnails. It is drawn whole (contain) on the scheme's surface color. Absent: a card with the title, the site name and a link icon.

    src

    typeref:EmbedUrlrequiredyesdefault—

    The page's https address. Never loaded by an engine; a click on the static form opens it in a new tab.

    title

    typestringrequirednodefault—

    What the page is: its accessible name, and the heading of the card drawn when there is no 'preview'. Absent: the site name (the host of 'src' without 'www.').

    aspectRatio

    typenumberrequirednodefault—

    Width to height of the frame, as an image block's aspectRatio (1.6 is 16:10). The frame is the largest box of that ratio inside the block's region. Absent: 16:9 (1.7777777777777777).

    preview

    typeref:ImageSourcerequirednodefault—

    A picture of the page, drawn wherever the page is not shown live: PDF, PNG, PowerPoint, print and thumbnails. It is drawn whole (contain) on the scheme's surface color. Absent: a card with the title, the site name and a link icon.

    Exact constraints for oneOf 2
    oneOf 2 schema
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "src"
      ],
      "properties": {
        "src": {
          "$ref": "#/$defs/EmbedUrl",
          "description": "The page's https address. Never loaded by an engine; a click on the static form opens it in a new tab."
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "description": "What the page is: its accessible name, and the heading of the card drawn when there is no 'preview'. Absent: the site name (the host of 'src' without 'www.')."
        },
        "aspectRatio": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 10,
          "description": "Width to height of the frame, as an image block's aspectRatio (1.6 is 16:10). The frame is the largest box of that ratio inside the block's region. Absent: 16:9 (1.7777777777777777)."
        },
        "preview": {
          "$ref": "#/$defs/ImageSource",
          "description": "A picture of the page, drawn wherever the page is not shown live: PDF, PNG, PowerPoint, print and thumbnails. It is drawn whole (contain) on the scheme's surface color. Absent: a card with the title, the site name and a link icon."
        }
      }
    }
    Complete definition constraints
    Schema constraints
    {
      "description": "A live web page, shown in a web presenter when its host allows and as a linked picture everywhere else (PDF, PNG, PowerPoint, print, thumbnails). A string is shorthand for { \"src\": value }. Engines never load 'src': whether and from which sites a page is shown live is the host's decision (the presenter's 'embeds' option), not the deck's, so a deck holds no sandbox policy.",
      "oneOf": [
        {
          "$ref": "#/$defs/EmbedUrl"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "src"
          ],
          "properties": {
            "src": {
              "$ref": "#/$defs/EmbedUrl",
              "description": "The page's https address. Never loaded by an engine; a click on the static form opens it in a new tab."
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "description": "What the page is: its accessible name, and the heading of the card drawn when there is no 'preview'. Absent: the site name (the host of 'src' without 'www.')."
            },
            "aspectRatio": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 10,
              "description": "Width to height of the frame, as an image block's aspectRatio (1.6 is 16:10). The frame is the largest box of that ratio inside the block's region. Absent: 16:9 (1.7777777777777777)."
            },
            "preview": {
              "$ref": "#/$defs/ImageSource",
              "description": "A picture of the page, drawn wherever the page is not shown live: PDF, PNG, PowerPoint, print and thumbnails. It is drawn whole (contain) on the scheme's surface color. Absent: a card with the title, the site name and a link icon."
            }
          }
        }
      ],
      "examples": [
        "https://app.example.com/dashboards/revenue",
        {
          "src": "https://app.example.com/dashboards/revenue",
          "title": "Revenue dashboard",
          "aspectRatio": 1.6,
          "preview": "asset:revenue-dashboard"
        }
      ]
    }