Video Playlist

Video playlists wrap multiple <wa-video> elements into a playlist with navigation controls.

Examples

Link to This Section

Controls Preset

Link to This Section

Use the controls attribute to set the controls preset for all videos in the playlist. Accepts the same values as <wa-video>: none, standard, or full (default).

Link to This Section

Use the next(), previous(), and goTo(index) methods to navigate between videos programmatically.

Listening for Changes

Link to This Section

The wa-video-change event fires when the active video changes, providing the previous index, current index, and the incoming video's metadata.

No change yet.

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/video-playlist/video-playlist.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/video-playlist/video-playlist.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/video-playlist/video-playlist.js';

To import this component for React 18 or below, use the following code:

import WaVideoPlaylist from '@awesome.me/webawesome/dist/react/video-playlist/index.js';

Slots

Link to This Section

Learn more about using slots.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

Methods

Link to This Section

Learn more about methods.

Events

Link to This Section

Learn more about events.

CSS parts

Link to This Section

Learn more about CSS parts.

Dependencies

Link to This Section

This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.

Need a hand? Report a bug Ask for help