@gcorevideo/player 2.20.15 → 2.20.17

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.
@@ -37249,7 +37249,7 @@ class ClipsPlugin extends UICorePlugin {
37249
37249
 
37250
37250
  const templateHtml$1 = "<ul class=\"context-menu-list\">\n <% if(options) { %>\n <% for (var i = 0; i < options.length; i++) { %>\n <li class=\"context-menu-list-item <%= options[i].class %>\"\n data-<%= options[i].name %>><%= options[i].label %></li>\n <% } %>\n <% } %>\n</ul>\n";
37251
37251
 
37252
- var version$1 = "2.20.15";
37252
+ var version$1 = "2.20.17";
37253
37253
 
37254
37254
  var packages = {
37255
37255
  "node_modules/@clappr/core": {
@@ -5,5 +5,7 @@ export default class HTML5Video extends BasePlayback {
5
5
  * @internal
6
6
  */
7
7
  createError(errorData: any, options?: ErrorOptions): Error;
8
+ _onWaiting(): void;
9
+ _onEnded(): void;
8
10
  }
9
11
  //# sourceMappingURL=HTML5Video.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HTML5Video.d.ts","sourceRoot":"","sources":["../../src/playback/HTML5Video.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAG3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKhD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD;;OAEG;IACM,WAAW,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,YAAY;CAwB5D"}
1
+ {"version":3,"file":"HTML5Video.d.ts","sourceRoot":"","sources":["../../src/playback/HTML5Video.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAG3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKhD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD;;OAEG;IACM,WAAW,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,YAAY;IAyBlD,UAAU;IAKV,QAAQ;CAIlB"}
@@ -8,7 +8,7 @@ export default class HTML5Video extends BasePlayback {
8
8
  */
9
9
  createError(errorData, options) {
10
10
  trace(`${T} createError`, {
11
- errorData
11
+ errorData: { ...errorData },
12
12
  });
13
13
  const i18n = this.i18n ||
14
14
  // @ts-ignore
@@ -18,12 +18,20 @@ export default class HTML5Video extends BasePlayback {
18
18
  if (i18n &&
19
19
  !errorData.UI &&
20
20
  errorData.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) {
21
- errorData.UI = {
22
- title: i18n.t('no_broadcast'),
23
- message: errorData.message,
24
- };
21
+ // errorData.UI = {
22
+ // title: i18n.t('no_broadcast'),
23
+ // message: errorData.message,
24
+ // }
25
25
  errorData.code = PlaybackErrorCode.MediaSourceUnavailable;
26
26
  }
27
27
  return super.createError(errorData, { ...options, useCodePrefix: false });
28
28
  }
29
+ _onWaiting() {
30
+ trace(`${T} _onWaiting`);
31
+ super._onWaiting();
32
+ }
33
+ _onEnded() {
34
+ trace(`${T} _onEnded`);
35
+ super._onEnded();
36
+ }
29
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcorevideo/player",
3
- "version": "2.20.15",
3
+ "version": "2.20.17",
4
4
  "description": "Gcore JavaScript video player",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -12,7 +12,7 @@ export default class HTML5Video extends BasePlayback {
12
12
  */
13
13
  override createError(errorData: any, options?: ErrorOptions) {
14
14
  trace(`${T} createError`, {
15
- errorData
15
+ errorData: { ...errorData },
16
16
  })
17
17
  const i18n =
18
18
  this.i18n ||
@@ -26,12 +26,22 @@ export default class HTML5Video extends BasePlayback {
26
26
  !errorData.UI &&
27
27
  errorData.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED
28
28
  ) {
29
- errorData.UI = {
30
- title: i18n.t('no_broadcast'),
31
- message: errorData.message,
32
- }
29
+ // errorData.UI = {
30
+ // title: i18n.t('no_broadcast'),
31
+ // message: errorData.message,
32
+ // }
33
33
  errorData.code = PlaybackErrorCode.MediaSourceUnavailable
34
34
  }
35
35
  return super.createError(errorData, { ...options, useCodePrefix: false })
36
36
  }
37
+
38
+ override _onWaiting() {
39
+ trace(`${T} _onWaiting`)
40
+ super._onWaiting()
41
+ }
42
+
43
+ override _onEnded() {
44
+ trace(`${T} _onEnded`)
45
+ super._onEnded()
46
+ }
37
47
  }