Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Video.js (HTML5 Video Player)

Security covered Maintenance fixes only 3,739 sites

Part of the Videojs ecosystem · 5 projects

This module integrates the Video.js HTML5 media player with Drupal. It allows videos to be played across various devices and browsers, using a Flash fallback for older systems. The module provides configuration options for fields and views, and supports features like subtitles and looping.

Video.js is an HTML5 video and audio player. This module integrates Video.js 10 with Drupal field formatters so file and media fields can be displayed as a Video.js player.

Requirements

The Video.js library (videojs/cdn 10.0.0 or later) is required unless CDN loading is enabled.

a

  • Media (Drupal core) Used for the "Video.js Media Remote Video" formatter.
  • Token: Provides a token browser when configuring custom poster or thumbnail URLs.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

The module can load Video.js from a CDN if enabled at Administration > Configuration > Media > Video.js. To install the library locally, see:

Module ReadmeVideoJS Docs

Configuration

  1. Add a file field (video or audio) to an entity type.
  2. In Manage display, choose one of the Video.js formatters:
    • Video.js Video for file/video fields.
    • Video.js Player with fallback sources to use multiple field values as fallback sources in a single player.
    • Video.js Audio for audio file fields.
    • Video.js Media Remote Video for oEmbed remote video fields (ON MEDIA TYPES ONLY!) (YouTube and Vimeo).
  3. Configure player settings such as skin, preload, autoplay, loop, muted, poster, and thumbnail.

Video.js Video vs. Player with fallback sources

Both formatters work on file and video fields, but they handle multiple field values differently:

  • Video.js Video renders one player per file. If the field allows multiple uploads, each video appears as its own separate player on the page. This should usually be used.

  • Video.js Player with fallback sources renders one player for all files in the field. Every uploaded file becomes a source element inside that single player. The browser (via Video.js) tries the sources in order and plays the first format it supports. Use this when the uploads are alternative encodings of the same video, for example MP4, WebM, and Ogg versions of one recording.

Both formatters share the same player settings (skin, preload, autoplay, poster, thumbnail, and so on).

Submodules

Video.js Klaro (videojs_klaro)

Integrates Klaro Cookie & Consent Management with the Video.js remote video formatter. When enabled, it intercepts the videojs_remote template preprocess and applies Klaro contextual consent to supported remote video platforms (e.g. YouTube, Vimeo).

Currently supported provider Vimeo, Youtube

Requirements:

  • The Klaro module must be installed and configured with services matching the remote video platforms in use.

Installation:

Enable videojs_klaro at Administration > Extend alongside the main videojs module. No additional configuration is required beyond setting up Klaro services for the relevant video platforms.

Supporting this module

Support DROWL's ♥ FOSS work on this module on OpenCollective!

Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!

We're committed to building and maintaining Drupal modules that benefit the entire community.

Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!

If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.

Support our FOSS development ♥️

You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!

Sponsor a feature or bugfix 🚀

Let's make Drupal even better, together!

10.x development proudly sponsored by German Drupal Friends & Companies:

webks: websolutions kept simple (https://www.webks.de)
and
DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)

Older branches development proudly sponsored by Webotics.io and Dev-Branch

Drupal 9–11

Ask your assistant about Video.js (HTML5 Video Player)

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
10
Tracked since
Nov 2023
Latest release
2 weeks ago
Releases (12 mo)
4 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
10.0.0-alpha2 Pre-release 11 Sep 28, 2026
10.0.0-alpha1 Pre-release 11 Sep 1, 2026
10.x-dev Dev 11 Aug 13, 2026
4.x-dev Dev 9–11 Aug 13, 2026
3.1.1 Stable 9–11 Jun 28, 2025
3.0.1 Stable 9–10 Nov 25, 2023
8.x-2.1 Stable 8–9 Nov 25, 2023
3.0.0 Stable 9–10 Nov 25, 2023
3.x-dev Dev 9–11 Nov 25, 2023
8.x-2.0 Stable 8–9 Nov 25, 2023