---
title: WebVideo
---

import LibraryInfo from '@theme/LibraryInfo'
import { Feedback, PropsTable } from '../../src/components'
import { WebVideo } from '@telus-uds/components-web'
import { WebVideo as WebDocs } from 'docs/@telus-uds/components-web'
import AvailableOnWebOnly from '../../partials/_platform-considerations-web-only.mdx'
import NoStylisticVariants from '../../partials/_variants-none.mdx'

# WebVideo

<LibraryInfo packageType="Web Component" />

```jsx live
<WebVideo videoId="ppF-fn37SDs" videoLength={30} aspectRatio="16:9" defaultVolume={70} copy="en" />
```

## Introduction

Embed YouTube videos.

[Follow the appropriate instructions](importing-components) to add this component in to your app.

## Guidance

When using a video from YouTube is necessary, you may do so by providing the ID of the video to the `videoId` prop.
This will leverage the standard YouTube player. Like `Video`, `WebVideo` can be positioned and sized with `FlexGrid`.
It is required that the time be passed in (in seconds) to the `videoLength` prop.
Additionally, you may define the video's default volume and whether it should be muted from the start.
If you happen to be using a YouTube video that is not in 16:9 aspect ratio, you may also set a 4:3 or 1:1 aspect ratio via the `aspectRatio` prop.
If a thumbnail that is different from the one provided by YouTube is required, a custom one may be passed in to the `posterSrc` prop.

### Accessibility

See [Video](video) for more information.

### Platform considerations

<AvailableOnWebOnly />

## Props

<PropsTable web={WebDocs} />

## Variants

<NoStylisticVariants />

## Feedback

<Feedback component="WebVideo" />
