# Video

## Overview

The component allows inserting a video via a URL. It is compatible with well-known video hosting platforms such as YouTube and Vimeo, as well as with file types that most browsers can play without additional plugins.

<figure><img src="/files/3ALmM70zCsrhgIec5ZBa" alt=""><figcaption></figcaption></figure>

### Properties

<table><thead><tr><th width="155.89453125">Name</th><th width="219.90625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>string</code></td><td>Component name</td></tr><tr><td><code>videoType</code></td><td><code>string | null</code></td><td>Type of video based on the URL provided or <code>null</code> if URL is empty</td></tr><tr><td><code>playbackStatus</code></td><td><p><code>'stopped' | 'paused' |</code> </p><p><code>'playing'</code></p></td><td>String value representing the playback status of the video</td></tr></tbody></table>

### Methods

<table><thead><tr><th width="165.421875">Name</th><th width="146.5625">Parameters</th><th width="101.8125">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setUrl</code></td><td><code>url: string</code></td><td><code>void</code></td><td>Set a new URL for the component</td></tr><tr><td><code>play</code></td><td>–</td><td><code>void</code></td><td>Play video</td></tr><tr><td><code>pause</code></td><td>–</td><td><code>void</code></td><td>Pause video</td></tr><tr><td><code>mute</code></td><td>–</td><td><code>void</code></td><td>Mute video</td></tr><tr><td><code>unmute</code></td><td>–</td><td><code>void</code></td><td>Unmute video</td></tr><tr><td><code>setVolume</code></td><td><code>volume: number</code></td><td><code>void</code></td><td>Set volume level for the video (0–100)</td></tr><tr><td><code>setPlaybackSpeed</code></td><td><code>speed: number</code></td><td><code>void</code></td><td>Set playback speed for the video. Speed can be of the following numbers 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2.</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="139.5078125">Name</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td><td></td></tr><tr><td><strong>On Play</strong></td><td>Triggered when the video is played</td><td></td></tr><tr><td><strong>On Pause</strong></td><td>Triggered when the video is paused</td><td></td></tr><tr><td><strong>On Stop</strong></td><td>Triggered when the video is stopped</td><td></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uibakery.io/reference/working-with-components/video.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
