@gcorevideo/player 2.20.11 → 2.20.12
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 +1377 -1377
- package/dist/index.js +29 -37
- package/dist/player.d.ts +39 -5
- package/dist/plugins/index.css +1136 -1136
- package/dist/plugins/index.js +29 -37
- package/docs/api/player.contextmenupluginsettings.md +1 -1
- package/docs/api/player.favicon.md +4 -174
- package/docs/api/{player.favicon.bindevents.md → player.faviconpluginsettings.faviconcolor.md} +5 -7
- package/docs/api/{player.favicon._constructor_.md → player.faviconpluginsettings.md} +17 -8
- package/docs/api/player.md +14 -3
- package/docs/api/{player.favicon.disable.md → player.mediacontrol.getcenterpanel.md} +4 -4
- package/docs/api/{player.favicon.configure.md → player.mediacontrol.getleftpanel.md} +8 -4
- package/docs/api/player.mediacontrol.md +28 -0
- package/lib/plugins/context-menu/ContextMenu.d.ts +1 -1
- package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
- package/lib/plugins/error-screen/ErrorScreen.js +0 -1
- package/lib/plugins/favicon/Favicon.d.ts +30 -3
- package/lib/plugins/favicon/Favicon.d.ts.map +1 -1
- package/lib/plugins/favicon/Favicon.js +28 -35
- package/package.json +1 -1
- package/src/plugins/context-menu/ContextMenu.ts +1 -1
- package/src/plugins/error-screen/ErrorScreen.ts +0 -1
- package/src/plugins/favicon/Favicon.ts +38 -41
- package/temp/player.api.json +95 -206
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.favicon.destroy.md +0 -18
- package/docs/api/player.favicon.name.md +0 -14
- package/docs/api/player.favicon.supportedversion.md +0 -16
package/dist/plugins/index.js
CHANGED
|
@@ -37257,7 +37257,7 @@ class ClipsPlugin extends UICorePlugin {
|
|
|
37257
37257
|
|
|
37258
37258
|
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";
|
|
37259
37259
|
|
|
37260
|
-
var version$1 = "2.20.
|
|
37260
|
+
var version$1 = "2.20.12";
|
|
37261
37261
|
|
|
37262
37262
|
var packages = {
|
|
37263
37263
|
"node_modules/@clappr/core": {
|
|
@@ -37617,7 +37617,6 @@ class ErrorScreen extends UICorePlugin {
|
|
|
37617
37617
|
...this.err,
|
|
37618
37618
|
reloadIcon: this.options.errorScreen?.noReload ? null : reloadIcon,
|
|
37619
37619
|
}));
|
|
37620
|
-
// TODO append to container instead of core?
|
|
37621
37620
|
if (!this.el.parentElement) {
|
|
37622
37621
|
this.core.$el.append(this.el);
|
|
37623
37622
|
}
|
|
@@ -37627,26 +37626,32 @@ class ErrorScreen extends UICorePlugin {
|
|
|
37627
37626
|
|
|
37628
37627
|
const FAVICON_COLOR = '#567';
|
|
37629
37628
|
const FAVICON_SELECTOR = 'link[rel="shortcut icon"]';
|
|
37630
|
-
// const oldIcon = $(FAVICON_SELECTOR);
|
|
37631
37629
|
/**
|
|
37632
|
-
* `PLUGIN` that
|
|
37630
|
+
* `PLUGIN` that changes the favicon according to the player's state.
|
|
37633
37631
|
* @beta
|
|
37632
|
+
* @remarks
|
|
37633
|
+
* There are three states: stopped, playing and paused.
|
|
37634
37634
|
*/
|
|
37635
37635
|
class Favicon extends CorePlugin {
|
|
37636
|
-
_container = null;
|
|
37637
37636
|
oldIcon;
|
|
37638
37637
|
playIcon = null;
|
|
37639
37638
|
pauseIcon = null;
|
|
37640
37639
|
stopIcon = null;
|
|
37640
|
+
/**
|
|
37641
|
+
* @internal
|
|
37642
|
+
*/
|
|
37641
37643
|
get name() {
|
|
37642
37644
|
return 'favicon';
|
|
37643
37645
|
}
|
|
37646
|
+
/**
|
|
37647
|
+
* @internal
|
|
37648
|
+
*/
|
|
37644
37649
|
get supportedVersion() {
|
|
37645
37650
|
return { min: CLAPPR_VERSION };
|
|
37646
37651
|
}
|
|
37647
|
-
|
|
37648
|
-
|
|
37649
|
-
|
|
37652
|
+
/**
|
|
37653
|
+
* @internal
|
|
37654
|
+
*/
|
|
37650
37655
|
constructor(core) {
|
|
37651
37656
|
super(core);
|
|
37652
37657
|
this.oldIcon = $(FAVICON_SELECTOR);
|
|
@@ -37654,41 +37659,31 @@ class Favicon extends CorePlugin {
|
|
|
37654
37659
|
this.stopIcon = this.createIcon(stopIcon);
|
|
37655
37660
|
this.changeIcon(this.stopIcon);
|
|
37656
37661
|
}
|
|
37657
|
-
this.configure();
|
|
37658
|
-
}
|
|
37659
|
-
configure() {
|
|
37660
|
-
if (this.core.options.changeFavicon) {
|
|
37661
|
-
if (!this.enabled) {
|
|
37662
|
-
// @ts-ignore
|
|
37663
|
-
this.stopListening(this.core, Events$1.CORE_OPTIONS_CHANGE);
|
|
37664
|
-
this.enable();
|
|
37665
|
-
}
|
|
37666
|
-
}
|
|
37667
|
-
else if (this.enabled) {
|
|
37668
|
-
this.disable();
|
|
37669
|
-
this.listenTo(this.core, Events$1.CORE_OPTIONS_CHANGE, this.configure);
|
|
37670
|
-
}
|
|
37671
37662
|
}
|
|
37663
|
+
/**
|
|
37664
|
+
* @internal
|
|
37665
|
+
*/
|
|
37672
37666
|
bindEvents() {
|
|
37673
|
-
this.listenTo(this.core, Events$1.CORE_OPTIONS_CHANGE, this.configure);
|
|
37674
37667
|
this.listenTo(this.core, Events$1.CORE_ACTIVE_CONTAINER_CHANGED, this.containerChanged);
|
|
37675
|
-
this.core.activeContainer && this.containerChanged();
|
|
37676
37668
|
}
|
|
37677
37669
|
containerChanged() {
|
|
37678
|
-
|
|
37679
|
-
this.
|
|
37680
|
-
this.
|
|
37681
|
-
this.listenTo(this.
|
|
37682
|
-
this.listenTo(this.
|
|
37683
|
-
this.listenTo(this._container, Events$1.CONTAINER_STOP, this.resetIcon);
|
|
37684
|
-
this.listenTo(this._container, Events$1.CONTAINER_ENDED, this.resetIcon);
|
|
37685
|
-
this.listenTo(this._container, Events$1.CONTAINER_ERROR, this.resetIcon);
|
|
37670
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_PLAY, this.setPlayIcon);
|
|
37671
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_PAUSE, this.setPauseIcon);
|
|
37672
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_STOP, this.resetIcon);
|
|
37673
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_ENDED, this.resetIcon);
|
|
37674
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_ERROR, this.resetIcon);
|
|
37686
37675
|
this.resetIcon();
|
|
37687
37676
|
}
|
|
37677
|
+
/**
|
|
37678
|
+
* @internal
|
|
37679
|
+
*/
|
|
37688
37680
|
disable() {
|
|
37689
37681
|
super.disable();
|
|
37690
37682
|
this.resetIcon();
|
|
37691
37683
|
}
|
|
37684
|
+
/**
|
|
37685
|
+
* @internal
|
|
37686
|
+
*/
|
|
37692
37687
|
destroy() {
|
|
37693
37688
|
super.destroy();
|
|
37694
37689
|
this.resetIcon();
|
|
@@ -37719,15 +37714,12 @@ class Favicon extends CorePlugin {
|
|
|
37719
37714
|
this.changeIcon(this.pauseIcon);
|
|
37720
37715
|
}
|
|
37721
37716
|
resetIcon() {
|
|
37722
|
-
$(FAVICON_SELECTOR).remove();
|
|
37723
37717
|
const icon = this.oldIcon.length > 0 ? this.oldIcon : this.stopIcon;
|
|
37724
37718
|
this.changeIcon(icon);
|
|
37725
37719
|
}
|
|
37726
37720
|
changeIcon(icon) {
|
|
37727
|
-
|
|
37728
|
-
|
|
37729
|
-
$('head').append(icon);
|
|
37730
|
-
}
|
|
37721
|
+
$('link[rel="shortcut icon"]').remove();
|
|
37722
|
+
$('head').append(icon);
|
|
37731
37723
|
}
|
|
37732
37724
|
}
|
|
37733
37725
|
|
|
@@ -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
|
-
|
|
10
|
+
Context menu plugin settings
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -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
|
|
10
|
+
`PLUGIN` that changes the favicon according to the player's state.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -16,179 +16,9 @@ export declare class Favicon extends CorePlugin
|
|
|
16
16
|
```
|
|
17
17
|
**Extends:** CorePlugin
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Remarks
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
There are three states: stopped, playing and paused.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `Favicon` class.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Modifiers
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th><th>
|
|
32
|
-
|
|
33
|
-
Description
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</th></tr></thead>
|
|
37
|
-
<tbody><tr><td>
|
|
38
|
-
|
|
39
|
-
[(constructor)(core)](./player.favicon._constructor_.md)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td><td>
|
|
46
|
-
|
|
47
|
-
**_(BETA)_** Constructs a new instance of the `Favicon` class
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</td></tr>
|
|
51
|
-
</tbody></table>
|
|
52
|
-
|
|
53
|
-
## Properties
|
|
54
|
-
|
|
55
|
-
<table><thead><tr><th>
|
|
56
|
-
|
|
57
|
-
Property
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</th><th>
|
|
61
|
-
|
|
62
|
-
Modifiers
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</th><th>
|
|
66
|
-
|
|
67
|
-
Type
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</th><th>
|
|
71
|
-
|
|
72
|
-
Description
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</th></tr></thead>
|
|
76
|
-
<tbody><tr><td>
|
|
77
|
-
|
|
78
|
-
[name](./player.favicon.name.md)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
</td><td>
|
|
82
|
-
|
|
83
|
-
`readonly`
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</td><td>
|
|
87
|
-
|
|
88
|
-
string
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</td><td>
|
|
92
|
-
|
|
93
|
-
**_(BETA)_**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</td></tr>
|
|
97
|
-
<tr><td>
|
|
98
|
-
|
|
99
|
-
[supportedVersion](./player.favicon.supportedversion.md)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
</td><td>
|
|
103
|
-
|
|
104
|
-
`readonly`
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</td><td>
|
|
108
|
-
|
|
109
|
-
{ min: string; }
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
</td><td>
|
|
113
|
-
|
|
114
|
-
**_(BETA)_**
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</td></tr>
|
|
118
|
-
</tbody></table>
|
|
119
|
-
|
|
120
|
-
## Methods
|
|
121
|
-
|
|
122
|
-
<table><thead><tr><th>
|
|
123
|
-
|
|
124
|
-
Method
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</th><th>
|
|
128
|
-
|
|
129
|
-
Modifiers
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</th><th>
|
|
133
|
-
|
|
134
|
-
Description
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
</th></tr></thead>
|
|
138
|
-
<tbody><tr><td>
|
|
139
|
-
|
|
140
|
-
[bindEvents()](./player.favicon.bindevents.md)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
</td><td>
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
</td><td>
|
|
147
|
-
|
|
148
|
-
**_(BETA)_**
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
</td></tr>
|
|
152
|
-
<tr><td>
|
|
153
|
-
|
|
154
|
-
[configure()](./player.favicon.configure.md)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
</td><td>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
</td><td>
|
|
161
|
-
|
|
162
|
-
**_(BETA)_**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
</td></tr>
|
|
166
|
-
<tr><td>
|
|
167
|
-
|
|
168
|
-
[destroy()](./player.favicon.destroy.md)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
</td><td>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</td><td>
|
|
175
|
-
|
|
176
|
-
**_(BETA)_**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
</td></tr>
|
|
180
|
-
<tr><td>
|
|
181
|
-
|
|
182
|
-
[disable()](./player.favicon.disable.md)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
</td><td>
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
</td><td>
|
|
189
|
-
|
|
190
|
-
**_(BETA)_**
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
</td></tr>
|
|
194
|
-
</tbody></table>
|
package/docs/api/{player.favicon.bindevents.md → player.faviconpluginsettings.faviconcolor.md}
RENAMED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [FaviconPluginSettings](./player.faviconpluginsettings.md) > [faviconColor](./player.faviconpluginsettings.faviconcolor.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## FaviconPluginSettings.faviconColor 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
|
+
CSS color of the favicon.
|
|
11
|
+
|
|
10
12
|
**Signature:**
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
|
|
15
|
+
faviconColor?: string;
|
|
14
16
|
```
|
|
15
|
-
**Returns:**
|
|
16
|
-
|
|
17
|
-
void
|
|
18
|
-
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [FaviconPluginSettings](./player.faviconpluginsettings.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## FaviconPluginSettings interface
|
|
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
|
-
Constructs a new instance of the `Favicon` class
|
|
11
10
|
|
|
12
11
|
**Signature:**
|
|
13
12
|
|
|
14
13
|
```typescript
|
|
15
|
-
|
|
14
|
+
export interface FaviconPluginSettings
|
|
16
15
|
```
|
|
17
16
|
|
|
18
|
-
##
|
|
17
|
+
## Properties
|
|
19
18
|
|
|
20
19
|
<table><thead><tr><th>
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
Property
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
</th><th>
|
|
25
|
+
|
|
26
|
+
Modifiers
|
|
23
27
|
|
|
24
28
|
|
|
25
29
|
</th><th>
|
|
@@ -35,16 +39,21 @@ Description
|
|
|
35
39
|
</th></tr></thead>
|
|
36
40
|
<tbody><tr><td>
|
|
37
41
|
|
|
38
|
-
|
|
42
|
+
[faviconColor?](./player.faviconpluginsettings.faviconcolor.md)
|
|
39
43
|
|
|
40
44
|
|
|
41
45
|
</td><td>
|
|
42
46
|
|
|
43
|
-
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
string
|
|
44
51
|
|
|
45
52
|
|
|
46
53
|
</td><td>
|
|
47
54
|
|
|
55
|
+
**_(BETA)_** _(Optional)_ CSS color of the favicon.
|
|
56
|
+
|
|
48
57
|
|
|
49
58
|
</td></tr>
|
|
50
59
|
</tbody></table>
|
package/docs/api/player.md
CHANGED
|
@@ -8,7 +8,7 @@ Video player for the Gcore streaming platform
|
|
|
8
8
|
|
|
9
9
|
## Remarks
|
|
10
10
|
|
|
11
|
-
This package provides a video player for the Gcore streaming platform. It is built on top of the Clappr library and provides a framework for building custom integrations. Start with [Player](./player.player.md) for more information.
|
|
11
|
+
This package provides a video player for the Gcore streaming platform. It is built on top of the [Clappr](https://github.com/clappr/clappr) library and provides a framework for building custom integrations. Start with [Player](./player.player.md) for more information.
|
|
12
12
|
|
|
13
13
|
Various plugins (marked with `PLUGIN` keyword) are available to extend the player with additional features.
|
|
14
14
|
|
|
@@ -160,7 +160,7 @@ Description
|
|
|
160
160
|
|
|
161
161
|
</td><td>
|
|
162
162
|
|
|
163
|
-
**_(BETA)_** `PLUGIN` that
|
|
163
|
+
**_(BETA)_** `PLUGIN` that changes the favicon according to the player's state.
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
</td></tr>
|
|
@@ -502,7 +502,18 @@ Description
|
|
|
502
502
|
|
|
503
503
|
</td><td>
|
|
504
504
|
|
|
505
|
-
**_(BETA)_**
|
|
505
|
+
**_(BETA)_** Context menu plugin settings
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
</td></tr>
|
|
509
|
+
<tr><td>
|
|
510
|
+
|
|
511
|
+
[FaviconPluginSettings](./player.faviconpluginsettings.md)
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
</td><td>
|
|
515
|
+
|
|
516
|
+
**_(BETA)_**
|
|
506
517
|
|
|
507
518
|
|
|
508
519
|
</td></tr>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MediaControl](./player.mediacontrol.md) > [getCenterPanel](./player.mediacontrol.getcenterpanel.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## MediaControl.getCenterPanel() method
|
|
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
|
>
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
**Signature:**
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
|
|
13
|
+
getCenterPanel(): any;
|
|
14
14
|
```
|
|
15
15
|
**Returns:**
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
any
|
|
18
18
|
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MediaControl](./player.mediacontrol.md) > [getLeftPanel](./player.mediacontrol.getleftpanel.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## MediaControl.getLeftPanel() method
|
|
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
|
+
Get the left panel area to append custom elements to
|
|
11
|
+
|
|
10
12
|
**Signature:**
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
|
|
15
|
+
getLeftPanel(): any;
|
|
14
16
|
```
|
|
15
17
|
**Returns:**
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
any
|
|
20
|
+
|
|
21
|
+
ZeptoSelector of the left panel element
|
|
18
22
|
|
|
@@ -224,6 +224,20 @@ Description
|
|
|
224
224
|
**_(BETA)_** Enable the user interaction disabled earlier
|
|
225
225
|
|
|
226
226
|
|
|
227
|
+
</td></tr>
|
|
228
|
+
<tr><td>
|
|
229
|
+
|
|
230
|
+
[getCenterPanel()](./player.mediacontrol.getcenterpanel.md)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
</td><td>
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
</td><td>
|
|
237
|
+
|
|
238
|
+
**_(BETA)_**
|
|
239
|
+
|
|
240
|
+
|
|
227
241
|
</td></tr>
|
|
228
242
|
<tr><td>
|
|
229
243
|
|
|
@@ -238,6 +252,20 @@ Description
|
|
|
238
252
|
**_(BETA)_** Get a media control element DOM node
|
|
239
253
|
|
|
240
254
|
|
|
255
|
+
</td></tr>
|
|
256
|
+
<tr><td>
|
|
257
|
+
|
|
258
|
+
[getLeftPanel()](./player.mediacontrol.getleftpanel.md)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
</td><td>
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
</td><td>
|
|
265
|
+
|
|
266
|
+
**_(BETA)_** Get the left panel area to append custom elements to
|
|
267
|
+
|
|
268
|
+
|
|
241
269
|
</td></tr>
|
|
242
270
|
<tr><td>
|
|
243
271
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Container, UIContainerPlugin } from '@clappr/core';
|
|
2
2
|
import '../../../assets/context-menu/context_menu.scss';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Context menu plugin settings
|
|
5
5
|
* @beta
|
|
6
6
|
*/
|
|
7
7
|
export interface ContextMenuPluginSettings {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorScreen.d.ts","sourceRoot":"","sources":["../../../src/plugins/error-screen/ErrorScreen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,MAAM,cAAc,CAAA;AAO7D,OAAO,gDAAgD,CAAA;AAUvD;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAID;;;GAGG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,CAAC,GAAG,CAA+B;IAE1C;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAEzD;;OAEG;IACH,IAAa,UAAU;;;MAKtB;IAED;;OAEG;IACM,UAAU;IASnB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,OAAO;IAMf;;OAEG;IACH,IAAa,MAAM;;MAIlB;IAED,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,wBAAwB;IAqBhC,OAAO,CAAC,OAAO;IAgBf;;OAEG;IACM,MAAM;
|
|
1
|
+
{"version":3,"file":"ErrorScreen.d.ts","sourceRoot":"","sources":["../../../src/plugins/error-screen/ErrorScreen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,MAAM,cAAc,CAAA;AAO7D,OAAO,gDAAgD,CAAA;AAUvD;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAID;;;GAGG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,CAAC,GAAG,CAA+B;IAE1C;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAEzD;;OAEG;IACH,IAAa,UAAU;;;MAKtB;IAED;;OAEG;IACM,UAAU;IASnB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,OAAO;IAMf;;OAEG;IACH,IAAa,MAAM;;MAIlB;IAED,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,wBAAwB;IAqBhC,OAAO,CAAC,OAAO;IAgBf;;OAEG;IACM,MAAM;CAiBhB"}
|
|
@@ -108,7 +108,6 @@ export class ErrorScreen extends UICorePlugin {
|
|
|
108
108
|
...this.err,
|
|
109
109
|
reloadIcon: this.options.errorScreen?.noReload ? null : reloadIcon,
|
|
110
110
|
}));
|
|
111
|
-
// TODO append to container instead of core?
|
|
112
111
|
if (!this.el.parentElement) {
|
|
113
112
|
this.core.$el.append(this.el);
|
|
114
113
|
}
|
|
@@ -1,23 +1,50 @@
|
|
|
1
1
|
import { CorePlugin, Core } from '@clappr/core';
|
|
2
2
|
/**
|
|
3
|
-
* `PLUGIN` that adds custom favicon to the player's tab.
|
|
4
3
|
* @beta
|
|
5
4
|
*/
|
|
5
|
+
export interface FaviconPluginSettings {
|
|
6
|
+
/**
|
|
7
|
+
* CSS color of the favicon.
|
|
8
|
+
*/
|
|
9
|
+
faviconColor?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `PLUGIN` that changes the favicon according to the player's state.
|
|
13
|
+
* @beta
|
|
14
|
+
* @remarks
|
|
15
|
+
* There are three states: stopped, playing and paused.
|
|
16
|
+
*/
|
|
6
17
|
export declare class Favicon extends CorePlugin {
|
|
7
|
-
private _container;
|
|
8
18
|
private oldIcon;
|
|
9
19
|
private playIcon;
|
|
10
20
|
private pauseIcon;
|
|
11
21
|
private stopIcon;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
12
25
|
get name(): string;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
13
29
|
get supportedVersion(): {
|
|
14
30
|
min: string;
|
|
15
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
16
35
|
constructor(core: Core);
|
|
17
|
-
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
18
39
|
bindEvents(): void;
|
|
19
40
|
private containerChanged;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
20
44
|
disable(): void;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
21
48
|
destroy(): void;
|
|
22
49
|
private createIcon;
|
|
23
50
|
private setPlayIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Favicon.d.ts","sourceRoot":"","sources":["../../../src/plugins/favicon/Favicon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,IAAI,EAAa,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Favicon.d.ts","sourceRoot":"","sources":["../../../src/plugins/favicon/Favicon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,IAAI,EAAa,MAAM,cAAc,CAAC;AAYtE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,OAAO,CAAC,OAAO,CAAc;IAE7B,OAAO,CAAC,QAAQ,CAA4B;IAE5C,OAAO,CAAC,SAAS,CAA4B;IAE7C,OAAO,CAAC,QAAQ,CAA4B;IAE5C;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED;;OAEG;gBACS,IAAI,EAAE,IAAI;IAStB;;OAEG;IACM,UAAU;IAInB,OAAO,CAAC,gBAAgB;IASxB;;OAEG;IACM,OAAO;IAKhB;;OAEG;IACM,OAAO;IAKhB,OAAO,CAAC,UAAU;IAmBlB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,UAAU;CAInB"}
|