| author | ymh <ymh.work@gmail.com> |
| Fri, 18 Oct 2024 10:24:57 +0200 | |
| changeset 1074 | 231ea5ea7de4 |
| parent 1072 | ac1eacb3aa33 |
| permissions | -rw-r--r-- |
| 1030 | 1 |
This is the README for MetaDataPlayer, an opensource web player with metadata support. |
2 |
||
3 |
Features |
|
4 |
======== |
|
5 |
||
6 |
o Reads json-converted cinelab metadata |
|
7 |
o Reads from Youtube, Dailymotion and Flash backends |
|
8 |
o Loads the data as JSON as well as JSONP |
|
9 |
||
|
1072
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
10 |
Prerequisite |
| 1030 | 11 |
============ |
12 |
||
|
1072
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
13 |
- node + npm |
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
14 |
- `$ npm install` |
| 1030 | 15 |
|
16 |
Building the library |
|
17 |
==================== |
|
18 |
||
|
1072
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
19 |
The library files are scattered in many files. |
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
20 |
It is built with vite. |
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
21 |
- `$ npm run build` |
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
22 |
|
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
23 |
The result of the build is in the dist/ folder. |
| 1030 | 24 |
|
25 |
Running the examples |
|
26 |
==================== |
|
27 |
||
|
1072
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
28 |
- `npm dev` |
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
29 |
|
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
30 |
or for building the dist: |
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
31 |
- `vite build -w` + `python -m http.server 5173` |
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
32 |
|
| 1030 | 33 |
|
34 |
The code |
|
35 |
======== |
|
36 |
||
37 |
The code is scattered among several files, which are concatenated and minified during the |
|
38 |
build process. The html templates in the templates/ directory are also "jsified" during |
|
39 |
this process, to be used by the js code. |
|
|
1072
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
40 |
|
|
ac1eacb3aa33
Migrate source and build to vite.js
ymh <ymh.work@gmail.com>
parents:
1030
diff
changeset
|
41 |
**TODO:** finish the migration of the examples and widgets. Replace the JwPlayer widget with an open source js video player that can play youtube and wimeo videos. Adapt the AdaptivePlayer accordingly. |