Delivery

How to Get the Embed Code for a Video

Copy an iframe snippet and customize playback options for any website

Each video on host.video has an iframe embed code you can paste into any webpage. You can also append query parameters to the embed URL to control playback behavior.

Step 1: Open the video detail page

In the sidebar, click Videos, then click the video you want to embed. The video must have a status of Ready — the embed section does not appear while a video is still processing.

Step 2: Copy the embed code

In the right column, find the Embed section. Click the code block to copy the iframe snippet to your clipboard. The code looks like this:

<iframe src="https://your-domain.com/embed/VIDEO_ID" allow="autoplay"></iframe>

Paste this into your HTML wherever you want the player to appear. The iframe fills 100% of its container's width and height, so size the container to match your desired aspect ratio (16:9 is typical).

Step 3: Customize playback options

Append query parameters to the src URL to change how the player behaves. Parameters use 1 for true and 0 for false unless noted otherwise.

Autoplay

?autoplay=1&muted=1

Autoplay requires the video to also be muted — browsers block unmuted autoplay. Both parameters default to 0.

Mute on load

?muted=1

Starts the video muted. The viewer can unmute using the volume control.

Loop

?loop=1

Restarts the video automatically when it ends. Defaults to 0.

Captions

?subtitles=0

Captions are enabled by default if the video has a subtitle track. Set to 0 to hide the captions button and disable them.

Accent color

?color=%23ff0000

Sets the color of the progress bar and play button accent. Accepts a hex color (URL-encoded, so # becomes %23) or a named color (red, blue, white, etc.). If omitted, the player uses its default color.

Combining parameters

Parameters can be combined with &:

?autoplay=1&muted=1&loop=1&color=%230066ff

Other available options

Parameter Default Description
controls 1 Show or hide the player controls
loop 0 Loop the video
mode dark Player theme: dark or light
background black Player background color or transparent
fit contain Video fit: contain or cover
start 0 Start time in seconds
end Stop playback at this time in seconds
fullscreen 1 Show the fullscreen button
pip 1 Show the picture-in-picture button
chapters 1 Show chapter markers if available
thumbnails 1 Show thumbnail previews on the scrubber
keyboard 1 Enable keyboard shortcuts
preload auto Preload behavior: auto, metadata, or none