@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.
@@ -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
@@ -8,7 +8,10 @@ on:
8
8
  types: [created]
9
9
  workflow_dispatch:
10
10
  workflow_run:
11
- workflows: release
11
+ workflows:
12
+ - Create Release
13
+ types:
14
+ - completed
12
15
 
13
16
  jobs:
14
17
  build:
@@ -2,6 +2,10 @@ name: Create Release
2
2
 
3
3
  on:
4
4
  push:
5
+ paths:
6
+ - 'src/**'
7
+ - 'dist/**'
8
+ - 'package.json'
5
9
  workflow_dispatch:
6
10
 
7
11
  jobs:
package/dist/index.js CHANGED
@@ -1047,7 +1047,11 @@ class NMPlayer extends base_1.Base {
1047
1047
  });
1048
1048
  }
1049
1049
  });
1050
- this.on('playing', () => {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomercy-entertainment/nomercy-video-player",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Full event-driven video player without a UI.",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -1235,7 +1235,12 @@ class NMPlayer<T> extends Base<T> {
1235
1235
  }
1236
1236
  });
1237
1237
 
1238
- this.on('playing', () => {
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',