Use version 8.17.4 of the video.js library locally

Created on 4 October 2024, about 1 month ago

Problem/Motivation

Load the library from the local library directory instead of the CDN.

Proposed resolution

To load the video.js library from local you have to do two steps:

  1. Download the library in the library directory. There are two options:
    • Download the file https://github.com/videojs/video.js/releases/download/v8.17.4/video-js-8..., create the video.js directory in /web/libraries/ and unzip the downloaded video-js-8.17.4.zip file.
    • Modify the composer.json file of the project, adding the following code in the repositories section:
      {
          "type": "package",
          "package": {
              "name": "videojs/video.js",
              "version": "8.17.4",
              "type": "drupal-library",
              "extra": {
                  "installer-name": "video.js"
              },
              "dist": {
                  "url": "https://github.com/videojs/video.js/releases/download/v8.17.4/video-js-8.17.4.zip",
                  "type": "zip"
              },
              "license": "MIT"
          }
      }
      

      and then run the following command: composer require videojs/video.js

  2. Apply the patch included below
📌 Task
Status

Needs review

Version

3.0

Component

Code

Created by

🇪🇸Spain pascuperbla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024