Alusio Docs

Command Palette

Search for a command to run...

Video

Embed YouTube video dengan aspect ratio responsif.

Type: "video". Embed YouTube video dengan rasio container responsif.

Props

FieldTypeRequiredDefaultKeterangan
urlstring (URL, max 2000)""URL YouTube (watch atau short)
titlestring (max 200)Title untuk a11y
aspectRatio'16/9'|'4/3'|'1/1'"16/9"Rasio container video

Contoh: 16:9 standar

{
  "id": "vid01abcd",
  "type": "video",
  "props": {
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "title": "Introduction to Alusio",
    "aspectRatio": "16/9"
  }
}

Contoh: 1:1 square (untuk Instagram-style embed)

{
  "id": "vid02efgh",
  "type": "video",
  "props": {
    "url": "https://www.youtube.com/watch?v=abc123",
    "aspectRatio": "1/1"
  }
}

Format URL valid

  • youtube.com/watch?v=ID
  • youtu.be/ID
  • youtube.com/shorts/ID

Builder otomatis convert ke embed URL.

Tips

  • Pakai "16/9" untuk video landscape biasa (default)
  • Pakai "1/1" untuk vertical content yang dipotong square
  • Pakai "4/3" untuk content lama / classic ratio
  • Untuk video custom (Vimeo, MP4 self-hosted, dll) — saat ini hanya YouTube didukung. Roadmap: tambah support Vimeo + MP4.