> For the complete documentation index, see [llms.txt](https://jolzee.gitbook.io/leopard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jolzee.gitbook.io/leopard/components/video.md).

# Video Player

## Introduction

The video component can display **YouTube**, **Vimeo** and **mp4** videos. It also capable of showing a audio player if you link directly to a **mp3**.&#x20;

## Modal

### Screenshot

<div align="left"><img src="/files/-LaHCeoI0b27VQdLD0gc" alt=""></div>

### Output Parameter

```groovy
extensions = ${ExtensionHelper.displayVideo(url,channel)}
```

### JSON

```javascript
{
	"name": "displayVideo",
	"parameters": {
		"video_url": "https://www.youtube.com/watch?v=84WIaK3bl_s"
	},
	"inline": false
}
```

## Inline

### Screenshot

<div align="left"><img src="/files/-M7TtmMJidNThY85DPS3" alt=""></div>

### Output Parameter

```groovy
extensions = ${ExtensionHelper.displayVideo(url,channel,true)}
```

### JSON

```javascript
{
	"name": "displayVideo",
	"parameters": {
		"video_url": "https://www.youtube.com/watch?v=84WIaK3bl_s"
	},
	"inline": true
}
```
