@gcorevideo/player 2.24.1 → 2.24.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.
Files changed (68) hide show
  1. package/assets/big-mute-button/big-mute-button.ejs +2 -2
  2. package/assets/bottom-gear/gear-sub-menu.scss +1 -0
  3. package/dist/core.js +1 -1
  4. package/dist/index.css +754 -753
  5. package/dist/index.js +151 -130
  6. package/dist/player.d.ts +72 -21
  7. package/docs/api/player.bigmutebutton.md +13 -1
  8. package/docs/api/player.clapprstatssettings.md +51 -4
  9. package/docs/api/player.clapprstatssettings.runeach.md +16 -0
  10. package/docs/api/player.clipspluginsettings.md +1 -1
  11. package/docs/api/player.clipspluginsettings.text.md +1 -1
  12. package/docs/api/player.cmcdconfig.exportids.md +4 -0
  13. package/docs/api/player.cmcdconfig.md +19 -105
  14. package/docs/api/{player.cmcdconfig.version.md → player.cmcdconfigoptions.contentid.md} +5 -3
  15. package/docs/api/player.cmcdconfigoptions.md +79 -0
  16. package/docs/api/{player.cmcdconfigpluginsettings.md → player.cmcdconfigoptions.sessionid.md} +4 -6
  17. package/docs/api/player.extendedevents.md +9 -0
  18. package/docs/api/player.md +37 -31
  19. package/docs/api/player.mediacontrol.getavailableheight.md +24 -0
  20. package/docs/api/player.mediacontrol.md +14 -0
  21. package/docs/api/{player.cmcdconfig.name.md → player.posterpluginsettings.custom.md} +4 -3
  22. package/docs/api/player.posterpluginsettings.md +108 -7
  23. package/docs/api/player.posterpluginsettings.showfornoop.md +16 -0
  24. package/docs/api/player.posterpluginsettings.showonvideoend.md +16 -0
  25. package/docs/api/{player.cmcdconfig.bindevents.md → player.posterpluginsettings.url.md} +4 -7
  26. package/lib/plugins/big-mute-button/BigMuteButton.d.ts +15 -13
  27. package/lib/plugins/big-mute-button/BigMuteButton.d.ts.map +1 -1
  28. package/lib/plugins/big-mute-button/BigMuteButton.js +68 -83
  29. package/lib/plugins/bottom-gear/BottomGear.d.ts +1 -0
  30. package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
  31. package/lib/plugins/bottom-gear/BottomGear.js +17 -17
  32. package/lib/plugins/clappr-stats/ClapprStats.d.ts +6 -2
  33. package/lib/plugins/clappr-stats/ClapprStats.d.ts.map +1 -1
  34. package/lib/plugins/clips/Clips.d.ts +1 -1
  35. package/lib/plugins/clips/Clips.d.ts.map +1 -1
  36. package/lib/plugins/clips/Clips.js +2 -1
  37. package/lib/plugins/cmcd-config/CmcdConfig.d.ts +34 -11
  38. package/lib/plugins/cmcd-config/CmcdConfig.d.ts.map +1 -1
  39. package/lib/plugins/cmcd-config/CmcdConfig.js +28 -18
  40. package/lib/plugins/media-control/MediaControl.d.ts +11 -0
  41. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  42. package/lib/plugins/media-control/MediaControl.js +19 -5
  43. package/lib/plugins/poster/Poster.d.ts +7 -3
  44. package/lib/plugins/poster/Poster.d.ts.map +1 -1
  45. package/lib/plugins/source-controller/SourceController.d.ts +1 -0
  46. package/lib/plugins/source-controller/SourceController.d.ts.map +1 -1
  47. package/lib/plugins/source-controller/SourceController.js +20 -9
  48. package/lib/testUtils.d.ts +1 -0
  49. package/lib/testUtils.d.ts.map +1 -1
  50. package/lib/testUtils.js +3 -0
  51. package/package.json +1 -1
  52. package/src/plugins/big-mute-button/BigMuteButton.ts +75 -110
  53. package/src/plugins/big-mute-button/__tests__/BigMuteButton.test.ts +38 -0
  54. package/src/plugins/big-mute-button/__tests__/__snapshots__/BigMuteButton.test.ts.snap +8 -0
  55. package/src/plugins/bottom-gear/BottomGear.ts +40 -28
  56. package/src/plugins/bottom-gear/__tests__/BottomGear.test.ts +34 -7
  57. package/src/plugins/bottom-gear/__tests__/__snapshots__/BottomGear.test.ts.snap +5 -2
  58. package/src/plugins/clappr-stats/ClapprStats.ts +5 -1
  59. package/src/plugins/clips/Clips.ts +3 -2
  60. package/src/plugins/cmcd-config/CmcdConfig.ts +33 -27
  61. package/src/plugins/media-control/MediaControl.ts +23 -6
  62. package/src/plugins/poster/Poster.ts +6 -2
  63. package/src/plugins/source-controller/SourceController.ts +25 -9
  64. package/src/plugins/source-controller/__tests__/SourceController.test.ts +28 -8
  65. package/src/testUtils.ts +3 -0
  66. package/temp/player.api.json +229 -154
  67. package/tsconfig.tsbuildinfo +1 -1
  68. package/docs/api/player.cmcdconfig.supportedversion.md +0 -14
package/dist/player.d.ts CHANGED
@@ -109,9 +109,15 @@ export { AudioTracks as AudioSelector }
109
109
  export { AudioTracks }
110
110
 
111
111
  /**
112
- * `PLUGIN` that displays a big mute button over the video when it's muted.
113
- * Once pressed, it unmutes the video.
112
+ * `PLUGIN` that displays a big mute button over the video when it's being played muted.
114
113
  * @beta
114
+ * @remarks
115
+ * When pressed, it unmutes the video.
116
+ * @example
117
+ * ```ts
118
+ * import { BigMuteButton } from '@gcorevideo/player'
119
+ * Player.registerPlugin(BigMuteButton)
120
+ * ```
115
121
  */
116
122
  export declare class BigMuteButton extends UICorePlugin {
117
123
  private isBigMuteButtonHidden;
@@ -144,14 +150,16 @@ export declare class BigMuteButton extends UICorePlugin {
144
150
  private onContainerVolume;
145
151
  private onContainerStart;
146
152
  private onPlaybackEnded;
147
- private mediaControlRendered;
153
+ private onMediaControlRendered;
148
154
  private onStartAd;
149
155
  private onFinishAd;
150
- private shouldRender;
156
+ private isActive;
151
157
  /**
152
158
  * @internal
153
159
  */
154
160
  render(): this;
161
+ private mount;
162
+ private update;
155
163
  private hideBigMuteBtn;
156
164
  private showBigMuteBtn;
157
165
  private destroyBigMuteBtn;
@@ -302,6 +310,7 @@ export declare class BottomGear extends UICorePlugin {
302
310
  private onCoreReady;
303
311
  private onMediaControlRendered;
304
312
  private mount;
313
+ private alignSubmenu;
305
314
  }
306
315
 
307
316
  /**
@@ -480,13 +489,17 @@ export declare type ClapprStatsMetrics = {
480
489
  };
481
490
  };
482
491
 
483
- export declare type ClapprStatsSettings = {
492
+ /**
493
+ * Config options for the {@link ClapprStats} plugin
494
+ * @beta
495
+ */
496
+ export declare interface ClapprStatsSettings {
484
497
  /**
485
498
  * The interval in milliseconds of periodic measurements.
486
499
  * The plugin will emit a {@link ClapprStatsEvents.REPORT} event with the collected metrics at the specified interval.
487
500
  */
488
501
  runEach?: number;
489
- };
502
+ }
490
503
 
491
504
  /**
492
505
  * A small `PLUGIN` that toggles the playback state on click over the video container
@@ -578,7 +591,7 @@ export declare class Clips extends UICorePlugin {
578
591
  */
579
592
  export declare interface ClipsPluginSettings {
580
593
  /**
581
- * The compiled text of the clips description, one clip per line in format :
594
+ * The compiled text of the clips description, one clip per line in format:
582
595
  * `HH:MM:SS text` or `MM:SS text` or `SS text`
583
596
  */
584
597
  text: string;
@@ -704,49 +717,72 @@ export declare type ClosedCaptionsPluginSettings = {
704
717
  };
705
718
 
706
719
  /**
707
- * A `PLUGIN` that configures CMCD for playback
720
+ * A `PLUGIN` that configures {@link https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf | CMCD} for playback
708
721
  * @beta
709
722
  * @remarks
710
- * Configuration options
711
- * `cmcd`: {@link CmcdConfigPluginSettings}
723
+ * Configuration options - {@link CmcdConfigOptions}.
724
+ * @example
725
+ * ```ts
726
+ * import { CmcdConfig } from '@gcorevideo/player'
727
+ * Player.registerPlugin(CmcdConfig)
728
+ *
729
+ * const player = new Player({
730
+ * source: 'https://example.com/video.mp4',
731
+ * cmcd: {
732
+ * sessionId: '1234567890',
733
+ * contentId: 'f572d396fae9206628714fb2ce00f72e94f2258f',
734
+ * },
735
+ * })
736
+ * ```
712
737
  */
713
738
  export declare class CmcdConfig extends CorePlugin {
714
739
  private sid;
715
740
  private cid;
716
741
  /**
717
- * @inheritdocs
742
+ * @internal
718
743
  */
719
744
  get name(): string;
745
+ /**
746
+ * @internal
747
+ */
720
748
  get version(): string;
749
+ /**
750
+ * @internal
751
+ */
721
752
  get supportedVersion(): string;
722
753
  constructor(core: Core);
723
754
  /**
724
- * @inheritdocs
755
+ * @internal
725
756
  */
726
757
  bindEvents(): void;
758
+ /**
759
+ * Returns the current `sid` and `cid` values.
760
+ * Useful when the auto-generated values need to be known.
761
+ * @returns `sid` and `cid` values
762
+ */
727
763
  exportIds(): {
728
764
  sid: string;
729
765
  cid: string;
730
766
  };
731
767
  private updateSettings;
732
- private updateHlsjsSettings;
733
768
  private generateContentId;
734
769
  }
735
770
 
736
771
  /**
772
+ * Config options for the {@link CmcdConfig} plugin
737
773
  * @beta
738
774
  */
739
- export declare type CmcdConfigPluginSettings = {
775
+ export declare interface CmcdConfigOptions {
740
776
  /**
741
- * Session ID. If ommitted, a random UUID will be generated
777
+ * `sid` value. If ommitted, a random UUID will be generated
742
778
  */
743
- sessionId: string;
779
+ sessionId?: string;
744
780
  /**
745
- * Content ID,
781
+ * `cid` value.
746
782
  * If ommitted, the pathname part of the first source URL will be used
747
783
  */
748
784
  contentId?: string;
749
- };
785
+ }
750
786
 
751
787
  /**
752
788
  * @public
@@ -986,6 +1022,10 @@ export declare type ErrorScreenSettings = {
986
1022
  noReload?: boolean;
987
1023
  };
988
1024
 
1025
+ /**
1026
+ * Extended events for the {@link MediaControl} plugin
1027
+ * @beta
1028
+ */
989
1029
  export declare enum ExtendedEvents {
990
1030
  MEDIACONTROL_VOLUME = "mediacontrol:volume",
991
1031
  MEDIACONTROL_MENU_COLLAPSE = "mediacontrol:menu:collapse"
@@ -1287,6 +1327,13 @@ export declare class MediaControl extends UICorePlugin {
1287
1327
  * Reenables the plugin disabled earlier with the {@link MediaControl.disable} method
1288
1328
  */
1289
1329
  enable(): void;
1330
+ /**
1331
+ *
1332
+ * @returns Vertical space available to render something on top of the container.
1333
+ * @remarks
1334
+ * This takes into account the container height and excludes the height of the controls bar
1335
+ */
1336
+ getAvailableHeight(): number;
1290
1337
  /**
1291
1338
  * Set the initial volume, which is preserved when playback is interrupted by an advertisement
1292
1339
  */
@@ -2348,7 +2395,11 @@ export declare class Poster extends UIContainerPlugin {
2348
2395
  destroy(): this;
2349
2396
  }
2350
2397
 
2351
- export declare type PosterPluginSettings = {
2398
+ /**
2399
+ * Config options for the {@link Poster} plugin
2400
+ * @beta
2401
+ */
2402
+ export declare interface PosterPluginSettings {
2352
2403
  /**
2353
2404
  * Custom CSS background
2354
2405
  */
@@ -2362,10 +2413,10 @@ export declare type PosterPluginSettings = {
2362
2413
  */
2363
2414
  url?: string;
2364
2415
  /**
2365
- * Whether to show the poster after playback has ended @default true
2416
+ * Whether to show the poster after playback has ended, by default `true`
2366
2417
  */
2367
2418
  showOnVideoEnd?: boolean;
2368
- };
2419
+ }
2369
2420
 
2370
2421
  /**
2371
2422
  * A level of quality within a media source/representation.
@@ -7,7 +7,7 @@
7
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
8
  >
9
9
 
10
- `PLUGIN` that displays a big mute button over the video when it's muted. Once pressed, it unmutes the video.
10
+ `PLUGIN` that displays a big mute button over the video when it's being played muted.
11
11
 
12
12
  **Signature:**
13
13
 
@@ -16,3 +16,15 @@ export declare class BigMuteButton extends UICorePlugin
16
16
  ```
17
17
  **Extends:** UICorePlugin
18
18
 
19
+ ## Remarks
20
+
21
+ When pressed, it unmutes the video.
22
+
23
+ ## Example
24
+
25
+
26
+ ```ts
27
+ import { BigMuteButton } from '@gcorevideo/player'
28
+ Player.registerPlugin(BigMuteButton)
29
+ ```
30
+
@@ -2,12 +2,59 @@
2
2
 
3
3
  [Home](./index.md) > [@gcorevideo/player](./player.md) > [ClapprStatsSettings](./player.clapprstatssettings.md)
4
4
 
5
- ## ClapprStatsSettings type
5
+ ## ClapprStatsSettings interface
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
+ Config options for the [ClapprStats](./player.clapprstats.md) plugin
6
11
 
7
12
  **Signature:**
8
13
 
9
14
  ```typescript
10
- export type ClapprStatsSettings = {
11
- runEach?: number;
12
- };
15
+ export interface ClapprStatsSettings
13
16
  ```
17
+
18
+ ## Properties
19
+
20
+ <table><thead><tr><th>
21
+
22
+ Property
23
+
24
+
25
+ </th><th>
26
+
27
+ Modifiers
28
+
29
+
30
+ </th><th>
31
+
32
+ Type
33
+
34
+
35
+ </th><th>
36
+
37
+ Description
38
+
39
+
40
+ </th></tr></thead>
41
+ <tbody><tr><td>
42
+
43
+ [runEach?](./player.clapprstatssettings.runeach.md)
44
+
45
+
46
+ </td><td>
47
+
48
+
49
+ </td><td>
50
+
51
+ number
52
+
53
+
54
+ </td><td>
55
+
56
+ **_(BETA)_** _(Optional)_ The interval in milliseconds of periodic measurements. The plugin will emit a [ClapprStatsEvents.REPORT](./player.clapprstatsevents.md) event with the collected metrics at the specified interval.
57
+
58
+
59
+ </td></tr>
60
+ </tbody></table>
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [ClapprStatsSettings](./player.clapprstatssettings.md) &gt; [runEach](./player.clapprstatssettings.runeach.md)
4
+
5
+ ## ClapprStatsSettings.runEach 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
+ The interval in milliseconds of periodic measurements. The plugin will emit a [ClapprStatsEvents.REPORT](./player.clapprstatsevents.md) event with the collected metrics at the specified interval.
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ runEach?: number;
16
+ ```
@@ -53,7 +53,7 @@ string
53
53
 
54
54
  </td><td>
55
55
 
56
- **_(BETA)_** The compiled text of the clips description, one clip per line in format : `HH:MM:SS text` or `MM:SS text` or `SS text`
56
+ **_(BETA)_** The compiled text of the clips description, one clip per line in format: `HH:MM:SS text` or `MM:SS text` or `SS text`
57
57
 
58
58
 
59
59
  </td></tr>
@@ -7,7 +7,7 @@
7
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
8
  >
9
9
 
10
- The compiled text of the clips description, one clip per line in format : `HH:MM:SS text` or `MM:SS text` or `SS text`
10
+ The compiled text of the clips description, one clip per line in format: `HH:MM:SS text` or `MM:SS text` or `SS text`
11
11
 
12
12
  **Signature:**
13
13
 
@@ -7,6 +7,8 @@
7
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
8
  >
9
9
 
10
+ Returns the current `sid` and `cid` values. Useful when the auto-generated values need to be known.
11
+
10
12
  **Signature:**
11
13
 
12
14
  ```typescript
@@ -19,3 +21,5 @@ exportIds(): {
19
21
 
20
22
  { sid: string; cid: string; }
21
23
 
24
+ `sid` and `cid` values
25
+
@@ -7,7 +7,7 @@
7
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
8
  >
9
9
 
10
- A `PLUGIN` that configures CMCD for playback
10
+ A `PLUGIN` that configures [CMCD](https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf) for playback
11
11
 
12
12
  **Signature:**
13
13
 
@@ -18,47 +18,29 @@ export declare class CmcdConfig extends CorePlugin
18
18
 
19
19
  ## Remarks
20
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)
21
+ Configuration options - [CmcdConfigOptions](./player.cmcdconfigoptions.md)<!-- -->.
44
22
 
23
+ ## Example
45
24
 
46
- </td><td>
47
-
48
-
49
- </td><td>
50
-
51
- **_(BETA)_** Constructs a new instance of the `CmcdConfig` class
52
25
 
26
+ ```ts
27
+ import { CmcdConfig } from '@gcorevideo/player'
28
+ Player.registerPlugin(CmcdConfig)
53
29
 
54
- </td></tr>
55
- </tbody></table>
30
+ const player = new Player({
31
+ source: 'https://example.com/video.mp4',
32
+ cmcd: {
33
+ sessionId: '1234567890',
34
+ contentId: 'f572d396fae9206628714fb2ce00f72e94f2258f',
35
+ },
36
+ })
37
+ ```
56
38
 
57
- ## Properties
39
+ ## Constructors
58
40
 
59
41
  <table><thead><tr><th>
60
42
 
61
- Property
43
+ Constructor
62
44
 
63
45
 
64
46
  </th><th>
@@ -66,11 +48,6 @@ Property
66
48
  Modifiers
67
49
 
68
50
 
69
- </th><th>
70
-
71
- Type
72
-
73
-
74
51
  </th><th>
75
52
 
76
53
  Description
@@ -79,64 +56,15 @@ Description
79
56
  </th></tr></thead>
80
57
  <tbody><tr><td>
81
58
 
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`
59
+ [(constructor)(core)](./player.cmcdconfig._constructor_.md)
130
60
 
131
61
 
132
62
  </td><td>
133
63
 
134
- string
135
-
136
64
 
137
65
  </td><td>
138
66
 
139
- **_(BETA)_**
67
+ **_(BETA)_** Constructs a new instance of the `CmcdConfig` class
140
68
 
141
69
 
142
70
  </td></tr>
@@ -162,20 +90,6 @@ Description
162
90
  </th></tr></thead>
163
91
  <tbody><tr><td>
164
92
 
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
93
  [exportIds()](./player.cmcdconfig.exportids.md)
180
94
 
181
95
 
@@ -184,7 +98,7 @@ Description
184
98
 
185
99
  </td><td>
186
100
 
187
- **_(BETA)_**
101
+ **_(BETA)_** Returns the current `sid` and `cid` values. Useful when the auto-generated values need to be known.
188
102
 
189
103
 
190
104
  </td></tr>
@@ -1,14 +1,16 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfig](./player.cmcdconfig.md) &gt; [version](./player.cmcdconfig.version.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfigOptions](./player.cmcdconfigoptions.md) &gt; [contentId](./player.cmcdconfigoptions.contentid.md)
4
4
 
5
- ## CmcdConfig.version property
5
+ ## CmcdConfigOptions.contentId property
6
6
 
7
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
8
  >
9
9
 
10
+ `cid` value. If ommitted, the pathname part of the first source URL will be used
11
+
10
12
  **Signature:**
11
13
 
12
14
  ```typescript
13
- get version(): string;
15
+ contentId?: string;
14
16
  ```
@@ -0,0 +1,79 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfigOptions](./player.cmcdconfigoptions.md)
4
+
5
+ ## CmcdConfigOptions interface
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
+ Config options for the [CmcdConfig](./player.cmcdconfig.md) plugin
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export interface CmcdConfigOptions
16
+ ```
17
+
18
+ ## Properties
19
+
20
+ <table><thead><tr><th>
21
+
22
+ Property
23
+
24
+
25
+ </th><th>
26
+
27
+ Modifiers
28
+
29
+
30
+ </th><th>
31
+
32
+ Type
33
+
34
+
35
+ </th><th>
36
+
37
+ Description
38
+
39
+
40
+ </th></tr></thead>
41
+ <tbody><tr><td>
42
+
43
+ [contentId?](./player.cmcdconfigoptions.contentid.md)
44
+
45
+
46
+ </td><td>
47
+
48
+
49
+ </td><td>
50
+
51
+ string
52
+
53
+
54
+ </td><td>
55
+
56
+ **_(BETA)_** _(Optional)_ `cid` value. If ommitted, the pathname part of the first source URL will be used
57
+
58
+
59
+ </td></tr>
60
+ <tr><td>
61
+
62
+ [sessionId?](./player.cmcdconfigoptions.sessionid.md)
63
+
64
+
65
+ </td><td>
66
+
67
+
68
+ </td><td>
69
+
70
+ string
71
+
72
+
73
+ </td><td>
74
+
75
+ **_(BETA)_** _(Optional)_ `sid` value. If ommitted, a random UUID will be generated
76
+
77
+
78
+ </td></tr>
79
+ </tbody></table>
@@ -1,18 +1,16 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfigPluginSettings](./player.cmcdconfigpluginsettings.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [CmcdConfigOptions](./player.cmcdconfigoptions.md) &gt; [sessionId](./player.cmcdconfigoptions.sessionid.md)
4
4
 
5
- ## CmcdConfigPluginSettings type
5
+ ## CmcdConfigOptions.sessionId property
6
6
 
7
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
8
  >
9
9
 
10
+ `sid` value. If ommitted, a random UUID will be generated
10
11
 
11
12
  **Signature:**
12
13
 
13
14
  ```typescript
14
- export type CmcdConfigPluginSettings = {
15
- sessionId: string;
16
- contentId?: string;
17
- };
15
+ sessionId?: string;
18
16
  ```
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## ExtendedEvents enum
6
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
+ Extended events for the [MediaControl](./player.mediacontrol.md) plugin
11
+
7
12
  **Signature:**
8
13
 
9
14
  ```typescript
@@ -40,6 +45,8 @@ MEDIACONTROL\_MENU\_COLLAPSE
40
45
 
41
46
  </td><td>
42
47
 
48
+ **_(BETA)_**
49
+
43
50
 
44
51
  </td></tr>
45
52
  <tr><td>
@@ -54,6 +61,8 @@ MEDIACONTROL\_VOLUME
54
61
 
55
62
  </td><td>
56
63
 
64
+ **_(BETA)_**
65
+
57
66
 
58
67
  </td></tr>
59
68
  </tbody></table>