@gcorevideo/player 2.23.3 → 2.24.1
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.
- package/dist/core.js +1 -1
- package/dist/index.css +630 -630
- package/dist/index.js +116 -4
- package/dist/player.d.ts +52 -4
- package/docs/api/player.cmcdconfig._constructor_.md +50 -0
- package/docs/api/player.cmcdconfig.bindevents.md +19 -0
- package/docs/api/player.cmcdconfig.exportids.md +21 -0
- package/docs/api/player.cmcdconfig.md +191 -0
- package/docs/api/player.cmcdconfig.name.md +15 -0
- package/docs/api/player.cmcdconfig.supportedversion.md +14 -0
- package/docs/api/player.cmcdconfig.version.md +14 -0
- package/docs/api/player.cmcdconfigpluginsettings.md +18 -0
- package/docs/api/player.md +22 -0
- package/lib/index.plugins.d.ts +1 -0
- package/lib/index.plugins.d.ts.map +1 -1
- package/lib/index.plugins.js +1 -0
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts +1 -1
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts.map +1 -1
- package/lib/plugins/big-mute-button/BigMuteButton.js +3 -2
- package/lib/plugins/cmcd-config/CmcdConfig.d.ts +45 -0
- package/lib/plugins/cmcd-config/CmcdConfig.d.ts.map +1 -0
- package/lib/plugins/cmcd-config/CmcdConfig.js +110 -0
- package/lib/plugins/cmcd-config/utils.d.ts +2 -0
- package/lib/plugins/cmcd-config/utils.d.ts.map +1 -0
- package/lib/plugins/cmcd-config/utils.js +3 -0
- package/lib/testUtils.d.ts +5 -1
- package/lib/testUtils.d.ts.map +1 -1
- package/lib/testUtils.js +4 -2
- package/package.json +1 -1
- package/src/index.plugins.ts +1 -0
- package/src/plugins/big-mute-button/BigMuteButton.ts +3 -2
- package/src/plugins/cmcd-config/CmcdConfig.ts +148 -0
- package/src/plugins/cmcd-config/__tests__/CmcdConfig.test.ts +174 -0
- package/src/plugins/cmcd-config/utils.ts +3 -0
- package/src/plugins/media-control/__tests__/MediaControl.test.ts +4 -3
- package/src/testUtils.ts +4 -2
- package/temp/player.api.json +243 -0
- 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.
|
|
43306
|
+
var version$1 = "2.24.1";
|
|
43307
43307
|
|
|
43308
43308
|
var packages = {
|
|
43309
43309
|
"node_modules/@clappr/core": {
|
|
@@ -44966,7 +44966,7 @@ class BigMuteButton extends UICorePlugin {
|
|
|
44966
44966
|
*/
|
|
44967
44967
|
get events() {
|
|
44968
44968
|
return {
|
|
44969
|
-
'click .big-mute-icon': '
|
|
44969
|
+
'click .big-mute-icon': 'clicked',
|
|
44970
44970
|
'click .big-mute-icon-wrapper': 'destroyBigMuteBtn',
|
|
44971
44971
|
};
|
|
44972
44972
|
}
|
|
@@ -44980,6 +44980,7 @@ class BigMuteButton extends UICorePlugin {
|
|
|
44980
44980
|
trace(`${T$h} bindEvents`, {
|
|
44981
44981
|
mediacontrol: !!this.core.mediaControl,
|
|
44982
44982
|
});
|
|
44983
|
+
// TOOD use core.getPlugin('media_control')
|
|
44983
44984
|
this.listenTo(this.core.mediaControl, Events$1.MEDIACONTROL_RENDERED, this.mediaControlRendered);
|
|
44984
44985
|
}
|
|
44985
44986
|
onCoreReady() {
|
|
@@ -45073,7 +45074,7 @@ class BigMuteButton extends UICorePlugin {
|
|
|
45073
45074
|
}
|
|
45074
45075
|
this.destroy();
|
|
45075
45076
|
}
|
|
45076
|
-
|
|
45077
|
+
clicked(e) {
|
|
45077
45078
|
const localVolume = Utils.Config.restore('volume');
|
|
45078
45079
|
const volume = !isNaN(localVolume) ? localVolume : 100;
|
|
45079
45080
|
// TODO use container.setVolume() instead
|
|
@@ -45699,6 +45700,117 @@ class ClapprStats extends ContainerPlugin {
|
|
|
45699
45700
|
}
|
|
45700
45701
|
}
|
|
45701
45702
|
|
|
45703
|
+
function generateSessionId() {
|
|
45704
|
+
return window.crypto.randomUUID();
|
|
45705
|
+
}
|
|
45706
|
+
|
|
45707
|
+
const CMCD_KEYS = [
|
|
45708
|
+
'br',
|
|
45709
|
+
'd',
|
|
45710
|
+
'ot',
|
|
45711
|
+
'tb',
|
|
45712
|
+
'bl',
|
|
45713
|
+
'dl',
|
|
45714
|
+
'mtp',
|
|
45715
|
+
'nor',
|
|
45716
|
+
'nrr',
|
|
45717
|
+
'su',
|
|
45718
|
+
'bs',
|
|
45719
|
+
'rtp',
|
|
45720
|
+
'cid',
|
|
45721
|
+
'pr',
|
|
45722
|
+
'sf',
|
|
45723
|
+
'sid',
|
|
45724
|
+
'st',
|
|
45725
|
+
'v',
|
|
45726
|
+
];
|
|
45727
|
+
// const T = 'plugins.cmcd'
|
|
45728
|
+
/**
|
|
45729
|
+
* A `PLUGIN` that configures CMCD for playback
|
|
45730
|
+
* @beta
|
|
45731
|
+
* @remarks
|
|
45732
|
+
* Configuration options
|
|
45733
|
+
* `cmcd`: {@link CmcdConfigPluginSettings}
|
|
45734
|
+
*/
|
|
45735
|
+
class CmcdConfig extends CorePlugin {
|
|
45736
|
+
sid;
|
|
45737
|
+
cid = '';
|
|
45738
|
+
/**
|
|
45739
|
+
* @inheritdocs
|
|
45740
|
+
*/
|
|
45741
|
+
get name() {
|
|
45742
|
+
return 'cmcd';
|
|
45743
|
+
}
|
|
45744
|
+
get version() {
|
|
45745
|
+
return '0.1.0';
|
|
45746
|
+
}
|
|
45747
|
+
get supportedVersion() {
|
|
45748
|
+
return CLAPPR_VERSION$1;
|
|
45749
|
+
}
|
|
45750
|
+
constructor(core) {
|
|
45751
|
+
super(core);
|
|
45752
|
+
this.sid = this.options.cmcd?.sessionId ?? generateSessionId();
|
|
45753
|
+
this.cid = this.options.cmcd?.contentId ?? this.generateContentId();
|
|
45754
|
+
}
|
|
45755
|
+
/**
|
|
45756
|
+
* @inheritdocs
|
|
45757
|
+
*/
|
|
45758
|
+
bindEvents() {
|
|
45759
|
+
this.listenTo(this.core, Events$1.CORE_CONTAINERS_CREATED, () => this.updateSettings(this.core.containers[0]));
|
|
45760
|
+
}
|
|
45761
|
+
exportIds() {
|
|
45762
|
+
return {
|
|
45763
|
+
sid: this.sid,
|
|
45764
|
+
cid: this.cid,
|
|
45765
|
+
};
|
|
45766
|
+
}
|
|
45767
|
+
async updateSettings(container) {
|
|
45768
|
+
switch (container.playback.name) {
|
|
45769
|
+
case 'dash':
|
|
45770
|
+
$.extend(true, container.playback.options, {
|
|
45771
|
+
dash: {
|
|
45772
|
+
cmcd: {
|
|
45773
|
+
enabled: true,
|
|
45774
|
+
enabledKeys: CMCD_KEYS,
|
|
45775
|
+
sid: this.sid,
|
|
45776
|
+
cid: this.cid,
|
|
45777
|
+
},
|
|
45778
|
+
},
|
|
45779
|
+
});
|
|
45780
|
+
break;
|
|
45781
|
+
case 'hls':
|
|
45782
|
+
$.extend(true, container.playback.options, {
|
|
45783
|
+
playback: {
|
|
45784
|
+
hlsjsConfig: {
|
|
45785
|
+
cmcd: {
|
|
45786
|
+
includeKeys: CMCD_KEYS,
|
|
45787
|
+
sessionId: this.sid,
|
|
45788
|
+
contentId: this.cid,
|
|
45789
|
+
},
|
|
45790
|
+
},
|
|
45791
|
+
},
|
|
45792
|
+
});
|
|
45793
|
+
break;
|
|
45794
|
+
}
|
|
45795
|
+
}
|
|
45796
|
+
updateHlsjsSettings(options, { cid, sid }) {
|
|
45797
|
+
$.extend(true, options, {
|
|
45798
|
+
playback: {
|
|
45799
|
+
hlsjsConfig: {
|
|
45800
|
+
cmcd: {
|
|
45801
|
+
includeKeys: CMCD_KEYS,
|
|
45802
|
+
sessionId: sid,
|
|
45803
|
+
contentId: cid,
|
|
45804
|
+
},
|
|
45805
|
+
},
|
|
45806
|
+
},
|
|
45807
|
+
});
|
|
45808
|
+
}
|
|
45809
|
+
generateContentId() {
|
|
45810
|
+
return new URL(this.core.options.source ?? this.core.options.sources[0].source).pathname.slice(0, 64);
|
|
45811
|
+
}
|
|
45812
|
+
}
|
|
45813
|
+
|
|
45702
45814
|
var mousetrap = {exports: {}};
|
|
45703
45815
|
|
|
45704
45816
|
/*global define:false */
|
|
@@ -52472,4 +52584,4 @@ class VolumeFade extends UICorePlugin {
|
|
|
52472
52584
|
}
|
|
52473
52585
|
}
|
|
52474
52586
|
|
|
52475
|
-
export { AudioTracks as AudioSelector, AudioTracks, BigMuteButton, BottomGear, NerdStats as ClapprNerdStats, ClapprStats, ClapprStatsChronograph, ClapprStatsCounter, ClapprStatsEvents, ClickToPause, Clips, ClosedCaptions, ContextMenu, DvrControls, ErrorScreen, ExtendedEvents, Favicon, GearEvents, GoogleAnalytics, QualityLevels as LevelSelector, LogTracer, Logger, Logo, MediaControl, MultiCamera, NerdStats, PictureInPicture, PlaybackErrorCode, PlaybackRate, Player, PlayerEvent, Poster, QualityLevels, SeekTime, SentryTracer, Share, SkipTime, SourceController, SpinnerThreeBounce as Spinner, SpinnerEvents, SpinnerThreeBounce, ClosedCaptions as Subtitles, Telemetry, TelemetryEvent, Thumbnails, VolumeFade, VolumeFadeEvents, reportError, setTracer, trace, version };
|
|
52587
|
+
export { AudioTracks as AudioSelector, AudioTracks, BigMuteButton, BottomGear, NerdStats as ClapprNerdStats, ClapprStats, ClapprStatsChronograph, ClapprStatsCounter, ClapprStatsEvents, ClickToPause, Clips, ClosedCaptions, CmcdConfig, ContextMenu, DvrControls, ErrorScreen, ExtendedEvents, Favicon, GearEvents, GoogleAnalytics, QualityLevels as LevelSelector, LogTracer, Logger, Logo, MediaControl, MultiCamera, NerdStats, PictureInPicture, PlaybackErrorCode, PlaybackRate, Player, PlayerEvent, Poster, QualityLevels, SeekTime, SentryTracer, Share, SkipTime, SourceController, SpinnerThreeBounce as Spinner, SpinnerEvents, SpinnerThreeBounce, ClosedCaptions as Subtitles, Telemetry, TelemetryEvent, Thumbnails, VolumeFade, VolumeFadeEvents, reportError, setTracer, trace, version };
|
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
|
|
158
|
+
private clicked;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
/**
|
|
@@ -228,6 +228,8 @@ export declare class BigMuteButton extends UICorePlugin {
|
|
|
228
228
|
*/
|
|
229
229
|
export declare class BottomGear extends UICorePlugin {
|
|
230
230
|
private hd;
|
|
231
|
+
private numItems;
|
|
232
|
+
private collapsed;
|
|
231
233
|
/**
|
|
232
234
|
* @internal
|
|
233
235
|
*/
|
|
@@ -282,7 +284,6 @@ export declare class BottomGear extends UICorePlugin {
|
|
|
282
284
|
* ```
|
|
283
285
|
*/
|
|
284
286
|
addItem(name: string, $subMenu?: ZeptoResult): ZeptoResult;
|
|
285
|
-
private onActiveContainerChanged;
|
|
286
287
|
private bindContainerEvents;
|
|
287
288
|
private highDefinitionUpdate;
|
|
288
289
|
/**
|
|
@@ -295,10 +296,12 @@ export declare class BottomGear extends UICorePlugin {
|
|
|
295
296
|
* Should be called by the UI plugin that added a gear item with a submenu when the latter is closed (e.g., when a "back" button is clicked).
|
|
296
297
|
*/
|
|
297
298
|
refresh(): void;
|
|
298
|
-
private
|
|
299
|
-
private
|
|
299
|
+
private collapseSubmenus;
|
|
300
|
+
private toggleMenu;
|
|
301
|
+
private collapse;
|
|
300
302
|
private onCoreReady;
|
|
301
303
|
private onMediaControlRendered;
|
|
304
|
+
private mount;
|
|
302
305
|
}
|
|
303
306
|
|
|
304
307
|
/**
|
|
@@ -700,6 +703,51 @@ export declare type ClosedCaptionsPluginSettings = {
|
|
|
700
703
|
language?: string;
|
|
701
704
|
};
|
|
702
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
|
+
|
|
703
751
|
/**
|
|
704
752
|
* @public
|
|
705
753
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [CmcdConfig](./player.cmcdconfig.md) > [(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) > [@gcorevideo/player](./player.md) > [CmcdConfig](./player.cmcdconfig.md) > [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) > [@gcorevideo/player](./player.md) > [CmcdConfig](./player.cmcdconfig.md) > [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) > [@gcorevideo/player](./player.md) > [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) > [@gcorevideo/player](./player.md) > [CmcdConfig](./player.cmcdconfig.md) > [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) > [@gcorevideo/player](./player.md) > [CmcdConfig](./player.cmcdconfig.md) > [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) > [@gcorevideo/player](./player.md) > [CmcdConfig](./player.cmcdconfig.md) > [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) > [@gcorevideo/player](./player.md) > [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
|
+
```
|
package/docs/api/player.md
CHANGED
|
@@ -119,6 +119,17 @@ Description
|
|
|
119
119
|
**_(BETA)_** `PLUGIN` that provides a UI to select the subtitles when available.
|
|
120
120
|
|
|
121
121
|
|
|
122
|
+
</td></tr>
|
|
123
|
+
<tr><td>
|
|
124
|
+
|
|
125
|
+
[CmcdConfig](./player.cmcdconfig.md)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
</td><td>
|
|
129
|
+
|
|
130
|
+
**_(BETA)_** A `PLUGIN` that configures CMCD for playback
|
|
131
|
+
|
|
132
|
+
|
|
122
133
|
</td></tr>
|
|
123
134
|
<tr><td>
|
|
124
135
|
|
|
@@ -736,6 +747,17 @@ Description
|
|
|
736
747
|
**_(BETA)_** Configuration options for the [ClosedCaptions](./player.closedcaptions.md) plugin.
|
|
737
748
|
|
|
738
749
|
|
|
750
|
+
</td></tr>
|
|
751
|
+
<tr><td>
|
|
752
|
+
|
|
753
|
+
[CmcdConfigPluginSettings](./player.cmcdconfigpluginsettings.md)
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
</td><td>
|
|
757
|
+
|
|
758
|
+
**_(BETA)_**
|
|
759
|
+
|
|
760
|
+
|
|
739
761
|
</td></tr>
|
|
740
762
|
<tr><td>
|
|
741
763
|
|
package/lib/index.plugins.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { AudioTracks as AudioSelector } from "./plugins/audio-selector/AudioTrac
|
|
|
4
4
|
export * from "./plugins/big-mute-button/BigMuteButton.js";
|
|
5
5
|
export * from "./plugins/bottom-gear/BottomGear.js";
|
|
6
6
|
export * from "./plugins/clappr-stats/ClapprStats.js";
|
|
7
|
+
export * from "./plugins/cmcd-config/CmcdConfig.js";
|
|
7
8
|
export * from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
8
9
|
export { NerdStats as ClapprNerdStats } from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
9
10
|
export * from "./plugins/click-to-pause/ClickToPause.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.plugins.d.ts","sourceRoot":"","sources":["../src/index.plugins.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACvF,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,0CAA0C,CAAC;AACxF,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAA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,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC3F,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sDAAsD,CAAC;AACrE,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,sDAAsD,CAAC;AACrG,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpF,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,qCAAqC,CAAC"}
|
package/lib/index.plugins.js
CHANGED
|
@@ -4,6 +4,7 @@ export { AudioTracks as AudioSelector } from "./plugins/audio-selector/AudioTrac
|
|
|
4
4
|
export * from "./plugins/big-mute-button/BigMuteButton.js";
|
|
5
5
|
export * from "./plugins/bottom-gear/BottomGear.js";
|
|
6
6
|
export * from "./plugins/clappr-stats/ClapprStats.js";
|
|
7
|
+
export * from "./plugins/cmcd-config/CmcdConfig.js";
|
|
7
8
|
export * from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
8
9
|
export { NerdStats as ClapprNerdStats } from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
9
10
|
export * from "./plugins/click-to-pause/ClickToPause.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BigMuteButton.d.ts","sourceRoot":"","sources":["../../../src/plugins/big-mute-button/BigMuteButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAS,MAAM,cAAc,CAAA;AAQpE,OAAO,sDAAsD,CAAA;AAM7D;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,CAAC,qBAAqB,CAAQ;IA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