@nomercy-entertainment/nomercy-video-player 0.2.2 → 0.2.3

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.
@@ -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:
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
  });
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.3",
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
  });