export default {
  "metadata": { "section": "Video" },
  "definitions": {
    "VideoNode": {
      "metadata": {
        "tsRicosNode": true,
        "examples": ["video-url", "video-wix"],
        "features": ["VIDEO"],
        "description": "Embeds and plays video content directly in a page. When rendered, it is displayed as the video player with the specified video file. Users can interact with the controls to play, pause, rewind, and adjust the volume of the video."
      },
      "properties": {
        "type": {
          "enum": ["VIDEO"],
          "metadata": {
            "description": "Node type. \n Must be `VIDEO`."
          }
        },
        "videoData": {
          "ref": "VideoData",
          "metadata": {
            "description": "Video details."
          }
        }
      },
      "optionalProperties": {
        "id": {
          "type": "string",
          "metadata": {
            "format": "NODE_ID",
            "description": "[Node ID](#node-ids)."
          }
        },
        "nodes": {
          "metadata": {
            "tsRicosNodesChildren": true,
            "description": "Child nodes to define a video caption."
          },
          "elements": {
            "ref": "CaptionNode"
          }
        }
      }
    },
    "VideoData": {
      "properties": {
        "video": {
          "metadata": {
            "description": "Video file details."
          },
          "ref": "Media"
        }
      },
      "optionalProperties": {
        "containerData": {
          "metadata": {
            "description": "Video container styling."
          },
          "ref": "PluginContainerData"
        },
        "thumbnail": {
          "metadata": {
            "description": "Video thumbnail details."
          },
          "ref": "Media"
        },
        "disableDownload": {
          "metadata": {
            "description": "Whether the video download button is disabled. \n Default: `false`"
          },
          "type": "boolean"
        },
        "title": {
          "metadata": {
            "description": "Video title."
          },
          "type": "string"
        },
        "options": {
          "ref": "PlaybackOptions",
          "metadata": {
            "description": "Playback details."
          }
        }
      }
    },
    "PlaybackOptions": {
      "optionalProperties": {
        "autoPlay": {
          "metadata": {
            "description": "Whether the media automatically starts playing after opening a page."
          },
          "type": "boolean"
        },
        "playInLoop": {
          "type": "boolean",
          "metadata": { "description": "Whether the media is looped." }
        },
        "showControls": {
          "type": "boolean",
          "metadata": { "description": "Whether to show the media controls." }
        }
      }
    }
  }
}