readme_moodle.txt 1.04 KB
Newer Older
1
2
VideoJS 7.10.0
--------------
3
4
5
6
https://github.com/videojs/video.js

Instructions to import VideoJS player into Moodle:

7
8
9
1. Download the latest release from https://github.com/videojs/video.js/releases
   (do not choose "Source code")
2. copy 'video.js' into 'amd/src/video-lazy.js'
10
11
12
13
   In the beginning of the js file replace
     define(['global/window', 'global/document']
   with
     define(['./window', './document']
14
15
3. copy 'font/' into 'fonts/' folder
4. copy 'video-js.css' into 'styles.css'
16
17
   Add /* stylelint-disable */ in the beginning.
   Maintain the css after  "/* Modifications of player made by Moodle: */" to the end of the styles file.
18
19
   Check status of:
   https://github.com/videojs/video.js/issues/2777
20
6. copy 'lang/' into 'videojs/' subfolder (so the result will be media/player/videojs/videojs/lang).
21
22
23

Import plugins:

24
1. Copy https://github.com/videojs/videojs-youtube/blob/master/dist/Youtube.js into 'amd/src/Youtube-lazy.js'
25
26
27
   In the beginning of the js file replace
     define(['videojs']
   with
28
     define(['media_videojs/video-lazy']