MDL-67383 media_videojs: Update VideoJS versions in Moodle related files
[moodle.git] / media / player / videojs / readme_moodle.txt
CommitLineData
5aca4404 1VideoJS 7.7.6
ce1500a8 2-------------
7e3f6373
MG
3https://github.com/videojs/video.js
4
5Instructions to import VideoJS player into Moodle:
6
ce1500a8
MG
71. Download the latest release from https://github.com/videojs/video.js/releases
8 (do not choose "Source code")
92. copy 'video.js' into 'amd/src/video-lazy.js'
4487612c
TD
10 In the beginning of the js file replace
11 define(['global/window', 'global/document']
12 with
13 define(['./window', './document']
ce1500a8
MG
143. copy 'font/' into 'fonts/' folder
154. copy 'video-js.css' into 'styles.css'
411bbe6b
MP
16 Add /* stylelint-disable */ in the beginning.
17 Maintain the css after "/* Modifications of player made by Moodle: */" to the end of the styles file.
d76dd4d0
MG
18 Check status of:
19 https://github.com/videojs/video.js/issues/2777
411bbe6b 206. copy 'lang/' into 'videojs/' subfolder (so the result will be media/player/videojs/videojs/lang).
7e3f6373
MG
21
22Import plugins:
23
da06c819 241. Copy https://github.com/videojs/videojs-youtube/blob/master/dist/Youtube.js into 'amd/src/Youtube-lazy.js'
7e3f6373
MG
25 In the beginning of the js file replace
26 define(['videojs']
27 with
411bbe6b 28 define(['media_videojs/video-lazy']
ce1500a8
MG
29
302. Download the latest release from https://github.com/videojs/videojs-flash
31 Run "npm install"
32 Copy 'dist/videojs-flash.js' into 'amd/src/videojs-flash-lazy.js'
33 In the beginning of the js file replace
34 define(['videojs']
35 with
411bbe6b 36 define(['media_videojs/video-lazy']
ce1500a8
MG
37
383. Download https://github.com/videojs/video-js-swf/blob/master/dist/video-js.swf
39 and place it into 'videojs/video-js.swf'