Skip to content

Video Player

To manually embed a video in a page, use the <VideoPlayer> component. This can be useful to display an introduction video for a course in a collection page for example.

Preview
Play
import { VideoPlayer } from 'starlight-videos/components'

Display a video using the <VideoPlayer> component and provide a link attribute to the video URL. A manually embedded video can be useful to display an introduction video for a course in a collection page.

import { VideoPlayer } from 'starlight-videos/components'
<VideoPlayer link="https://www.youtube.com/watch?v=5u0Ds7wzUeI" />
Preview

The <VideoPlayer> component accepts the following props:

required
type: string

The link to the video to display in the video player.