@gcorevideo/player 2.19.14 → 2.20.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/assets/level-selector/list.ejs +2 -2
- package/dist/core.js +2 -2
- package/dist/index.css +780 -780
- package/dist/index.js +1720 -1473
- package/dist/player.d.ts +425 -94
- package/dist/plugins/index.css +1466 -1466
- package/dist/plugins/index.js +1501 -1252
- package/docs/api/player.bottomgear.getelement.md +56 -0
- package/docs/api/player.bottomgear.md +51 -0
- package/docs/api/player.bottomgear.setcontent.md +56 -0
- package/docs/api/player.clapprnerdstats.md +12 -259
- package/docs/api/player.dvrcontrols.md +5 -1
- package/docs/api/player.errorscreen.attributes.md +3 -0
- package/docs/api/player.errorscreen.bindevents.md +3 -0
- package/docs/api/player.errorscreen.container.md +3 -0
- package/docs/api/player.errorscreen.hide.md +3 -0
- package/docs/api/player.errorscreen.md +27 -0
- package/docs/api/player.errorscreen.name.md +3 -0
- package/docs/api/player.errorscreen.render.md +3 -0
- package/docs/api/player.errorscreen.show.md +3 -0
- package/docs/api/player.errorscreen.supportedversion.md +3 -0
- package/docs/api/player.errorscreen.template.md +3 -0
- package/docs/api/player.errorscreen.unbindevents.md +3 -0
- package/docs/api/player.gearevents.md +49 -0
- package/docs/api/{player.sourcecontroller.name.md → player.gearitemelement.md} +5 -3
- package/docs/api/{player.playbackrate.template.md → player.initeventdata.event.md} +3 -3
- package/docs/api/{player.playbackrate.updateplaybackrate.md → player.initeventdata.md} +15 -11
- package/docs/api/player.levelselector.md +9 -1
- package/docs/api/player.md +124 -4
- package/docs/api/{player.clapprnerdstats.render.md → player.mediacontrol.getrightpanel.md} +8 -4
- package/docs/api/player.mediacontrol.md +14 -0
- package/docs/api/player.mediacontrolelement.md +1 -1
- package/docs/api/player.pictureinpicture.md +9 -197
- package/docs/api/player.playbackrate.md +10 -314
- package/docs/api/player.sourcecontroller.md +0 -90
- package/docs/api/player.spinnerevents.md +49 -0
- package/docs/api/player.spinnerthreebounce._constructor_.md +3 -0
- package/docs/api/player.spinnerthreebounce.hide.md +5 -0
- package/docs/api/player.spinnerthreebounce.md +14 -95
- package/docs/api/player.spinnerthreebounce.show.md +6 -37
- package/docs/api/{player.playbackrate.onplay.md → player.stalleventdata.count.md} +5 -7
- package/docs/api/{player.playbackrate.name.md → player.stalleventdata.event.md} +3 -3
- package/docs/api/player.stalleventdata.md +112 -0
- package/docs/api/player.stalleventdata.time.md +13 -0
- package/docs/api/player.stalleventdata.total_ms.md +13 -0
- package/docs/api/{player.pluginsettings.md → player.starteventdata.event.md} +3 -5
- package/docs/api/{player.playbackrate.onrateselect.md → player.starteventdata.md} +15 -11
- package/docs/api/player.subtitles.hide.md +5 -0
- package/docs/api/player.subtitles.md +23 -275
- package/docs/api/player.subtitles.show.md +5 -0
- package/docs/api/{player.statistics._constructor_.md → player.telemetry._constructor_.md} +6 -3
- package/docs/api/player.telemetry.md +146 -0
- package/docs/api/{player.volumefade.name.md → player.telemetry.name.md} +4 -2
- package/docs/api/{player.sourcecontroller.supportedversion.md → player.telemetry.supportedversion.md} +4 -2
- package/docs/api/player.telemetryevent.md +89 -0
- package/docs/api/player.telemetryeventdata.md +15 -0
- package/docs/api/player.telemetrypluginsettings.md +57 -0
- package/docs/api/player.telemetrypluginsettings.send.md +13 -0
- package/docs/api/player.telemetryrecord.md +17 -0
- package/docs/api/player.volumefade.md +0 -93
- package/docs/api/{player.pictureinpicture.name.md → player.watcheventdata.event.md} +3 -3
- package/docs/api/{player.playbackrate.setselectedrate.md → player.watcheventdata.md} +15 -11
- package/lib/index.plugins.d.ts +2 -2
- package/lib/index.plugins.d.ts.map +1 -1
- package/lib/index.plugins.js +2 -2
- package/lib/playback/hls-playback/HlsPlayback.js +1 -1
- package/lib/plugins/bottom-gear/BottomGear.d.ts +20 -1
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +28 -7
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +38 -5
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +67 -21
- package/lib/plugins/dvr-controls/DvrControls.d.ts +5 -2
- package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.js +5 -2
- package/lib/plugins/error-screen/ErrorScreen.d.ts +5 -0
- package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
- package/lib/plugins/error-screen/ErrorScreen.js +5 -0
- package/lib/plugins/index.d.ts +2 -3
- package/lib/plugins/index.d.ts.map +1 -1
- package/lib/plugins/index.js +2 -3
- package/lib/plugins/level-selector/LevelSelector.d.ts +10 -3
- package/lib/plugins/level-selector/LevelSelector.d.ts.map +1 -1
- package/lib/plugins/level-selector/LevelSelector.js +20 -19
- package/lib/plugins/media-control/MediaControl.d.ts +6 -2
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +40 -39
- package/lib/plugins/picture-in-picture/PictureInPicture.d.ts +32 -4
- package/lib/plugins/picture-in-picture/PictureInPicture.d.ts.map +1 -1
- package/lib/plugins/picture-in-picture/PictureInPicture.js +30 -2
- package/lib/plugins/playback-rate/PlaybackRate.d.ts +47 -14
- package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
- package/lib/plugins/playback-rate/PlaybackRate.js +38 -9
- package/lib/plugins/source-controller/SourceController.d.ts +9 -0
- package/lib/plugins/source-controller/SourceController.d.ts.map +1 -1
- package/lib/plugins/source-controller/SourceController.js +11 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts +35 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts.map +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +46 -23
- package/lib/plugins/statistics/Statistics.d.ts +38 -3
- package/lib/plugins/statistics/Statistics.d.ts.map +1 -1
- package/lib/plugins/statistics/Statistics.js +51 -9
- package/lib/plugins/subtitles/Subtitles.d.ts +65 -16
- package/lib/plugins/subtitles/Subtitles.d.ts.map +1 -1
- package/lib/plugins/subtitles/Subtitles.js +131 -109
- package/lib/plugins/telemetry/Telemetry.d.ts +135 -0
- package/lib/plugins/telemetry/Telemetry.d.ts.map +1 -0
- package/lib/plugins/telemetry/Telemetry.js +180 -0
- package/lib/plugins/volume-fade/VolumeFade.d.ts +7 -1
- package/lib/plugins/volume-fade/VolumeFade.d.ts.map +1 -1
- package/lib/plugins/volume-fade/VolumeFade.js +8 -1
- package/package.json +1 -1
- package/src/index.plugins.ts +2 -2
- package/src/playback/hls-playback/HlsPlayback.ts +1 -1
- package/src/plugins/bottom-gear/BottomGear.ts +26 -4
- package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +240 -173
- package/src/plugins/dvr-controls/DvrControls.ts +5 -2
- package/src/plugins/error-screen/ErrorScreen.ts +5 -0
- package/src/plugins/index.ts +2 -3
- package/src/plugins/level-selector/LevelSelector.ts +22 -19
- package/src/plugins/level-selector/__tests__/LevelSelector.test.ts +47 -26
- package/src/plugins/level-selector/__tests__/__snapshots__/LevelSelector.test.ts.snap +18 -18
- package/src/plugins/media-control/MediaControl.ts +43 -41
- package/src/plugins/picture-in-picture/PictureInPicture.ts +35 -7
- package/src/plugins/playback-rate/PlaybackRate.ts +53 -24
- package/src/plugins/source-controller/SourceController.ts +11 -1
- package/src/plugins/source-controller/__tests__/SourceController.test.ts +1 -1
- package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +46 -22
- package/src/plugins/subtitles/Subtitles.ts +146 -155
- package/src/plugins/telemetry/Telemetry.ts +299 -0
- package/src/plugins/volume-fade/VolumeFade.ts +9 -2
- package/temp/player.api.json +3384 -4872
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.clapprnerdstats.attributes.md +0 -17
- package/docs/api/player.clapprnerdstats.bindevents.md +0 -18
- package/docs/api/player.clapprnerdstats.events.md +0 -18
- package/docs/api/player.clapprnerdstats.name.md +0 -14
- package/docs/api/player.clapprnerdstats.playerheight.md +0 -14
- package/docs/api/player.clapprnerdstats.playerwidth.md +0 -14
- package/docs/api/player.clapprnerdstats.statsboxelem.md +0 -14
- package/docs/api/player.clapprnerdstats.statsboxwidththreshold.md +0 -14
- package/docs/api/player.clapprnerdstats.supportedversion.md +0 -16
- package/docs/api/player.clapprnerdstats.template.md +0 -14
- package/docs/api/player.pictureinpicture.bindevents.md +0 -15
- package/docs/api/player.pictureinpicture.events.md +0 -13
- package/docs/api/player.pictureinpicture.exitpictureinpicture.md +0 -15
- package/docs/api/player.pictureinpicture.render.md +0 -15
- package/docs/api/player.pictureinpicture.requestpictureinpicture.md +0 -15
- package/docs/api/player.pictureinpicture.supportedversion.md +0 -13
- package/docs/api/player.pictureinpicture.togglepictureinpicture.md +0 -15
- package/docs/api/player.pictureinpicture.version.md +0 -11
- package/docs/api/player.pictureinpicture.videoelement.md +0 -11
- package/docs/api/player.playbackrate.attributes.md +0 -14
- package/docs/api/player.playbackrate.bindevents.md +0 -15
- package/docs/api/player.playbackrate.events.md +0 -15
- package/docs/api/player.playbackrate.gettitle.md +0 -15
- package/docs/api/player.playbackrate.goback.md +0 -15
- package/docs/api/player.playbackrate.highlightcurrentrate.md +0 -15
- package/docs/api/player.playbackrate.onfinishad.md +0 -15
- package/docs/api/player.playbackrate.onshowmenu.md +0 -15
- package/docs/api/player.playbackrate.onstartad.md +0 -15
- package/docs/api/player.playbackrate.onstop.md +0 -15
- package/docs/api/player.playbackrate.reload.md +0 -15
- package/docs/api/player.playbackrate.render.md +0 -15
- package/docs/api/player.playbackrate.supportedversion.md +0 -13
- package/docs/api/player.playbackrate.unbindevents.md +0 -15
- package/docs/api/player.sourcecontroller.version.md +0 -14
- package/docs/api/player.spinnerthreebounce.attributes.md +0 -14
- package/docs/api/player.spinnerthreebounce.name.md +0 -11
- package/docs/api/player.spinnerthreebounce.render.md +0 -15
- package/docs/api/player.spinnerthreebounce.supportedversion.md +0 -13
- package/docs/api/player.statistics.bindevents.md +0 -15
- package/docs/api/player.statistics.md +0 -141
- package/docs/api/player.statistics.name.md +0 -11
- package/docs/api/player.statistics.supportedversion.md +0 -13
- package/docs/api/player.subtitles.attributes.md +0 -14
- package/docs/api/player.subtitles.bindevents.md +0 -15
- package/docs/api/player.subtitles.buttonelement.md +0 -15
- package/docs/api/player.subtitles.events.md +0 -14
- package/docs/api/player.subtitles.levelelement.md +0 -51
- package/docs/api/player.subtitles.name.md +0 -11
- package/docs/api/player.subtitles.preselectedlanguage.md +0 -11
- package/docs/api/player.subtitles.reload.md +0 -15
- package/docs/api/player.subtitles.render.md +0 -15
- package/docs/api/player.subtitles.selectsubtitles.md +0 -15
- package/docs/api/player.subtitles.startlevelswitch.md +0 -15
- package/docs/api/player.subtitles.stoplevelswitch.md +0 -15
- package/docs/api/player.subtitles.supportedversion.md +0 -13
- package/docs/api/player.subtitles.template.md +0 -11
- package/docs/api/player.subtitles.templatestring.md +0 -11
- package/docs/api/player.subtitles.unbindevents.md +0 -15
- package/docs/api/player.subtitles.version.md +0 -11
- package/docs/api/player.volumefade.bindevents.md +0 -18
- package/docs/api/player.volumefade.unbindevents.md +0 -18
- package/src/plugins/statistics/Statistics.ts +0 -207
- /package/src/plugins/{statistics → telemetry}/Statistics copy.xts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [GearEvents](./player.gearevents.md)
|
|
4
|
+
|
|
5
|
+
## GearEvents enum
|
|
6
|
+
|
|
7
|
+
Custom events emitted by the plugin
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare enum GearEvents
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Enumeration Members
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Member
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Value
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
MEDIACONTROL\_GEAR\_RENDERED
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
`"mediacontrol:gear:rendered"`
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
Emitted when the gear menu is rendered
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
@@ -1,14 +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) > [GearItemElement](./player.gearitemelement.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## GearItemElement type
|
|
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
|
+
An element inside the gear menu
|
|
11
|
+
|
|
10
12
|
**Signature:**
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
|
|
15
|
+
export type GearItemElement = 'quality' | 'rate' | 'nerd';
|
|
14
16
|
```
|
|
@@ -1,11 +1,11 @@
|
|
|
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) > [InitEventData](./player.initeventdata.md) > [event](./player.initeventdata.event.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## InitEventData.event property
|
|
6
6
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
|
|
10
|
+
event: TelemetryEvent.Init;
|
|
11
11
|
```
|
|
@@ -1,20 +1,25 @@
|
|
|
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) > [InitEventData](./player.initeventdata.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## InitEventData interface
|
|
6
6
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
|
|
10
|
+
export interface InitEventData
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Properties
|
|
14
14
|
|
|
15
15
|
<table><thead><tr><th>
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Property
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
</th><th>
|
|
21
|
+
|
|
22
|
+
Modifiers
|
|
18
23
|
|
|
19
24
|
|
|
20
25
|
</th><th>
|
|
@@ -30,12 +35,15 @@ Description
|
|
|
30
35
|
</th></tr></thead>
|
|
31
36
|
<tbody><tr><td>
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
[event](./player.initeventdata.event.md)
|
|
34
39
|
|
|
35
40
|
|
|
36
41
|
</td><td>
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
[TelemetryEvent.Init](./player.telemetryevent.md)
|
|
39
47
|
|
|
40
48
|
|
|
41
49
|
</td><td>
|
|
@@ -43,7 +51,3 @@ string
|
|
|
43
51
|
|
|
44
52
|
</td></tr>
|
|
45
53
|
</tbody></table>
|
|
46
|
-
**Returns:**
|
|
47
|
-
|
|
48
|
-
void
|
|
49
|
-
|
|
@@ -18,7 +18,15 @@ export declare class LevelSelector extends UICorePlugin
|
|
|
18
18
|
|
|
19
19
|
## Remarks
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Depends on:
|
|
22
|
+
|
|
23
|
+
- [MediaControl](./player.mediacontrol.md)
|
|
24
|
+
|
|
25
|
+
- [BottomGear](./player.bottomgear.md)
|
|
26
|
+
|
|
27
|
+
The plugin is rendered as an item in the gear menu.
|
|
28
|
+
|
|
29
|
+
When clicked, it shows a list of quality levels to choose from.
|
|
22
30
|
|
|
23
31
|
Configuration options:
|
|
24
32
|
|
package/docs/api/player.md
CHANGED
|
@@ -63,7 +63,7 @@ Description
|
|
|
63
63
|
|
|
64
64
|
</td><td>
|
|
65
65
|
|
|
66
|
-
**_(BETA)_**
|
|
66
|
+
**_(BETA)_** Displays useful network-related statistics.
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
</td></tr>
|
|
@@ -132,6 +132,10 @@ Description
|
|
|
132
132
|
|
|
133
133
|
</td><td>
|
|
134
134
|
|
|
135
|
+
**_(BETA)_** Displays a descriptive error in the overlay on top of the player.
|
|
136
|
+
|
|
137
|
+
TODO
|
|
138
|
+
|
|
135
139
|
|
|
136
140
|
</td></tr>
|
|
137
141
|
<tr><td>
|
|
@@ -199,6 +203,8 @@ Description
|
|
|
199
203
|
|
|
200
204
|
</td><td>
|
|
201
205
|
|
|
206
|
+
**_(BETA)_** Enables picture in picture mode.
|
|
207
|
+
|
|
202
208
|
|
|
203
209
|
</td></tr>
|
|
204
210
|
<tr><td>
|
|
@@ -208,6 +214,8 @@ Description
|
|
|
208
214
|
|
|
209
215
|
</td><td>
|
|
210
216
|
|
|
217
|
+
**_(BETA)_** Allows changing the playback speed of the video.
|
|
218
|
+
|
|
211
219
|
|
|
212
220
|
</td></tr>
|
|
213
221
|
<tr><td>
|
|
@@ -277,24 +285,30 @@ Description
|
|
|
277
285
|
|
|
278
286
|
</td><td>
|
|
279
287
|
|
|
288
|
+
**_(BETA)_** Shows a pending operation indicator when playback is buffering or in other appropriate cases
|
|
289
|
+
|
|
280
290
|
|
|
281
291
|
</td></tr>
|
|
282
292
|
<tr><td>
|
|
283
293
|
|
|
284
|
-
[
|
|
294
|
+
[Subtitles](./player.subtitles.md)
|
|
285
295
|
|
|
286
296
|
|
|
287
297
|
</td><td>
|
|
288
298
|
|
|
299
|
+
**_(BETA)_** A [media control](./player.mediacontrol.md) plugin that provides a UI to select the subtitles when available.
|
|
300
|
+
|
|
289
301
|
|
|
290
302
|
</td></tr>
|
|
291
303
|
<tr><td>
|
|
292
304
|
|
|
293
|
-
[
|
|
305
|
+
[Telemetry](./player.telemetry.md)
|
|
294
306
|
|
|
295
307
|
|
|
296
308
|
</td><td>
|
|
297
309
|
|
|
310
|
+
**_(BETA)_** Collects and reports the performance statistics.
|
|
311
|
+
|
|
298
312
|
|
|
299
313
|
</td></tr>
|
|
300
314
|
<tr><td>
|
|
@@ -334,6 +348,17 @@ Description
|
|
|
334
348
|
</th></tr></thead>
|
|
335
349
|
<tbody><tr><td>
|
|
336
350
|
|
|
351
|
+
[GearEvents](./player.gearevents.md)
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
</td><td>
|
|
355
|
+
|
|
356
|
+
Custom events emitted by the plugin
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
</td></tr>
|
|
360
|
+
<tr><td>
|
|
361
|
+
|
|
337
362
|
[PlaybackErrorCode](./player.playbackerrorcode.md)
|
|
338
363
|
|
|
339
364
|
|
|
@@ -353,6 +378,28 @@ Description
|
|
|
353
378
|
**_(BETA)_** A top-level event on the player object
|
|
354
379
|
|
|
355
380
|
|
|
381
|
+
</td></tr>
|
|
382
|
+
<tr><td>
|
|
383
|
+
|
|
384
|
+
[SpinnerEvents](./player.spinnerevents.md)
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
</td><td>
|
|
388
|
+
|
|
389
|
+
Custom events emitted by the plugin
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
</td></tr>
|
|
393
|
+
<tr><td>
|
|
394
|
+
|
|
395
|
+
[TelemetryEvent](./player.telemetryevent.md)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
</td><td>
|
|
399
|
+
|
|
400
|
+
Telemetry event type
|
|
401
|
+
|
|
402
|
+
|
|
356
403
|
</td></tr>
|
|
357
404
|
<tr><td>
|
|
358
405
|
|
|
@@ -406,6 +453,15 @@ Description
|
|
|
406
453
|
</th></tr></thead>
|
|
407
454
|
<tbody><tr><td>
|
|
408
455
|
|
|
456
|
+
[InitEventData](./player.initeventdata.md)
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
</td><td>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
</td></tr>
|
|
463
|
+
<tr><td>
|
|
464
|
+
|
|
409
465
|
[PlaybackError](./player.playbackerror.md)
|
|
410
466
|
|
|
411
467
|
|
|
@@ -447,6 +503,37 @@ Description
|
|
|
447
503
|
**_(BETA)_** A level of quality within a media source.
|
|
448
504
|
|
|
449
505
|
|
|
506
|
+
</td></tr>
|
|
507
|
+
<tr><td>
|
|
508
|
+
|
|
509
|
+
[StallEventData](./player.stalleventdata.md)
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
</td><td>
|
|
513
|
+
|
|
514
|
+
Playback stall event data
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
</td></tr>
|
|
518
|
+
<tr><td>
|
|
519
|
+
|
|
520
|
+
[StartEventData](./player.starteventdata.md)
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
</td><td>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
</td></tr>
|
|
527
|
+
<tr><td>
|
|
528
|
+
|
|
529
|
+
[TelemetryPluginSettings](./player.telemetrypluginsettings.md)
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
</td><td>
|
|
533
|
+
|
|
534
|
+
Plugin settings
|
|
535
|
+
|
|
536
|
+
|
|
450
537
|
</td></tr>
|
|
451
538
|
<tr><td>
|
|
452
539
|
|
|
@@ -458,6 +545,15 @@ Description
|
|
|
458
545
|
**_(BETA)_** Current playback time and total duration of the media.
|
|
459
546
|
|
|
460
547
|
|
|
548
|
+
</td></tr>
|
|
549
|
+
<tr><td>
|
|
550
|
+
|
|
551
|
+
[WatchEventData](./player.watcheventdata.md)
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
</td><td>
|
|
555
|
+
|
|
556
|
+
|
|
461
557
|
</td></tr>
|
|
462
558
|
</tbody></table>
|
|
463
559
|
|
|
@@ -508,6 +604,17 @@ Description
|
|
|
508
604
|
**_(BETA)_** Levels of severity of errors. Non-fatal errors usually can be ignored.
|
|
509
605
|
|
|
510
606
|
|
|
607
|
+
</td></tr>
|
|
608
|
+
<tr><td>
|
|
609
|
+
|
|
610
|
+
[GearItemElement](./player.gearitemelement.md)
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
</td><td>
|
|
614
|
+
|
|
615
|
+
**_(BETA)_** An element inside the gear menu
|
|
616
|
+
|
|
617
|
+
|
|
511
618
|
</td></tr>
|
|
512
619
|
<tr><td>
|
|
513
620
|
|
|
@@ -643,11 +750,24 @@ Description
|
|
|
643
750
|
</td></tr>
|
|
644
751
|
<tr><td>
|
|
645
752
|
|
|
646
|
-
[
|
|
753
|
+
[TelemetryEventData](./player.telemetryeventdata.md)
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
</td><td>
|
|
757
|
+
|
|
758
|
+
Telemetry event data
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
</td></tr>
|
|
762
|
+
<tr><td>
|
|
763
|
+
|
|
764
|
+
[TelemetryRecord](./player.telemetryrecord.md)
|
|
647
765
|
|
|
648
766
|
|
|
649
767
|
</td><td>
|
|
650
768
|
|
|
769
|
+
Telemetry record
|
|
770
|
+
|
|
651
771
|
|
|
652
772
|
</td></tr>
|
|
653
773
|
<tr><td>
|
|
@@ -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) > [getRightPanel](./player.mediacontrol.getrightpanel.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## MediaControl.getRightPanel() 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 right panel area to append custom elements to
|
|
11
|
+
|
|
10
12
|
**Signature:**
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
|
|
15
|
+
getRightPanel(): any;
|
|
14
16
|
```
|
|
15
17
|
**Returns:**
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
any
|
|
20
|
+
|
|
21
|
+
ZeptoSelector of the right panel element
|
|
18
22
|
|
|
@@ -217,6 +217,20 @@ Description
|
|
|
217
217
|
**_(BETA)_** Get a media control element DOM node
|
|
218
218
|
|
|
219
219
|
|
|
220
|
+
</td></tr>
|
|
221
|
+
<tr><td>
|
|
222
|
+
|
|
223
|
+
[getRightPanel()](./player.mediacontrol.getrightpanel.md)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
</td><td>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
</td><td>
|
|
230
|
+
|
|
231
|
+
**_(BETA)_** Get the right panel area to append custom elements to
|
|
232
|
+
|
|
233
|
+
|
|
220
234
|
</td></tr>
|
|
221
235
|
<tr><td>
|
|
222
236
|
|
|
@@ -12,5 +12,5 @@ Media control elements, mount points for additional plugins
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
export type MediaControlElement = 'bottomGear' | 'clipText' | 'pip' | 'playbackRate' | 'seekBarContainer';
|
|
15
|
+
export type MediaControlElement = 'bottomGear' | 'clipText' | 'gear' | 'pip' | 'playbackRate' | 'seekBarContainer' | 'subtitlesSelector';
|
|
16
16
|
```
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## PictureInPicture class
|
|
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
|
+
Enables picture in picture mode.
|
|
11
|
+
|
|
7
12
|
**Signature:**
|
|
8
13
|
|
|
9
14
|
```typescript
|
|
@@ -11,204 +16,11 @@ export declare class PictureInPicture extends UICorePlugin
|
|
|
11
16
|
```
|
|
12
17
|
**Extends:** UICorePlugin
|
|
13
18
|
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
<table><thead><tr><th>
|
|
17
|
-
|
|
18
|
-
Property
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</th><th>
|
|
22
|
-
|
|
23
|
-
Modifiers
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th><th>
|
|
32
|
-
|
|
33
|
-
Description
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</th></tr></thead>
|
|
37
|
-
<tbody><tr><td>
|
|
38
|
-
|
|
39
|
-
[events](./player.pictureinpicture.events.md)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
`readonly`
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</td><td>
|
|
48
|
-
|
|
49
|
-
{ 'click button': string; }
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td><td>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</td></tr>
|
|
56
|
-
<tr><td>
|
|
57
|
-
|
|
58
|
-
[name](./player.pictureinpicture.name.md)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</td><td>
|
|
62
|
-
|
|
63
|
-
`readonly`
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</td><td>
|
|
67
|
-
|
|
68
|
-
string
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</td></tr>
|
|
75
|
-
<tr><td>
|
|
76
|
-
|
|
77
|
-
[supportedVersion](./player.pictureinpicture.supportedversion.md)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</td><td>
|
|
81
|
-
|
|
82
|
-
`readonly`
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</td><td>
|
|
86
|
-
|
|
87
|
-
{ min: string; }
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</td><td>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
</td></tr>
|
|
94
|
-
<tr><td>
|
|
95
|
-
|
|
96
|
-
[version](./player.pictureinpicture.version.md)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</td><td>
|
|
100
|
-
|
|
101
|
-
`static`
|
|
102
|
-
|
|
103
|
-
`readonly`
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
</td><td>
|
|
107
|
-
|
|
108
|
-
string
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</td><td>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</td></tr>
|
|
115
|
-
<tr><td>
|
|
116
|
-
|
|
117
|
-
[videoElement](./player.pictureinpicture.videoelement.md)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td><td>
|
|
121
|
-
|
|
122
|
-
`readonly`
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</td><td>
|
|
126
|
-
|
|
127
|
-
any
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
</td><td>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
</td></tr>
|
|
134
|
-
</tbody></table>
|
|
135
|
-
|
|
136
|
-
## Methods
|
|
137
|
-
|
|
138
|
-
<table><thead><tr><th>
|
|
139
|
-
|
|
140
|
-
Method
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
</th><th>
|
|
144
|
-
|
|
145
|
-
Modifiers
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</th><th>
|
|
149
|
-
|
|
150
|
-
Description
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
</th></tr></thead>
|
|
154
|
-
<tbody><tr><td>
|
|
155
|
-
|
|
156
|
-
[bindEvents()](./player.pictureinpicture.bindevents.md)
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</td><td>
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
</td><td>
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
</td></tr>
|
|
166
|
-
<tr><td>
|
|
167
|
-
|
|
168
|
-
[exitPictureInPicture()](./player.pictureinpicture.exitpictureinpicture.md)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
</td><td>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</td><td>
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
</td></tr>
|
|
178
|
-
<tr><td>
|
|
179
|
-
|
|
180
|
-
[render()](./player.pictureinpicture.render.md)
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
</td><td>
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
</td><td>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
</td></tr>
|
|
190
|
-
<tr><td>
|
|
191
|
-
|
|
192
|
-
[requestPictureInPicture()](./player.pictureinpicture.requestpictureinpicture.md)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
</td><td>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
</td><td>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
</td></tr>
|
|
202
|
-
<tr><td>
|
|
203
|
-
|
|
204
|
-
[togglePictureInPicture()](./player.pictureinpicture.togglepictureinpicture.md)
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
</td><td>
|
|
19
|
+
## Remarks
|
|
208
20
|
|
|
21
|
+
Depends on:
|
|
209
22
|
|
|
210
|
-
|
|
23
|
+
- [MediaControl](./player.mediacontrol.md)
|
|
211
24
|
|
|
25
|
+
It renders a button to toggle picture in picture mode in the media control UI.
|
|
212
26
|
|
|
213
|
-
</td></tr>
|
|
214
|
-
</tbody></table>
|