Skip to main content

Video Box

The Video Box lets you place MP4 or WebM videos directly on your page. Like images and text, you can lay them out freely—perfect for adding motion and visual impact that only video can bring to your site.

Tip: For details on how to upload video files and file size limits, see the articles below.

What is a video box?

A video box lets you place a video file directly on your page. Just like image and text boxes, you can freely lay it out and style it on the canvas.

Video boxes are great for adding motion and impact to areas like the hero section (top of the page), service introductions, and galleries.

Note: Supported video files for video boxes

Video boxes only support video files (mp4, webm) up to 1GB uploaded directly to Studio.Design. Videos hosted on external servers can't be used.


Adding a video box

Video boxes are added as a <video> tag.

Once added, a video box can't be converted to another type of box, such as an image box.

  1. In the left-side navigation, select the [Add] icon.

  2. In the Add panel, select the [Basic] tab.

  3. From the [Basic] menu, choose the [Video] box and place it on the page.

Tip: Video box with play/pause button (Video with Button)

If you want to give viewers more control over the video, we recommend Video with Button, which includes play and pause buttons.

You can find it in the [Interaction] menu under the [Basic] tab of the Add panel.

Things to know about Video with Button

  • Inside a parent <div>, the video box <video> and an absolutely positioned play/pause button <button> are placed together and grouped as a single part.

  • It can't be turned into a component.

  • If you ungroup the part, the link between the video and the play/pause button is lost, and regrouping them won't restore it.

  • After ungrouping, the play/pause button may appear to be gone, but it's usually just moved to the lower right of the same layer.

  • Once you delete the play/pause button, it can't be re-created.

  • The play/pause button has display conditions set on it. Once you delete those conditions, they can't be set again.


Replacing a video

  1. Double-click the video box you want to change.

  2. In the [Upload & Replace] panel on the left, select the new video to replace the existing one.


Setting video display and playback options

In a video box, you can configure how the video is displayed and how it plays.

  1. Select the video box you want to edit.

  2. In the right panel, select the [Video] tab.

    If the panel is closed, open the right panel.

  3. Configure the video display settings in the Video tab.

Video settings

At the top of the [Video] tab, you'll see the first frame of the video. Here are the available settings:

  • URL: Displays the URL of the video.

  • Poster image: Sets the preview image shown before playback, or the image shown if the video can't load. By default, the first frame of the video is used.

  • Video fit: Use this to crop or fit the video in the box. The options and how they behave are described below.

    • cover: Scales the video to fill the box while keeping its aspect ratio. There's no empty space, but if the video and box aspect ratios differ, part of the video will be cropped.

    • contain: Scales the video to fit within the box while keeping its aspect ratio. The full video is always visible, but if the aspect ratios differ, empty space will appear on the top/bottom or left/right.

    • fill: Stretches the video to fill the entire box. The aspect ratio is ignored, so the video may be stretched or squished and look distorted.

    • none: Displays the video at its original size. If it's larger than the box, it'll overflow; if smaller, there will be empty space. No resizing or cropping happens.

    • scale-down: Uses whichever of contain or none displays the video smaller. If the video is larger than the box, contain is applied and it's scaled down; if it's smaller, none is applied and it's shown at its original size.

  • Show player: Toggles the player controls on or off. (The look and behavior of the player are determined by the browser's built-in features and specs, and can't be customized by Studio.Design.)

  • Autoplay: When turned on, the video plays automatically.

    • Mute is automatically turned on as well.

    • Turning on Inline playback will also turn this on.

  • Mute: When turned on, the video plays muted by default if it has audio.

    • Turning on Inline playback will also turn this on.

    • Turning on Autoplay will also turn this on.

  • Loop: When turned on, the video plays continuously in a loop.

  • Inline playback: When turned on, the video plays inline within the page layout on mobile instead of going fullscreen.

    • Both Autoplay and Mute are automatically turned on as well.

  • Disable PiP: When turned on, viewers can't use Picture-in-Picture (PiP) mode.

  • Play on click: When turned on, the video only plays when the user clicks it.

    • Area: With Area set, the video also plays or pauses when the user clicks the specified element (area), in addition to the video itself. Set an ID on the element you want to use as a trigger (such as a button or box), and then select that ID in Area.

      In the example below, clicking the Play icon <i> with the ID #play_video plays or pauses the video.


Setting tags and attributes for a video

Tag and attribute settings are configured in the Settings tab.

  1. Select the video box you want to edit.

  2. In the right panel, select the [Settings] tab.

    If the panel is closed, open the right panel.


Working with video boxes

Just like image boxes, you can do the following with video boxes.

Right-click a selected video box to open the menu.

Note:

You can't stack elements directly on top of a video box.

When you want to overlay elements—for example, to use the video as a background—create a parent box and place the overlay elements using absolute positioning.


Editing the look and layout of a video box

Just like other boxes, you can edit the appearance and layout, and set up conditional animations.

For details, see the help articles listed under Box design settings.

Did this answer your question?