Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
lamejs 1.2.1
2
--------------
3
https://github.com/zhuker/lamejs
4
 
5
Instructions to import lamejs into Moodle:
6
 
7
1. Download the latest lamejs code somewhere (example /tmp/lamejs) using:
8
 
9
mkdir -p /tmp/lamejs
10
cd /tmp/lamejs
11
npm install lamejs --save-dev
12
 
13
Note down the version number displayed by the command, to update lib/editor/tiny/plugins/recordrtc/thirdpartylibs.xml accordingly.
14
 
15
If the command does not output a version number, the version number can be found in package.json. You can simply open package.json
16
using your desired editor and look for the version number of lamejs. Alternatively, you may use the following commands:
17
- MacOS:
18
    cat package.json | grep lamejs
19
- Linux:
20
    cat package.json | grep lamejs
21
    or
22
    jq -r '.devDependencies."lamejs"' package.json
23
 
24
2. Copy the following file to your local Moodle directory, to replace the old one:
25
 
26
cp /tmp/lamejs/node_modules/lamejs/lame.all.js [PATH TO YOUR MOODLE]/lib/editor/tiny/plugins/recordrtc/amd/src/lame.all.js
27
 
28
3. Add the following code to the bottom of the `lib/editor/tiny/plugins/recordrtc/amd/src/lame.all.js` file:
29
 
30
export default lamejs;
31
 
32
4. Update the new version in the `lib/editor/tiny/plugins/recordrtc/thirdpartylibs.xml` file.