Skip to content

Video and audio ​

Video and Audio each hold one file from the media library: a book trailer, a podcast episode, a sound sample.

They share the upload settings. Use Allowed MIME types to accept only the formats your player supports, such as video/mp4 or audio/mpeg, and set a Max file size so editors don't upload files too large for your server.

For a video hosted on YouTube or Vimeo, store its address in a URL field instead, and display it with an Embed block.

In the block editor, bind these fields to the core Video and Audio blocks with a dynamic tag.

Technical details for LLMs
  • Type keys: video, audio (single file; max_files 1).
  • Stored: attachment id. Abilities read: media object; audio adds duration. Write: attachment id.
  • Dynamic data sub-paths: video url, title, caption, id; audio adds duration.

Documentation for the VX Framework.