1 |
efrain |
1 |
VideoJS 8.10.0
|
|
|
2 |
--------------
|
|
|
3 |
https://github.com/videojs/video.js
|
|
|
4 |
|
|
|
5 |
Instructions to import VideoJS player into Moodle:
|
|
|
6 |
|
|
|
7 |
1. Download the latest release from https://github.com/videojs/video.js/releases
|
|
|
8 |
(do not choose "Source code")
|
|
|
9 |
2. copy 'video.js' into 'amd/src/video-lazy.js'
|
|
|
10 |
3. copy 'font/' into 'fonts/' folder
|
|
|
11 |
4. copy 'video-js.css' into 'styles.css'
|
|
|
12 |
Add /* stylelint-disable */ in the beginning.
|
|
|
13 |
Maintain the css after "/* Modifications of player made by Moodle: */" to the end of the styles file.
|
|
|
14 |
Check status of:
|
|
|
15 |
https://github.com/videojs/video.js/issues/2777
|
|
|
16 |
6. copy 'lang/' into 'videojs/' subfolder (so the result will be media/player/videojs/videojs/lang).
|
|
|
17 |
|
|
|
18 |
Import plugins:
|
|
|
19 |
YouTube Playback Technology for VideoJS 3.0.1
|
|
|
20 |
---------------------------------------------
|
|
|
21 |
https://github.com/videojs/videojs-youtube
|
|
|
22 |
|
|
|
23 |
Instructions to import YouTube Playback Technology into Moodle:
|
|
|
24 |
1. Copy https://github.com/videojs/videojs-youtube/blob/master/dist/Youtube.js into 'amd/src/Youtube-lazy.js'
|
|
|
25 |
In the beginning of the js file replace
|
|
|
26 |
define(['videojs']
|
|
|
27 |
with
|
|
|
28 |
define(['media_videojs/video-lazy']
|
|
|
29 |
|
|
|
30 |
Ogv.js Playback Technology for VideoJS 1.0.0
|
|
|
31 |
---------------------------------------------
|
|
|
32 |
https://github.com/HuongNV13/videojs-ogvjs
|
|
|
33 |
|
|
|
34 |
Instructions to import Ogv.js Playback Technology into Moodle:
|
|
|
35 |
1. Download the latest release from https://github.com/HuongNV13/videojs-ogvjs/releases
|
|
|
36 |
(do not choose "Source code")
|
|
|
37 |
|
|
|
38 |
2. Copy Videojs-Ogvjs.amd.js into 'amd/src/videojs-ogvjs-lazy.js'
|
|
|
39 |
In the beginning of the js file:
|
|
|
40 |
|
|
|
41 |
Replace
|
|
|
42 |
define(['video.js', 'ogv']
|
|
|
43 |
with
|
|
|
44 |
define(['media_videojs/video-lazy', './local/ogv/ogv']
|