@gcorevideo/player 2.25.4 → 2.25.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Clips.d.ts","sourceRoot":"","sources":["../../../src/plugins/clips/Clips.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAe,MAAM,cAAc,CAAA;AAI3E,OAAO,EAAgB,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,kCAAkC,CAAA;AAOzC;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;CACb;AAOD;;;;;;;;;;;GAWG;AACH,qBAAa,KAAM,SAAQ,YAAY;IACrC,OAAO,CAAC,QAAQ,CAAgC;IAEhD,OAAO,CAAC,KAAK,CAAiB;IAE9B,OAAO,CAAC,YAAY,CAAuB;IAE3C,OAAO,CAAC,OAAO,CAA2B;IAE1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAsB;IAEtD;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAa,UAAU;;MAItB;IAED,IAAI,OAAO,WAEV;IAED,IAAI,gBAAgB;;MAEnB;IAED;;OAEG;IACM,UAAU;IAUV,MAAM;IAUN,OAAO;IAQP,OAAO;IAQP,MAAM;IAKf;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS;IAK5C,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,kBAAkB;IAwB1B,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,UAAU;IAiBlB,OAAO,CAAC,WAAW;CAOpB"}
1
+ {"version":3,"file":"Clips.d.ts","sourceRoot":"","sources":["../../../src/plugins/clips/Clips.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAe,MAAM,cAAc,CAAA;AAI3E,OAAO,EAAgB,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,kCAAkC,CAAA;AAOzC;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;CACb;AAOD;;;;;;;;;;;GAWG;AACH,qBAAa,KAAM,SAAQ,YAAY;IACrC,OAAO,CAAC,QAAQ,CAAgC;IAEhD,OAAO,CAAC,KAAK,CAAiB;IAE9B,OAAO,CAAC,YAAY,CAAuB;IAE3C,OAAO,CAAC,OAAO,CAA2B;IAE1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAsB;IAEtD;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAa,UAAU;;MAItB;IAED,IAAI,OAAO,WAEV;IAED,IAAI,gBAAgB;;MAEnB;IAED;;OAEG;IACM,UAAU;IAUV,MAAM;IASN,OAAO;IAQP,OAAO;IAQP,MAAM;IAKf;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS;IAK5C,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,kBAAkB;IAwB1B,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,UAAU;IAiBlB,OAAO,CAAC,WAAW;CAOpB"}
@@ -37,7 +37,7 @@ export class Clips extends UICorePlugin {
37
37
  */
38
38
  get attributes() {
39
39
  return {
40
- class: 'media-control-clips gplayer-mc-clips',
40
+ class: 'gplayer-mc-clips',
41
41
  };
42
42
  }
43
43
  get version() {
@@ -55,7 +55,6 @@ export class Clips extends UICorePlugin {
55
55
  this.listenTo(this.core, Events.CORE_ACTIVE_CONTAINER_CHANGED, this.onContainerChanged);
56
56
  }
57
57
  render() {
58
- trace(`${T} render`);
59
58
  if (!this.options.clips) {
60
59
  return this;
61
60
  }
@@ -99,8 +98,7 @@ export class Clips extends UICorePlugin {
99
98
  }
100
99
  onMcRender() {
101
100
  trace(`${T} onMcRender`);
102
- const mediaControl = this.core.getPlugin('media_control');
103
- mediaControl.slot('clips', this.$el);
101
+ this.core.getPlugin('media_control')?.slot('clips', this.$el);
104
102
  }
105
103
  onContainerChanged() {
106
104
  trace(`${T} onContainerChanged`);
@@ -1 +1 @@
1
- {"version":3,"file":"SeekTime.d.ts","sourceRoot":"","sources":["../../../src/plugins/seek-time/SeekTime.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,YAAY,EAAmB,MAAM,cAAc,CAAA;AAO9E,OAAO,0CAA0C,CAAA;AAEjD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAMD;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,YAAY;IACxC,IAAI,IAAI,WAEP;IAED,IAAI,gBAAgB;;MAEnB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAEzD,IAAa,UAAU;;MAItB;IAED,OAAO,KAAK,mBAAmB,GAM9B;IAED,OAAO,KAAK,YAAY,GAKvB;IAED,OAAO,CAAC,mBAAmB,CAAQ;IAEnC,OAAO,CAAC,aAAa,CAAI;IAEzB,OAAO,CAAC,iBAAiB,CAAsB;IAE/C,OAAO,CAAC,iBAAiB,CAAsB;IAE/C,OAAO,CAAC,QAAQ,CAAI;IAEpB;;OAEG;IACM,UAAU;IASnB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,MAAM;IA6Cd,OAAO,CAAC,eAAe;IAUvB;;OAEG;IACM,MAAM;IAQf,OAAO,CAAC,KAAK;CAGd"}
1
+ {"version":3,"file":"SeekTime.d.ts","sourceRoot":"","sources":["../../../src/plugins/seek-time/SeekTime.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,YAAY,EAAmB,MAAM,cAAc,CAAA;AAO9E,OAAO,0CAA0C,CAAA;AAGjD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAMD;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,YAAY;IACxC,IAAI,IAAI,WAEP;IAED,IAAI,gBAAgB;;MAEnB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAEzD,IAAa,UAAU;;MAItB;IAED,OAAO,KAAK,mBAAmB,GAM9B;IAED,OAAO,KAAK,YAAY,GAKvB;IAED,OAAO,CAAC,mBAAmB,CAAQ;IAEnC,OAAO,CAAC,aAAa,CAAI;IAEzB,OAAO,CAAC,iBAAiB,CAAsB;IAE/C,OAAO,CAAC,iBAAiB,CAAsB;IAE/C,OAAO,CAAC,QAAQ,CAAI;IAEpB;;OAEG;IACM,UAAU;IASnB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,MAAM;IA6Cd,OAAO,CAAC,eAAe;IAUvB;;OAEG;IACM,MAAM;IAQf,OAAO,CAAC,KAAK;CAGd"}
@@ -6,8 +6,9 @@ import assert from 'assert';
6
6
  import { CLAPPR_VERSION } from '../../build.js';
7
7
  import seekTimeHTML from '../../../assets/seek-time/seek-time.html';
8
8
  import '../../../assets/seek-time/seek-time.scss';
9
+ import { trace } from '@gcorevideo/utils';
9
10
  const { formatTime } = Utils;
10
- // const T = 'plugins.seek_time'
11
+ const T = 'plugins.seek_time';
11
12
  /**
12
13
  * `PLUGIN` that adds a seek time indicator when the mouse pointer is over the seek bar.
13
14
  * @beta
@@ -66,9 +67,13 @@ export class SeekTime extends UICorePlugin {
66
67
  showTime(event) {
67
68
  this.hoveringOverSeekBar = true;
68
69
  this.calculateHoverPosition(event);
70
+ trace(`${T} showTime`, {
71
+ hoverPosition: this.hoverPosition,
72
+ });
69
73
  this.update();
70
74
  }
71
75
  hideTime() {
76
+ trace(`${T} hideTime`);
72
77
  this.hoveringOverSeekBar = false;
73
78
  this.update();
74
79
  }
@@ -140,6 +145,6 @@ export class SeekTime extends UICorePlugin {
140
145
  return this;
141
146
  }
142
147
  mount() {
143
- this.core.getPlugin('media_control').$el.append(this.$el); // TODO use a method
148
+ this.core.getPlugin('media_control').$el.append(this.$el); // TODO MediaControl.mount('root', this.$el)
144
149
  }
145
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcorevideo/player",
3
- "version": "2.25.4",
3
+ "version": "2.25.5",
4
4
  "description": "Gcore JavaScript video player",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -26,7 +26,7 @@ export interface ClipsPluginSettings {
26
26
  const VERSION = '2.22.16'
27
27
  const CLAPPR_VERSION = '0.11.4'
28
28
 
29
- const COMPACT_WIDTH = 495;
29
+ const COMPACT_WIDTH = 495
30
30
 
31
31
  /**
32
32
  * `PLUGIN` that allows marking up the timeline of the video
@@ -63,7 +63,7 @@ export class Clips extends UICorePlugin {
63
63
  */
64
64
  override get attributes() {
65
65
  return {
66
- class: 'media-control-clips gplayer-mc-clips',
66
+ class: 'gplayer-mc-clips',
67
67
  }
68
68
  }
69
69
 
@@ -89,7 +89,6 @@ export class Clips extends UICorePlugin {
89
89
  }
90
90
 
91
91
  override render() {
92
- trace(`${T} render`)
93
92
  if (!this.options.clips) {
94
93
  return this
95
94
  }
@@ -140,8 +139,7 @@ export class Clips extends UICorePlugin {
140
139
 
141
140
  private onMcRender() {
142
141
  trace(`${T} onMcRender`)
143
- const mediaControl = this.core.getPlugin('media_control')
144
- mediaControl.slot('clips', this.$el)
142
+ this.core.getPlugin('media_control')?.slot('clips', this.$el)
145
143
  }
146
144
 
147
145
  private onContainerChanged() {
@@ -10,6 +10,7 @@ import { CLAPPR_VERSION } from '../../build.js'
10
10
 
11
11
  import seekTimeHTML from '../../../assets/seek-time/seek-time.html'
12
12
  import '../../../assets/seek-time/seek-time.scss'
13
+ import { trace } from '@gcorevideo/utils'
13
14
 
14
15
  /**
15
16
  * Configuration options for the SeekTime plugin.
@@ -25,7 +26,7 @@ export type SeekTimeSettings = {
25
26
 
26
27
  const { formatTime } = Utils
27
28
 
28
- // const T = 'plugins.seek_time'
29
+ const T = 'plugins.seek_time'
29
30
 
30
31
  /**
31
32
  * `PLUGIN` that adds a seek time indicator when the mouse pointer is over the seek bar.
@@ -127,10 +128,14 @@ export class SeekTime extends UICorePlugin {
127
128
  private showTime(event: MouseEvent) {
128
129
  this.hoveringOverSeekBar = true
129
130
  this.calculateHoverPosition(event)
131
+ trace(`${T} showTime`, {
132
+ hoverPosition: this.hoverPosition,
133
+ })
130
134
  this.update()
131
135
  }
132
136
 
133
137
  private hideTime() {
138
+ trace(`${T} hideTime`)
134
139
  this.hoveringOverSeekBar = false
135
140
  this.update()
136
141
  }
@@ -220,6 +225,6 @@ export class SeekTime extends UICorePlugin {
220
225
  }
221
226
 
222
227
  private mount() {
223
- this.core.getPlugin('media_control').$el.append(this.$el) // TODO use a method
228
+ this.core.getPlugin('media_control').$el.append(this.$el) // TODO MediaControl.mount('root', this.$el)
224
229
  }
225
230
  }