Components

Robust, accessible, and customizable media player components.

/
Core Player

This is the top-most component in the library used to group media elements and control the flow of media state.

Core Provider

This component is used as a render target for the current provider.

Layouts Default Layout

Our default production-ready experience packed with customization options.

Layouts Plyr Layout

Based on the original beautiful design by Sam Potts, this layout is a simple and elegant option.

Display Announcer

This component is used to announce important updates to screen readers.

Display Poster

This component is used to display a media poster or thumbnail image, generally before playback begins.

Display Controls

This component creates a container for control groups and controls when to show them.

Display Gesture

This component enables actions to be performed on the media based on user gestures.

Display Icons

Beautifully hand-crafted collection of icons for media players.

Display Title

This component is used to display the current media title.

Display Thumbnail

This component is used to load and display thumbnail images.

Display Time

This component is used to display certain media states as a unit of time, such as the current time or duration.

Display Captions

This component is used to render and display captions/subtitles.

Display Chapter Title

This component is used to load and display the current chapter title.

Display Buffering Indicator

This page showcases how to display a loading indicator while media is buffering.

Buttons Toggle Button

This component is a generic button for displaying on and off states on press.

Buttons Play Button

This component is used to play and pause media on press.

Buttons Mute Button

This component is used to mute and unmute media on press.

Buttons Caption Button

This component is used to toggle the visibility of the current captions/subtitles text track on press.

Buttons PIP Button

This component is used to enter and exit picture-in-picture mode on press.

Buttons Fullscreen Button

This component is used to enter and exit fullscreen on press.

Buttons Live Button

This component is used to display a live indicator and to seek to the live edge on press.

Buttons Seek Button

This component is used to seek playback forwards or backwards.

Buttons AirPlay Button

This component is used to request remote playback via Apple AirPlay.

Buttons Google Cast Button

This component is used to request remote playback via Google Cast.

Buttons Tooltip

A contextual text bubble that displays a description for an element which appears on interaction.

Sliders Slider

This component is used to create an input for controlling a range of values.

Sliders Audio Gain Slider

This component is used to create a range input for controlling the current audio gain.

Sliders Time Slider

This component is used to create a range input for controlling the current time of playback.

Sliders Volume Slider

This component is used to create a range input for controlling the volume of media.

Sliders Speed Slider

This component is used to create a range input for controlling the current playback rate.

Sliders Quality Slider

This component is used to create a range input for controlling the current playback quality.

Sliders Slider Preview

Used to provide users with a real-time or interactive preview of the value or selection they are making as they move the slider thumb.

Sliders Slider Value

This component is used to display the current value of a slider in various formats such as a raw value, percentage, or time.

Sliders Slider Video

Used to load a low-resolution video to be displayed when the user is hovering over or dragging the time slider.

Sliders Slider Thumbnail

Used to display preview thumbnails when the user is hovering or dragging the time slider.

Sliders Slider Chapters

Used to create predefined sections within a time slider interface based on the currently active chapters text track.

Sliders Slider Steps

Visual markers that can be used to indicate value steps on the slider track.

Menus Menu

This component is used to display content or options in a floating panel.

Menus Menu Button

A button that controls the opening and closing of a menu component. The button will become a `menuitem` when used inside a submenu.

Menus Menu Item

Represents a specific option or action, typically displayed as a text label or icon, which users can select.

Menus Menu Portal

Portals menu items into a specified location, generally the document body.

Menus Radio Group

This component is used to display a set of options where only one can be checked.