Commit cf513fa
committed
Swap MediaPlayerIndex to composables and drop the Vuex store
MediaPlayerIndex now delegates to VideoPlayer or AudioPlayer and drives
state through the media composables instead of the Vuex module. Remove
the store module and its injection in videojsVueMixin, and rewire the
captions, languages, fullscreen, and transcript views onto the
composable API.1 parent db78d2f commit cf513fa
16 files changed
Lines changed: 116 additions & 1501 deletions
File tree
- kolibri/plugins/media_player
- frontend
- mixins
- modules
- captions
- views
- MediaPlayerCaptions
- MediaPlayerFullscreen
- MediaPlayerLanguages
- MediaPlayerTranscript
- __tests__
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 8 | | |
19 | 9 | | |
20 | 10 | | |
| |||
Lines changed: 0 additions & 298 deletions
This file was deleted.
0 commit comments