@gcorevideo/player 2.24.0 → 2.24.2

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.
Files changed (40) hide show
  1. package/assets/bottom-gear/gear-sub-menu.scss +1 -0
  2. package/dist/core.js +1 -1
  3. package/dist/index.css +761 -760
  4. package/dist/index.js +70 -76
  5. package/dist/player.d.ts +46 -1
  6. package/docs/api/player.cmcdconfig._constructor_.md +50 -0
  7. package/docs/api/player.cmcdconfig.bindevents.md +19 -0
  8. package/docs/api/player.cmcdconfig.exportids.md +21 -0
  9. package/docs/api/player.cmcdconfig.md +191 -0
  10. package/docs/api/player.cmcdconfig.name.md +15 -0
  11. package/docs/api/player.cmcdconfig.supportedversion.md +14 -0
  12. package/docs/api/player.cmcdconfig.version.md +14 -0
  13. package/docs/api/player.cmcdconfigpluginsettings.md +18 -0
  14. package/docs/api/player.md +22 -0
  15. package/lib/plugins/bottom-gear/BottomGear.d.ts +1 -0
  16. package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
  17. package/lib/plugins/bottom-gear/BottomGear.js +17 -17
  18. package/lib/plugins/cmcd-config/CmcdConfig.d.ts +8 -8
  19. package/lib/plugins/cmcd-config/CmcdConfig.d.ts.map +1 -1
  20. package/lib/plugins/cmcd-config/CmcdConfig.js +43 -47
  21. package/lib/plugins/cmcd-config/utils.d.ts +0 -1
  22. package/lib/plugins/cmcd-config/utils.d.ts.map +1 -1
  23. package/lib/plugins/cmcd-config/utils.js +0 -9
  24. package/lib/plugins/media-control/MediaControl.d.ts +7 -0
  25. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  26. package/lib/plugins/media-control/MediaControl.js +14 -5
  27. package/lib/testUtils.d.ts +1 -0
  28. package/lib/testUtils.d.ts.map +1 -1
  29. package/lib/testUtils.js +3 -0
  30. package/package.json +1 -1
  31. package/src/plugins/bottom-gear/BottomGear.ts +40 -28
  32. package/src/plugins/bottom-gear/__tests__/BottomGear.test.ts +34 -7
  33. package/src/plugins/bottom-gear/__tests__/__snapshots__/BottomGear.test.ts.snap +5 -2
  34. package/src/plugins/cmcd-config/CmcdConfig.ts +57 -57
  35. package/src/plugins/cmcd-config/__tests__/CmcdConfig.test.ts +96 -84
  36. package/src/plugins/cmcd-config/utils.ts +0 -10
  37. package/src/plugins/media-control/MediaControl.ts +18 -6
  38. package/src/testUtils.ts +3 -0
  39. package/temp/player.api.json +243 -0
  40. package/tsconfig.tsbuildinfo +1 -1
package/dist/index.js CHANGED
@@ -43303,7 +43303,7 @@ class Player {
43303
43303
  }
43304
43304
  }
43305
43305
 
43306
- var version$1 = "2.24.0";
43306
+ var version$1 = "2.24.2";
43307
43307
 
43308
43308
  var packages = {
43309
43309
  "node_modules/@clappr/core": {
@@ -43896,6 +43896,15 @@ class MediaControl extends UICorePlugin {
43896
43896
  this.bindKeyEvents();
43897
43897
  this.show();
43898
43898
  }
43899
+ /**
43900
+ *
43901
+ * @returns Vertical space available to render something on top of the container.
43902
+ * @remarks
43903
+ * This takes into account the container height and excludes the height of the controls bar
43904
+ */
43905
+ getAvailableHeight() {
43906
+ return (this.core.$el.height() - this.$el.find('.media-control-layer').height());
43907
+ }
43899
43908
  /**
43900
43909
  * Set the initial volume, which is preserved when playback is interrupted by an advertisement
43901
43910
  */
@@ -43995,11 +44004,11 @@ class MediaControl extends UICorePlugin {
43995
44004
  this.applyButtonStyle(this.$playStopToggle);
43996
44005
  }
43997
44006
  mousemoveOnSeekBar(event) {
43998
- const offset = MediaControl.getPageX(event) -
43999
- (this.$seekBarContainer.offset().left ?? 0); // TODO check if the result can be negative
44000
- const hoverOffset = offset -
44001
- (this.$seekBarHover.width() ?? 0) / 2;
44002
- const pos = offset ? Math.min(1, Math.max(offset / this.$seekBarContainer.width(), 0)) : 0;
44007
+ const offset = MediaControl.getPageX(event) - (this.$seekBarContainer.offset().left ?? 0); // TODO check if the result can be negative
44008
+ const hoverOffset = offset - (this.$seekBarHover.width() ?? 0) / 2;
44009
+ const pos = offset
44010
+ ? Math.min(1, Math.max(offset / this.$seekBarContainer.width(), 0))
44011
+ : 0;
44003
44012
  if (this.settings.seekEnabled) {
44004
44013
  // TODO test that it works when the element does not exist
44005
44014
  this.$seekBarHover.css({ left: hoverOffset });
@@ -45091,6 +45100,8 @@ const gearHdIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\
45091
45100
 
45092
45101
  const VERSION$6 = '2.19.12';
45093
45102
  const T$g = 'plugins.bottom_gear';
45103
+ const MENU_VMARGIN = 12;
45104
+ const MENU_BACKLINK_HEIGHT = 44;
45094
45105
  /**
45095
45106
  * Events triggered by the plugin
45096
45107
  * @beta
@@ -45102,7 +45113,6 @@ var GearEvents;
45102
45113
  */
45103
45114
  GearEvents["RENDERED"] = "rendered";
45104
45115
  })(GearEvents || (GearEvents = {}));
45105
- // TODO disabled if no items added
45106
45116
  /**
45107
45117
  * `PLUGIN` that adds a button to extend the media controls UI with extra options.
45108
45118
  * @beta
@@ -45239,7 +45249,7 @@ class BottomGear extends UICorePlugin {
45239
45249
  * ```
45240
45250
  */
45241
45251
  addItem(name, $subMenu) {
45242
- const $existingItem = this.$el.find(`#gear-options li[data-${name}`);
45252
+ const $existingItem = this.$el.find(`#gear-options li[data-${name}]`);
45243
45253
  if ($existingItem.length) {
45244
45254
  trace(`${T$g} addItem already exists`, { name });
45245
45255
  return $existingItem;
@@ -45254,20 +45264,17 @@ class BottomGear extends UICorePlugin {
45254
45264
  .hide()
45255
45265
  .appendTo(this.$el.find('#gear-options-wrapper'));
45256
45266
  $item.on('click', (e) => {
45257
- trace(`${T$g} addItem submenu clicked`, { name });
45258
45267
  e.stopPropagation();
45268
+ this.alignSubmenu($subMenu);
45259
45269
  $subMenu.show();
45260
45270
  this.$el.find('#gear-options').hide();
45261
45271
  });
45262
45272
  }
45263
45273
  this.numItems++;
45264
- if (this.numItems > 0) {
45265
- this.$el.show();
45266
- }
45274
+ this.$el.show();
45267
45275
  return $item;
45268
45276
  }
45269
45277
  bindContainerEvents(container) {
45270
- trace(`${T$g} bindContainerEvents`);
45271
45278
  this.listenTo(container, Events$1.CONTAINER_HIGHDEFINITIONUPDATE, this.highDefinitionUpdate);
45272
45279
  this.listenTo(container, Events$1.CONTAINER_CLICK, () => {
45273
45280
  this.collapse();
@@ -45282,7 +45289,6 @@ class BottomGear extends UICorePlugin {
45282
45289
  * @internal
45283
45290
  */
45284
45291
  render() {
45285
- trace(`${T$g} render`);
45286
45292
  const mediaControl = this.core.getPlugin('media_control');
45287
45293
  if (!mediaControl) {
45288
45294
  return this; // TODO test
@@ -45323,11 +45329,11 @@ class BottomGear extends UICorePlugin {
45323
45329
  else {
45324
45330
  this.$el.find('#gear-options-wrapper').show();
45325
45331
  }
45326
- this.$el.find('#gear-button').attr('aria-expanded', (!this.collapsed).toString());
45327
- trace(`${T$g} toggleMenu`, { hidden: this.collapsed });
45332
+ this.$el
45333
+ .find('#gear-button')
45334
+ .attr('aria-expanded', (!this.collapsed).toString());
45328
45335
  }
45329
45336
  collapse() {
45330
- trace(`${T$g} collapse`);
45331
45337
  this.collapsed = true;
45332
45338
  this.$el.find('#gear-options-wrapper').hide();
45333
45339
  this.$el.find('#gear-button').attr('aria-expanded', 'false');
@@ -45335,7 +45341,6 @@ class BottomGear extends UICorePlugin {
45335
45341
  this.collapseSubmenus();
45336
45342
  }
45337
45343
  onCoreReady() {
45338
- trace(`${T$g} onCoreReady`);
45339
45344
  const mediaControl = this.core.getPlugin('media_control');
45340
45345
  assert(mediaControl, 'media_control plugin is required');
45341
45346
  this.listenTo(mediaControl, Events$1.MEDIACONTROL_RENDERED, this.onMediaControlRendered);
@@ -45351,16 +45356,20 @@ class BottomGear extends UICorePlugin {
45351
45356
  this.bindContainerEvents(mediaControl.container);
45352
45357
  }
45353
45358
  onMediaControlRendered() {
45354
- trace(`${T$g} onMediaControlRendered`);
45355
45359
  this.mount();
45356
45360
  }
45357
45361
  mount() {
45358
- trace(`${T$g} mount`, {
45359
- numItems: this.numItems,
45360
- });
45361
45362
  const mediaControl = this.core.getPlugin('media_control');
45362
45363
  mediaControl.mount('gear', this.$el);
45363
45364
  }
45365
+ alignSubmenu($subMenu) {
45366
+ const availableHeight = this.core.getPlugin('media_control').getAvailableHeight() -
45367
+ MENU_VMARGIN * 2;
45368
+ $subMenu.css('max-height', `${availableHeight}px`);
45369
+ $subMenu
45370
+ .find('.gear-sub-menu')
45371
+ .css('max-height', `${availableHeight - MENU_BACKLINK_HEIGHT}px`);
45372
+ }
45364
45373
  }
45365
45374
 
45366
45375
  /**
@@ -45703,15 +45712,6 @@ class ClapprStats extends ContainerPlugin {
45703
45712
  function generateSessionId() {
45704
45713
  return window.crypto.randomUUID();
45705
45714
  }
45706
- function generateContentId(sourceUrl) {
45707
- return window.crypto.subtle.digest('SHA-1', new TextEncoder().encode(sourceUrl))
45708
- .then(buffer => {
45709
- const hex = Array.from(new Uint8Array(buffer))
45710
- .map(b => b.toString(16).padStart(2, '0'))
45711
- .join('');
45712
- return hex;
45713
- });
45714
- }
45715
45715
 
45716
45716
  const CMCD_KEYS = [
45717
45717
  'br',
@@ -45733,6 +45733,7 @@ const CMCD_KEYS = [
45733
45733
  'st',
45734
45734
  'v',
45735
45735
  ];
45736
+ // const T = 'plugins.cmcd'
45736
45737
  /**
45737
45738
  * A `PLUGIN` that configures CMCD for playback
45738
45739
  * @beta
@@ -45749,56 +45750,62 @@ class CmcdConfig extends CorePlugin {
45749
45750
  get name() {
45750
45751
  return 'cmcd';
45751
45752
  }
45753
+ get version() {
45754
+ return '0.1.0';
45755
+ }
45756
+ get supportedVersion() {
45757
+ return CLAPPR_VERSION$1;
45758
+ }
45752
45759
  constructor(core) {
45753
45760
  super(core);
45754
45761
  this.sid = this.options.cmcd?.sessionId ?? generateSessionId();
45762
+ this.cid = this.options.cmcd?.contentId ?? this.generateContentId();
45755
45763
  }
45756
45764
  /**
45757
45765
  * @inheritdocs
45758
45766
  */
45759
45767
  bindEvents() {
45760
- this.listenTo(this.core, Events$1.CORE_ACTIVE_CONTAINER_CHANGED, () => this.updateSettings());
45768
+ this.listenTo(this.core, Events$1.CORE_CONTAINERS_CREATED, () => this.updateSettings(this.core.containers[0]));
45761
45769
  }
45762
- async getIds() {
45770
+ exportIds() {
45763
45771
  return {
45764
45772
  sid: this.sid,
45765
- cid: await this.ensureContentId(),
45773
+ cid: this.cid,
45766
45774
  };
45767
45775
  }
45768
- updateSettings() {
45769
- switch (this.core.activeContainer.playback.name) {
45776
+ async updateSettings(container) {
45777
+ switch (container.playback.name) {
45770
45778
  case 'dash':
45771
- this.updateDashjsSettings();
45779
+ $.extend(true, container.playback.options, {
45780
+ dash: {
45781
+ cmcd: {
45782
+ enabled: true,
45783
+ enabledKeys: CMCD_KEYS,
45784
+ sid: this.sid,
45785
+ cid: this.cid,
45786
+ },
45787
+ },
45788
+ });
45772
45789
  break;
45773
45790
  case 'hls':
45774
- this.updateHlsjsSettings();
45791
+ $.extend(true, container.playback.options, {
45792
+ playback: {
45793
+ hlsjsConfig: {
45794
+ cmcd: {
45795
+ includeKeys: CMCD_KEYS,
45796
+ sessionId: this.sid,
45797
+ contentId: this.cid,
45798
+ },
45799
+ },
45800
+ },
45801
+ });
45775
45802
  break;
45776
45803
  }
45777
45804
  }
45778
- async updateDashjsSettings() {
45779
- const { cid, sid } = await this.getIds();
45780
- const options = this.core.activePlayback.options;
45781
- this.core.activePlayback.options = {
45782
- ...options,
45783
- dash: {
45784
- ...(options.dash ?? {}),
45785
- cmcd: {
45786
- enabled: true,
45787
- enabledKeys: CMCD_KEYS,
45788
- sid,
45789
- cid,
45790
- },
45791
- },
45792
- };
45793
- }
45794
- async updateHlsjsSettings() {
45795
- const { cid, sid } = await this.getIds();
45796
- const options = this.core.activePlayback.options;
45797
- this.core.activePlayback.options = {
45798
- ...options,
45805
+ updateHlsjsSettings(options, { cid, sid }) {
45806
+ $.extend(true, options, {
45799
45807
  playback: {
45800
45808
  hlsjsConfig: {
45801
- ...(options.playback?.hlsjsConfig ?? {}),
45802
45809
  cmcd: {
45803
45810
  includeKeys: CMCD_KEYS,
45804
45811
  sessionId: sid,
@@ -45806,23 +45813,10 @@ class CmcdConfig extends CorePlugin {
45806
45813
  },
45807
45814
  },
45808
45815
  },
45809
- };
45810
- }
45811
- async ensureContentId() {
45812
- if (!this.cid) {
45813
- this.cid = await this.evalContentId();
45814
- }
45815
- return this.cid;
45816
+ });
45816
45817
  }
45817
- async evalContentId() {
45818
- if (!this.core.activeContainer.options.cmcd?.contentId) {
45819
- return generateContentId(this.core.activePlayback.options.src);
45820
- }
45821
- const contentId = this.core.activeContainer.options.cmcd.contentId;
45822
- if (typeof contentId === 'string') {
45823
- return contentId;
45824
- }
45825
- return Promise.resolve(contentId(this.core.activePlayback.options.src));
45818
+ generateContentId() {
45819
+ return new URL(this.core.options.source ?? this.core.options.sources[0].source).pathname.slice(0, 64);
45826
45820
  }
45827
45821
  }
45828
45822
 
package/dist/player.d.ts CHANGED
@@ -155,7 +155,7 @@ export declare class BigMuteButton extends UICorePlugin {
155
155
  private hideBigMuteBtn;
156
156
  private showBigMuteBtn;
157
157
  private destroyBigMuteBtn;
158
- private handleBigMuteBtnClick;
158
+ private clicked;
159
159
  }
160
160
 
161
161
  /**
@@ -703,6 +703,51 @@ export declare type ClosedCaptionsPluginSettings = {
703
703
  language?: string;
704
704
  };
705
705
 
706
+ /**
707
+ * A `PLUGIN` that configures CMCD for playback
708
+ * @beta
709
+ * @remarks
710
+ * Configuration options
711
+ * `cmcd`: {@link CmcdConfigPluginSettings}
712
+ */
713
+ export declare class CmcdConfig extends CorePlugin {
714
+ private sid;
715
+ private cid;
716
+ /**
717
+ * @inheritdocs
718
+ */
719
+ get name(): string;
720
+ get version(): string;
721
+ get supportedVersion(): string;
722
+ constructor(core: Core);
723
+ /**
724
+ * @inheritdocs
725
+ */
726
+ bindEvents(): void;
727
+ exportIds(): {
728
+ sid: string;
729
+ cid: string;
730
+ };
731
+ private updateSettings;
732
+ private updateHlsjsSettings;
733
+ private generateContentId;
734
+ }
735
+
736
+ /**
737
+ * @beta
738
+ */
739
+ export declare type CmcdConfigPluginSettings = {
740
+ /**
741
+ * Session ID. If ommitted, a random UUID will be generated
742
+ */
743
+ sessionId: string;
744
+ /**
745
+ * Content ID,
746
+ * If ommitted, the pathname part of the first source URL will be used
747
+ */
748
+ contentId?: string;
749
+ };
750
+
706
751
  /**
707
752
  * @public
708
753
  */
@@ -0,0 +1,50 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md) &gt; [(constructor)](./player.cmcdconfig._constructor_.md)
4
+
5
+ ## CmcdConfig.(constructor)
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ Constructs a new instance of the `CmcdConfig` class
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ constructor(core: Core);
16
+ ```
17
+
18
+ ## Parameters
19
+
20
+ <table><thead><tr><th>
21
+
22
+ Parameter
23
+
24
+
25
+ </th><th>
26
+
27
+ Type
28
+
29
+
30
+ </th><th>
31
+
32
+ Description
33
+
34
+
35
+ </th></tr></thead>
36
+ <tbody><tr><td>
37
+
38
+ core
39
+
40
+
41
+ </td><td>
42
+
43
+ Core
44
+
45
+
46
+ </td><td>
47
+
48
+
49
+ </td></tr>
50
+ </tbody></table>
@@ -0,0 +1,19 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md) &gt; [bindEvents](./player.cmcdconfig.bindevents.md)
4
+
5
+ ## CmcdConfig.bindEvents() method
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+
11
+ **Signature:**
12
+
13
+ ```typescript
14
+ bindEvents(): void;
15
+ ```
16
+ **Returns:**
17
+
18
+ void
19
+
@@ -0,0 +1,21 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md) &gt; [exportIds](./player.cmcdconfig.exportids.md)
4
+
5
+ ## CmcdConfig.exportIds() method
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ **Signature:**
11
+
12
+ ```typescript
13
+ exportIds(): {
14
+ sid: string;
15
+ cid: string;
16
+ };
17
+ ```
18
+ **Returns:**
19
+
20
+ { sid: string; cid: string; }
21
+
@@ -0,0 +1,191 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md)
4
+
5
+ ## CmcdConfig class
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ A `PLUGIN` that configures CMCD for playback
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export declare class CmcdConfig extends CorePlugin
16
+ ```
17
+ **Extends:** CorePlugin
18
+
19
+ ## Remarks
20
+
21
+ Configuration options `cmcd`<!-- -->: [CmcdConfigPluginSettings](./player.cmcdconfigpluginsettings.md)
22
+
23
+ ## Constructors
24
+
25
+ <table><thead><tr><th>
26
+
27
+ Constructor
28
+
29
+
30
+ </th><th>
31
+
32
+ Modifiers
33
+
34
+
35
+ </th><th>
36
+
37
+ Description
38
+
39
+
40
+ </th></tr></thead>
41
+ <tbody><tr><td>
42
+
43
+ [(constructor)(core)](./player.cmcdconfig._constructor_.md)
44
+
45
+
46
+ </td><td>
47
+
48
+
49
+ </td><td>
50
+
51
+ **_(BETA)_** Constructs a new instance of the `CmcdConfig` class
52
+
53
+
54
+ </td></tr>
55
+ </tbody></table>
56
+
57
+ ## Properties
58
+
59
+ <table><thead><tr><th>
60
+
61
+ Property
62
+
63
+
64
+ </th><th>
65
+
66
+ Modifiers
67
+
68
+
69
+ </th><th>
70
+
71
+ Type
72
+
73
+
74
+ </th><th>
75
+
76
+ Description
77
+
78
+
79
+ </th></tr></thead>
80
+ <tbody><tr><td>
81
+
82
+ [name](./player.cmcdconfig.name.md)
83
+
84
+
85
+ </td><td>
86
+
87
+ `readonly`
88
+
89
+
90
+ </td><td>
91
+
92
+ string
93
+
94
+
95
+ </td><td>
96
+
97
+ **_(BETA)_**
98
+
99
+
100
+ </td></tr>
101
+ <tr><td>
102
+
103
+ [supportedVersion](./player.cmcdconfig.supportedversion.md)
104
+
105
+
106
+ </td><td>
107
+
108
+ `readonly`
109
+
110
+
111
+ </td><td>
112
+
113
+ string
114
+
115
+
116
+ </td><td>
117
+
118
+ **_(BETA)_**
119
+
120
+
121
+ </td></tr>
122
+ <tr><td>
123
+
124
+ [version](./player.cmcdconfig.version.md)
125
+
126
+
127
+ </td><td>
128
+
129
+ `readonly`
130
+
131
+
132
+ </td><td>
133
+
134
+ string
135
+
136
+
137
+ </td><td>
138
+
139
+ **_(BETA)_**
140
+
141
+
142
+ </td></tr>
143
+ </tbody></table>
144
+
145
+ ## Methods
146
+
147
+ <table><thead><tr><th>
148
+
149
+ Method
150
+
151
+
152
+ </th><th>
153
+
154
+ Modifiers
155
+
156
+
157
+ </th><th>
158
+
159
+ Description
160
+
161
+
162
+ </th></tr></thead>
163
+ <tbody><tr><td>
164
+
165
+ [bindEvents()](./player.cmcdconfig.bindevents.md)
166
+
167
+
168
+ </td><td>
169
+
170
+
171
+ </td><td>
172
+
173
+ **_(BETA)_**
174
+
175
+
176
+ </td></tr>
177
+ <tr><td>
178
+
179
+ [exportIds()](./player.cmcdconfig.exportids.md)
180
+
181
+
182
+ </td><td>
183
+
184
+
185
+ </td><td>
186
+
187
+ **_(BETA)_**
188
+
189
+
190
+ </td></tr>
191
+ </tbody></table>
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md) &gt; [name](./player.cmcdconfig.name.md)
4
+
5
+ ## CmcdConfig.name property
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+
11
+ **Signature:**
12
+
13
+ ```typescript
14
+ get name(): string;
15
+ ```
@@ -0,0 +1,14 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md) &gt; [supportedVersion](./player.cmcdconfig.supportedversion.md)
4
+
5
+ ## CmcdConfig.supportedVersion property
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ **Signature:**
11
+
12
+ ```typescript
13
+ get supportedVersion(): string;
14
+ ```
@@ -0,0 +1,14 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md) &gt; [version](./player.cmcdconfig.version.md)
4
+
5
+ ## CmcdConfig.version property
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ **Signature:**
11
+
12
+ ```typescript
13
+ get version(): string;
14
+ ```
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfigPluginSettings](./player.cmcdconfigpluginsettings.md)
4
+
5
+ ## CmcdConfigPluginSettings type
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+
11
+ **Signature:**
12
+
13
+ ```typescript
14
+ export type CmcdConfigPluginSettings = {
15
+ sessionId: string;
16
+ contentId?: string;
17
+ };
18
+ ```