← Plugins

Media preview

Play videos and preview images and HTML inline in the chat and in file tabs

$ clisbot plugin add afeding/media-preview
Report a bug
afedingExtras0installs46cf120b5405Source
Media preview screenshot 1

Shows local videos, images and HTML pages inside Paseo.

  • Video file panel: opening an mp4, m4v, webm, mov or ogv file plays it in its file tab.
  • Inline previews in chat: agents get a show_media tool. Given a file path, it adds a card to the chat with a video player, the image, or the HTML page (scripts run in an isolated sandbox).

Files are read by the daemon in 8 MB chunks and kept in memory as a local blob while the card is open. Cards for files over 30 MB wait for a tap before loading. Files over 1 GB are rejected. Only media and HTML extensions can be read.

Previews work on desktop and web. On iOS and Android the card shows a notice instead.