@nomercy-entertainment/nomercy-video-player 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/delete-workflow-runs.yml +20 -0
- package/.github/workflows/npm-publish.yml +4 -1
- package/.github/workflows/release.yml +4 -0
- package/dist/index.js +5 -1
- package/dist/plugins/keyHandlerPlugin.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +6 -1
- package/src/plugins/keyHandlerPlugin.ts +6 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Delete old workflow runs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 0 * * *"
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
del_runs:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
actions: write
|
|
12
|
+
contents: read
|
|
13
|
+
steps:
|
|
14
|
+
- name: Delete workflow runs
|
|
15
|
+
uses: Mattraks/delete-workflow-runs@v2
|
|
16
|
+
with:
|
|
17
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
18
|
+
repository: ${{ github.repository }}
|
|
19
|
+
retain_days: 30
|
|
20
|
+
keep_minimum_runs: 6
|
package/dist/index.js
CHANGED
|
@@ -1047,7 +1047,11 @@ class NMPlayer extends base_1.Base {
|
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
1049
|
});
|
|
1050
|
-
this.on('
|
|
1050
|
+
this.on('play', () => {
|
|
1051
|
+
this.container.classList.remove('buffering');
|
|
1052
|
+
this.container.classList.remove('error');
|
|
1053
|
+
});
|
|
1054
|
+
this.on('time', () => {
|
|
1051
1055
|
this.container.classList.remove('buffering');
|
|
1052
1056
|
this.container.classList.remove('error');
|
|
1053
1057
|
});
|
|
@@ -151,6 +151,12 @@ class KeyHandlerPlugin extends plugin_1.default {
|
|
|
151
151
|
control: false,
|
|
152
152
|
function: () => this.player.cycleAudioTracks(),
|
|
153
153
|
},
|
|
154
|
+
{
|
|
155
|
+
name: 'Cycle audio tracks',
|
|
156
|
+
key: '2',
|
|
157
|
+
control: false,
|
|
158
|
+
function: () => this.player.cycleAudioTracks(),
|
|
159
|
+
},
|
|
154
160
|
{
|
|
155
161
|
name: 'Cycle audio',
|
|
156
162
|
key: 'b',
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1235,7 +1235,12 @@ class NMPlayer<T> extends Base<T> {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
});
|
|
1237
1237
|
|
|
1238
|
-
this.on('
|
|
1238
|
+
this.on('play', () => {
|
|
1239
|
+
this.container.classList.remove('buffering');
|
|
1240
|
+
this.container.classList.remove('error');
|
|
1241
|
+
});
|
|
1242
|
+
|
|
1243
|
+
this.on('time', () => {
|
|
1239
1244
|
this.container.classList.remove('buffering');
|
|
1240
1245
|
this.container.classList.remove('error');
|
|
1241
1246
|
});
|
|
@@ -153,6 +153,12 @@ class KeyHandlerPlugin extends Plugin {
|
|
|
153
153
|
control: false,
|
|
154
154
|
function: () => this.player.cycleAudioTracks(),
|
|
155
155
|
},
|
|
156
|
+
{
|
|
157
|
+
name: 'Cycle audio tracks',
|
|
158
|
+
key: '2',
|
|
159
|
+
control: false,
|
|
160
|
+
function: () => this.player.cycleAudioTracks(),
|
|
161
|
+
},
|
|
156
162
|
{
|
|
157
163
|
name: 'Cycle audio',
|
|
158
164
|
key: 'b',
|