@gcorevideo/player 2.20.9 → 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/assets/dvr-controls/dvr_controls.scss +0 -2
- package/dist/core.js +5 -5
- package/dist/index.css +1521 -1524
- package/dist/index.js +101 -106
- package/dist/player.d.ts +141 -100
- package/dist/plugins/index.css +1376 -1379
- package/dist/plugins/index.js +96 -102
- package/docs/api/player.audioselector.md +1 -1
- package/docs/api/player.bigmutebutton.md +1 -1
- package/docs/api/player.bottomgear.md +1 -1
- package/docs/api/player.clapprnerdstats.md +1 -1
- package/docs/api/player.clapprstats.md +1 -1
- package/docs/api/player.clicktopause.md +1 -1
- package/docs/api/player.clipsplugin.md +1 -1
- package/docs/api/player.containerpluginconstructor.md +3 -5
- package/docs/api/player.containersize.md +0 -3
- package/docs/api/player.contextmenu.md +1 -1
- package/docs/api/player.contextmenupluginsettings.md +1 -1
- package/docs/api/player.corepluginconstructor.md +3 -5
- package/docs/api/player.dashsettings.md +0 -3
- package/docs/api/player.dvrcontrols.md +2 -35
- package/docs/api/player.errorlevel.md +0 -3
- package/docs/api/player.errorscreen.md +1 -1
- package/docs/api/player.favicon.md +4 -174
- package/docs/api/{player.favicon.disable.md → player.faviconpluginsettings.faviconcolor.md} +5 -7
- package/docs/api/{player.dvrcontrols._constructor_.md → player.faviconpluginsettings.md} +17 -8
- package/docs/api/player.googleanalytics.md +1 -1
- package/docs/api/player.langtag.md +0 -3
- package/docs/api/player.levelselector.md +1 -1
- package/docs/api/player.logo.md +1 -1
- package/docs/api/player.md +82 -82
- package/docs/api/{player.favicon.configure.md → player.mediacontrol.getcenterpanel.md} +4 -4
- package/docs/api/{player.favicon.destroy.md → player.mediacontrol.getleftpanel.md} +8 -4
- package/docs/api/player.mediacontrol.md +30 -2
- package/docs/api/player.multicamera.md +1 -1
- package/docs/api/player.pictureinpicture.md +1 -1
- package/docs/api/player.playbackerror.code.md +0 -3
- package/docs/api/player.playbackerror.description.md +0 -3
- package/docs/api/player.playbackerror.level.md +0 -3
- package/docs/api/player.playbackerror.md +8 -11
- package/docs/api/player.playbackerror.message.md +0 -3
- package/docs/api/player.playbackerror.origin.md +0 -3
- package/docs/api/player.playbackerror.scope.md +0 -3
- package/docs/api/player.playbackerror.ui.md +1 -3
- package/docs/api/player.playbackerrorcode.md +3 -6
- package/docs/api/player.playbackmodule.md +0 -3
- package/docs/api/player.playbackrate.md +1 -1
- package/docs/api/player.playbacktype.md +1 -4
- package/docs/api/player.player._constructor_.md +0 -3
- package/docs/api/player.player.attachto.md +0 -3
- package/docs/api/player.player.configure.md +0 -3
- package/docs/api/player.player.destroy.md +0 -3
- package/docs/api/player.player.getcurrenttime.md +0 -3
- package/docs/api/player.player.getduration.md +0 -3
- package/docs/api/player.player.getvolume.md +0 -3
- package/docs/api/player.player.isdvrenabled.md +0 -3
- package/docs/api/player.player.isdvrinuse.md +0 -3
- package/docs/api/player.player.ismuted.md +0 -3
- package/docs/api/player.player.isplaying.md +0 -3
- package/docs/api/player.player.md +25 -28
- package/docs/api/player.player.mute.md +0 -3
- package/docs/api/player.player.off.md +0 -3
- package/docs/api/player.player.on.md +0 -3
- package/docs/api/player.player.pause.md +0 -3
- package/docs/api/player.player.play.md +0 -3
- package/docs/api/player.player.registerplugin.md +0 -3
- package/docs/api/player.player.resize.md +0 -3
- package/docs/api/player.player.seek.md +0 -3
- package/docs/api/player.player.setvolume.md +0 -3
- package/docs/api/player.player.stop.md +0 -3
- package/docs/api/player.player.unmute.md +0 -3
- package/docs/api/player.player.unregisterplugin.md +14 -7
- package/docs/api/player.playercomponenttype.md +0 -3
- package/docs/api/player.playerconfig.autoplay.md +0 -3
- package/docs/api/player.playerconfig.dash.md +0 -3
- package/docs/api/player.playerconfig.debug.md +0 -3
- package/docs/api/player.playerconfig.language.md +0 -3
- package/docs/api/player.playerconfig.loop.md +0 -3
- package/docs/api/player.playerconfig.md +10 -13
- package/docs/api/player.playerconfig.mute.md +0 -3
- package/docs/api/player.playerconfig.playbacktype.md +0 -3
- package/docs/api/player.playerconfig.prioritytransport.md +0 -3
- package/docs/api/player.playerconfig.sources.md +0 -3
- package/docs/api/player.playerconfig.strings.md +0 -3
- package/docs/api/player.playerdebugsettings.md +0 -3
- package/docs/api/player.playerdebugtag.md +0 -3
- package/docs/api/player.playerevent.md +11 -14
- package/docs/api/player.playereventhandler.md +0 -3
- package/docs/api/player.playereventparams.md +0 -3
- package/docs/api/player.playermediasource.md +0 -3
- package/docs/api/player.playermediasourcedesc.md +2 -5
- package/docs/api/player.playermediasourcedesc.mimetype.md +0 -3
- package/docs/api/player.playermediasourcedesc.source.md +0 -3
- package/docs/api/player.playerplugin.md +0 -4
- package/docs/api/player.playerpluginconstructor.md +0 -3
- package/docs/api/player.poster.md +1 -1
- package/docs/api/player.qualitylevel.bitrate.md +0 -3
- package/docs/api/player.qualitylevel.height.md +0 -3
- package/docs/api/player.qualitylevel.level.md +0 -3
- package/docs/api/player.qualitylevel.md +4 -7
- package/docs/api/player.qualitylevel.width.md +0 -3
- package/docs/api/player.seektime.md +1 -1
- package/docs/api/player.share.md +1 -1
- package/docs/api/player.skiptime.md +1 -1
- package/docs/api/player.sourcecontroller.md +1 -1
- package/docs/api/player.spinnerthreebounce.md +1 -1
- package/docs/api/player.subtitles.md +1 -1
- package/docs/api/player.telemetry.md +1 -1
- package/docs/api/player.thumbnails.md +1 -1
- package/docs/api/player.timeposition.current.md +0 -3
- package/docs/api/player.timeposition.md +2 -5
- package/docs/api/player.timeposition.total.md +0 -3
- package/docs/api/player.timevalue.md +0 -3
- package/docs/api/player.translationkey.md +0 -3
- package/docs/api/player.translationsettings.md +0 -3
- package/docs/api/player.transportpreference.md +2 -7
- package/docs/api/player.volumefade.md +1 -1
- package/lib/Player.d.ts +5 -5
- package/lib/Player.js +2 -2
- package/lib/index.d.ts +18 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -1
- package/lib/playback.types.d.ts +8 -7
- package/lib/playback.types.d.ts.map +1 -1
- package/lib/playback.types.js +1 -1
- package/lib/plugins/audio-selector/AudioSelector.d.ts +1 -1
- package/lib/plugins/audio-selector/AudioSelector.js +1 -1
- 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 +1 -2
- package/lib/plugins/bottom-gear/BottomGear.d.ts +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +1 -1
- package/lib/plugins/clappr-stats/ClapprStats.d.ts +1 -1
- package/lib/plugins/clappr-stats/ClapprStats.js +1 -1
- package/lib/plugins/click-to-pause/ClickToPause.d.ts +1 -1
- package/lib/plugins/click-to-pause/ClickToPause.js +1 -1
- package/lib/plugins/clips/Clips.d.ts +1 -1
- package/lib/plugins/clips/Clips.js +1 -1
- package/lib/plugins/context-menu/ContextMenu.d.ts +2 -2
- package/lib/plugins/context-menu/ContextMenu.js +1 -1
- package/lib/plugins/dvr-controls/DvrControls.d.ts +6 -4
- package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.js +28 -36
- package/lib/plugins/error-screen/ErrorScreen.d.ts +1 -18
- package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
- package/lib/plugins/error-screen/ErrorScreen.js +1 -2
- 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/lib/plugins/google-analytics/GoogleAnalytics.d.ts +1 -1
- package/lib/plugins/google-analytics/GoogleAnalytics.js +1 -1
- package/lib/plugins/level-selector/LevelSelector.d.ts +1 -1
- package/lib/plugins/level-selector/LevelSelector.js +1 -1
- package/lib/plugins/logo/Logo.d.ts +1 -1
- package/lib/plugins/logo/Logo.js +1 -1
- package/lib/plugins/media-control/MediaControl.d.ts +8 -2
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +15 -3
- package/lib/plugins/multi-camera/MultiCamera.d.ts +1 -1
- package/lib/plugins/multi-camera/MultiCamera.js +1 -1
- package/lib/plugins/picture-in-picture/PictureInPicture.d.ts +1 -1
- package/lib/plugins/picture-in-picture/PictureInPicture.js +1 -1
- package/lib/plugins/playback-rate/PlaybackRate.d.ts +1 -1
- package/lib/plugins/playback-rate/PlaybackRate.js +1 -1
- package/lib/plugins/poster/Poster.d.ts +1 -1
- package/lib/plugins/poster/Poster.js +1 -1
- package/lib/plugins/seek-time/SeekTime.d.ts +1 -1
- package/lib/plugins/seek-time/SeekTime.js +1 -1
- package/lib/plugins/share/Share.d.ts +1 -1
- package/lib/plugins/share/Share.js +1 -1
- package/lib/plugins/skip-time/SkipTime.d.ts +1 -1
- package/lib/plugins/skip-time/SkipTime.js +1 -1
- package/lib/plugins/source-controller/SourceController.d.ts +1 -1
- package/lib/plugins/source-controller/SourceController.js +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +1 -1
- package/lib/plugins/subtitles/Subtitles.d.ts +1 -1
- package/lib/plugins/subtitles/Subtitles.js +1 -1
- package/lib/plugins/telemetry/Telemetry.d.ts +1 -1
- package/lib/plugins/telemetry/Telemetry.js +1 -1
- package/lib/plugins/thumbnails/Thumbnails.d.ts +1 -1
- package/lib/plugins/thumbnails/Thumbnails.js +1 -1
- package/lib/plugins/volume-fade/VolumeFade.d.ts +1 -1
- package/lib/plugins/volume-fade/VolumeFade.js +1 -1
- package/lib/testUtils.d.ts +11 -2
- package/lib/testUtils.d.ts.map +1 -1
- package/lib/testUtils.js +22 -3
- package/lib/types.d.ts +20 -25
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -1
- package/package.json +1 -1
- package/src/Player.ts +5 -5
- package/src/index.ts +18 -1
- package/src/playback.types.ts +8 -7
- package/src/plugins/audio-selector/AudioSelector.ts +1 -1
- package/src/plugins/big-mute-button/BigMuteButton.ts +1 -2
- package/src/plugins/bottom-gear/BottomGear.ts +1 -1
- package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +1 -1
- package/src/plugins/clappr-stats/ClapprStats.ts +1 -1
- package/src/plugins/click-to-pause/ClickToPause.ts +1 -1
- package/src/plugins/clips/Clips.ts +1 -1
- package/src/plugins/context-menu/ContextMenu.ts +2 -2
- package/src/plugins/dvr-controls/DvrControls.ts +33 -45
- package/src/plugins/dvr-controls/__tests__/DvrControls.test.ts +91 -0
- package/src/plugins/dvr-controls/__tests__/__snapshots__/DvrControls.test.ts.snap +43 -0
- package/src/plugins/error-screen/ErrorScreen.ts +3 -22
- package/src/plugins/favicon/Favicon.ts +38 -41
- package/src/plugins/google-analytics/GoogleAnalytics.ts +1 -1
- package/src/plugins/level-selector/LevelSelector.ts +1 -1
- package/src/plugins/logo/Logo.ts +1 -1
- package/src/plugins/media-control/MediaControl.ts +17 -3
- package/src/plugins/multi-camera/MultiCamera.ts +1 -1
- package/src/plugins/picture-in-picture/PictureInPicture.ts +1 -1
- package/src/plugins/playback-rate/PlaybackRate.ts +1 -1
- package/src/plugins/poster/Poster.ts +1 -1
- package/src/plugins/seek-time/SeekTime.ts +1 -1
- package/src/plugins/share/Share.ts +1 -1
- package/src/plugins/skip-time/SkipTime.ts +1 -1
- package/src/plugins/source-controller/SourceController.ts +1 -1
- package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +1 -1
- package/src/plugins/subtitles/Subtitles.ts +1 -1
- package/src/plugins/telemetry/Telemetry.ts +1 -1
- package/src/plugins/thumbnails/Thumbnails.ts +1 -1
- package/src/plugins/volume-fade/VolumeFade.ts +1 -1
- package/src/testUtils.ts +28 -4
- package/src/types.ts +20 -26
- package/temp/player.api.json +274 -455
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.errordesc.md +0 -28
- package/docs/api/player.favicon._constructor_.md +0 -50
- package/docs/api/player.favicon.bindevents.md +0 -18
- package/docs/api/player.favicon.name.md +0 -14
- package/docs/api/player.favicon.supportedversion.md +0 -16
- package/docs/api/player.mediatransport.md +0 -16
package/docs/api/player.md
CHANGED
|
@@ -8,7 +8,27 @@ 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
|
+
|
|
13
|
+
Various plugins (marked with `PLUGIN` keyword) are available to extend the player with additional features.
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { Player, MediaControl, ErrorScreen } from '@gcorevideo/player'
|
|
20
|
+
|
|
21
|
+
Player.registerPlugin(MediaControl)
|
|
22
|
+
Player.registerPlugin(ErrorScreen)
|
|
23
|
+
|
|
24
|
+
const player = new Player({
|
|
25
|
+
autoPlay: true,
|
|
26
|
+
mute: true,
|
|
27
|
+
sources: [{ source: 'https://example.com/a.mpd', mimeType: 'application/dash+xml' }],
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
player.attachTo(document.getElementById('container'))
|
|
31
|
+
```
|
|
12
32
|
|
|
13
33
|
## Classes
|
|
14
34
|
|
|
@@ -30,7 +50,7 @@ Description
|
|
|
30
50
|
|
|
31
51
|
</td><td>
|
|
32
52
|
|
|
33
|
-
**_(BETA)_**
|
|
53
|
+
**_(BETA)_** `PLUGIN` that adds an audio track selector to the media control UI.
|
|
34
54
|
|
|
35
55
|
|
|
36
56
|
</td></tr>
|
|
@@ -41,7 +61,7 @@ Description
|
|
|
41
61
|
|
|
42
62
|
</td><td>
|
|
43
63
|
|
|
44
|
-
**_(BETA)_**
|
|
64
|
+
**_(BETA)_** `PLUGIN` that displays a big mute button over the video when it's muted. Once pressed, it unmutes the video.
|
|
45
65
|
|
|
46
66
|
|
|
47
67
|
</td></tr>
|
|
@@ -52,7 +72,7 @@ Description
|
|
|
52
72
|
|
|
53
73
|
</td><td>
|
|
54
74
|
|
|
55
|
-
**_(BETA)_**
|
|
75
|
+
**_(BETA)_** `PLUGIN` that adds the gear button with an extra options menu on the right side of the [media control](./player.mediacontrol.md) UI
|
|
56
76
|
|
|
57
77
|
|
|
58
78
|
</td></tr>
|
|
@@ -63,7 +83,7 @@ Description
|
|
|
63
83
|
|
|
64
84
|
</td><td>
|
|
65
85
|
|
|
66
|
-
**_(BETA)_** PLUGIN that displays useful network-related statistics.
|
|
86
|
+
**_(BETA)_** `PLUGIN` that displays useful network-related statistics.
|
|
67
87
|
|
|
68
88
|
|
|
69
89
|
</td></tr>
|
|
@@ -74,7 +94,7 @@ Description
|
|
|
74
94
|
|
|
75
95
|
</td><td>
|
|
76
96
|
|
|
77
|
-
**_(BETA)_**
|
|
97
|
+
**_(BETA)_** `PLUGIN` that collects useful statistics about playback performance.
|
|
78
98
|
|
|
79
99
|
|
|
80
100
|
</td></tr>
|
|
@@ -85,7 +105,7 @@ Description
|
|
|
85
105
|
|
|
86
106
|
</td><td>
|
|
87
107
|
|
|
88
|
-
**_(BETA)_**
|
|
108
|
+
**_(BETA)_** `PLUGIN` that adds a behavior of toggling the playback state on click over the container
|
|
89
109
|
|
|
90
110
|
|
|
91
111
|
</td></tr>
|
|
@@ -96,7 +116,7 @@ Description
|
|
|
96
116
|
|
|
97
117
|
</td><td>
|
|
98
118
|
|
|
99
|
-
**_(BETA)_** PLUGIN that shows text over the seekbar to indicate the current clip.
|
|
119
|
+
**_(BETA)_** `PLUGIN` that shows text over the seekbar to indicate the current clip.
|
|
100
120
|
|
|
101
121
|
|
|
102
122
|
</td></tr>
|
|
@@ -107,7 +127,7 @@ Description
|
|
|
107
127
|
|
|
108
128
|
</td><td>
|
|
109
129
|
|
|
110
|
-
**_(BETA)_**
|
|
130
|
+
**_(BETA)_** `PLUGIN` that displays a small context menu when clicked on the player container.
|
|
111
131
|
|
|
112
132
|
|
|
113
133
|
</td></tr>
|
|
@@ -118,7 +138,7 @@ Description
|
|
|
118
138
|
|
|
119
139
|
</td><td>
|
|
120
140
|
|
|
121
|
-
**_(BETA)_**
|
|
141
|
+
**_(BETA)_** `PLUGIN` that adds the DVR controls to the media control UI
|
|
122
142
|
|
|
123
143
|
|
|
124
144
|
</td></tr>
|
|
@@ -129,7 +149,7 @@ Description
|
|
|
129
149
|
|
|
130
150
|
</td><td>
|
|
131
151
|
|
|
132
|
-
**_(BETA)_** PLUGIN that displays errors nicely in the overlay on top of the player.
|
|
152
|
+
**_(BETA)_** `PLUGIN` that displays errors nicely in the overlay on top of the player.
|
|
133
153
|
|
|
134
154
|
|
|
135
155
|
</td></tr>
|
|
@@ -140,7 +160,7 @@ Description
|
|
|
140
160
|
|
|
141
161
|
</td><td>
|
|
142
162
|
|
|
143
|
-
**_(BETA)_**
|
|
163
|
+
**_(BETA)_** `PLUGIN` that changes the favicon according to the player's state.
|
|
144
164
|
|
|
145
165
|
|
|
146
166
|
</td></tr>
|
|
@@ -151,7 +171,7 @@ Description
|
|
|
151
171
|
|
|
152
172
|
</td><td>
|
|
153
173
|
|
|
154
|
-
**_(BETA)_**
|
|
174
|
+
**_(BETA)_** `PLUGIN` that integrates with Google Analytics
|
|
155
175
|
|
|
156
176
|
|
|
157
177
|
</td></tr>
|
|
@@ -162,7 +182,7 @@ Description
|
|
|
162
182
|
|
|
163
183
|
</td><td>
|
|
164
184
|
|
|
165
|
-
**_(BETA)_** PLUGIN that provides a UI to select the desired quality level of the playback.
|
|
185
|
+
**_(BETA)_** `PLUGIN` that provides a UI to select the desired quality level of the playback.
|
|
166
186
|
|
|
167
187
|
|
|
168
188
|
</td></tr>
|
|
@@ -173,7 +193,7 @@ Description
|
|
|
173
193
|
|
|
174
194
|
</td><td>
|
|
175
195
|
|
|
176
|
-
**_(BETA)_**
|
|
196
|
+
**_(BETA)_** `PLUGIN` that adds custom logo to the player.
|
|
177
197
|
|
|
178
198
|
|
|
179
199
|
</td></tr>
|
|
@@ -184,7 +204,7 @@ Description
|
|
|
184
204
|
|
|
185
205
|
</td><td>
|
|
186
206
|
|
|
187
|
-
**_(BETA)_** PLUGIN that provides a foundation for developing custom media controls UI.
|
|
207
|
+
**_(BETA)_** `PLUGIN` that provides a foundation for developing custom media controls UI.
|
|
188
208
|
|
|
189
209
|
|
|
190
210
|
</td></tr>
|
|
@@ -195,7 +215,7 @@ Description
|
|
|
195
215
|
|
|
196
216
|
</td><td>
|
|
197
217
|
|
|
198
|
-
**_(BETA)_** PLUGIN that adds support for loading multiple streams and switching between them using the media control UI.
|
|
218
|
+
**_(BETA)_** `PLUGIN` that adds support for loading multiple streams and switching between them using the media control UI.
|
|
199
219
|
|
|
200
220
|
|
|
201
221
|
</td></tr>
|
|
@@ -206,7 +226,7 @@ Description
|
|
|
206
226
|
|
|
207
227
|
</td><td>
|
|
208
228
|
|
|
209
|
-
**_(BETA)_**
|
|
229
|
+
**_(BETA)_** `PLUGIN` that enables picture in picture mode.
|
|
210
230
|
|
|
211
231
|
|
|
212
232
|
</td></tr>
|
|
@@ -217,7 +237,7 @@ Description
|
|
|
217
237
|
|
|
218
238
|
</td><td>
|
|
219
239
|
|
|
220
|
-
**_(BETA)_** PLUGIN that allows changing the playback speed of the video.
|
|
240
|
+
**_(BETA)_** `PLUGIN` that allows changing the playback speed of the video.
|
|
221
241
|
|
|
222
242
|
|
|
223
243
|
</td></tr>
|
|
@@ -228,7 +248,7 @@ Description
|
|
|
228
248
|
|
|
229
249
|
</td><td>
|
|
230
250
|
|
|
231
|
-
|
|
251
|
+
`MAIN` component to use in the application code.
|
|
232
252
|
|
|
233
253
|
|
|
234
254
|
</td></tr>
|
|
@@ -239,7 +259,7 @@ Description
|
|
|
239
259
|
|
|
240
260
|
</td><td>
|
|
241
261
|
|
|
242
|
-
**_(BETA)_**
|
|
262
|
+
**_(BETA)_** `PLUGIN` that displays a poster image in the background and a big play button on top when playback is stopped
|
|
243
263
|
|
|
244
264
|
|
|
245
265
|
</td></tr>
|
|
@@ -250,7 +270,7 @@ Description
|
|
|
250
270
|
|
|
251
271
|
</td><td>
|
|
252
272
|
|
|
253
|
-
**_(BETA)_**
|
|
273
|
+
**_(BETA)_** `PLUGIN` that adds a seek time indicator to the media control UI.
|
|
254
274
|
|
|
255
275
|
|
|
256
276
|
</td></tr>
|
|
@@ -261,7 +281,7 @@ Description
|
|
|
261
281
|
|
|
262
282
|
</td><td>
|
|
263
283
|
|
|
264
|
-
**_(BETA)_** PLUGIN that adds a share button to the media control UI.
|
|
284
|
+
**_(BETA)_** `PLUGIN` that adds a share button to the media control UI.
|
|
265
285
|
|
|
266
286
|
|
|
267
287
|
</td></tr>
|
|
@@ -272,7 +292,7 @@ Description
|
|
|
272
292
|
|
|
273
293
|
</td><td>
|
|
274
294
|
|
|
275
|
-
**_(BETA)_** PLUGIN that adds skip controls to the media control UI.
|
|
295
|
+
**_(BETA)_** `PLUGIN` that adds skip controls to the media control UI.
|
|
276
296
|
|
|
277
297
|
|
|
278
298
|
</td></tr>
|
|
@@ -283,7 +303,7 @@ Description
|
|
|
283
303
|
|
|
284
304
|
</td><td>
|
|
285
305
|
|
|
286
|
-
**_(BETA)_**
|
|
306
|
+
**_(BETA)_** `PLUGIN` that is responsible for managing the automatic failover between sources.
|
|
287
307
|
|
|
288
308
|
|
|
289
309
|
</td></tr>
|
|
@@ -294,7 +314,7 @@ Description
|
|
|
294
314
|
|
|
295
315
|
</td><td>
|
|
296
316
|
|
|
297
|
-
**_(BETA)_** PLUGIN that shows a pending operation indicator when playback is buffering or in a similar state
|
|
317
|
+
**_(BETA)_** `PLUGIN` that shows a pending operation indicator when playback is buffering or in a similar state
|
|
298
318
|
|
|
299
319
|
|
|
300
320
|
</td></tr>
|
|
@@ -305,7 +325,7 @@ Description
|
|
|
305
325
|
|
|
306
326
|
</td><td>
|
|
307
327
|
|
|
308
|
-
**_(BETA)_**
|
|
328
|
+
**_(BETA)_** `PLUGIN` that provides a UI to select the subtitles when available.
|
|
309
329
|
|
|
310
330
|
|
|
311
331
|
</td></tr>
|
|
@@ -316,7 +336,7 @@ Description
|
|
|
316
336
|
|
|
317
337
|
</td><td>
|
|
318
338
|
|
|
319
|
-
**_(BETA)_** PLUGIN that collects and reports the performance statistics.
|
|
339
|
+
**_(BETA)_** `PLUGIN` that collects and reports the performance statistics.
|
|
320
340
|
|
|
321
341
|
|
|
322
342
|
</td></tr>
|
|
@@ -327,7 +347,7 @@ Description
|
|
|
327
347
|
|
|
328
348
|
</td><td>
|
|
329
349
|
|
|
330
|
-
**_(BETA)_**
|
|
350
|
+
**_(BETA)_** `PLUGIN` that displays the thumbnails of the video when available.
|
|
331
351
|
|
|
332
352
|
|
|
333
353
|
</td></tr>
|
|
@@ -338,7 +358,7 @@ Description
|
|
|
338
358
|
|
|
339
359
|
</td><td>
|
|
340
360
|
|
|
341
|
-
**_(BETA)_**
|
|
361
|
+
**_(BETA)_** `PLUGIN` that applies fade effect to the player's volume change.
|
|
342
362
|
|
|
343
363
|
|
|
344
364
|
</td></tr>
|
|
@@ -375,7 +395,7 @@ Description
|
|
|
375
395
|
|
|
376
396
|
</td><td>
|
|
377
397
|
|
|
378
|
-
|
|
398
|
+
Codes of errors occurring within the playback component.
|
|
379
399
|
|
|
380
400
|
|
|
381
401
|
</td></tr>
|
|
@@ -386,7 +406,7 @@ Description
|
|
|
386
406
|
|
|
387
407
|
</td><td>
|
|
388
408
|
|
|
389
|
-
|
|
409
|
+
A top-level event on the player object
|
|
390
410
|
|
|
391
411
|
|
|
392
412
|
</td></tr>
|
|
@@ -482,7 +502,18 @@ Description
|
|
|
482
502
|
|
|
483
503
|
</td><td>
|
|
484
504
|
|
|
485
|
-
**_(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)_**
|
|
486
517
|
|
|
487
518
|
|
|
488
519
|
</td></tr>
|
|
@@ -515,7 +546,7 @@ Description
|
|
|
515
546
|
|
|
516
547
|
</td><td>
|
|
517
548
|
|
|
518
|
-
|
|
549
|
+
An error occurred during the playback.
|
|
519
550
|
|
|
520
551
|
|
|
521
552
|
</td></tr>
|
|
@@ -526,7 +557,7 @@ Description
|
|
|
526
557
|
|
|
527
558
|
</td><td>
|
|
528
559
|
|
|
529
|
-
|
|
560
|
+
Configuration options for the player
|
|
530
561
|
|
|
531
562
|
|
|
532
563
|
</td></tr>
|
|
@@ -537,7 +568,7 @@ Description
|
|
|
537
568
|
|
|
538
569
|
</td><td>
|
|
539
570
|
|
|
540
|
-
|
|
571
|
+
Describes a media source with its MIME type and URL.
|
|
541
572
|
|
|
542
573
|
|
|
543
574
|
</td></tr>
|
|
@@ -548,7 +579,7 @@ Description
|
|
|
548
579
|
|
|
549
580
|
</td><td>
|
|
550
581
|
|
|
551
|
-
|
|
582
|
+
A level of quality within a media source.
|
|
552
583
|
|
|
553
584
|
|
|
554
585
|
</td></tr>
|
|
@@ -592,7 +623,7 @@ Description
|
|
|
592
623
|
|
|
593
624
|
</td><td>
|
|
594
625
|
|
|
595
|
-
|
|
626
|
+
Current playback time and total duration of the media.
|
|
596
627
|
|
|
597
628
|
|
|
598
629
|
</td></tr>
|
|
@@ -629,7 +660,6 @@ Description
|
|
|
629
660
|
|
|
630
661
|
</td><td>
|
|
631
662
|
|
|
632
|
-
**_(BETA)_**
|
|
633
663
|
|
|
634
664
|
|
|
635
665
|
</td></tr>
|
|
@@ -640,7 +670,7 @@ Description
|
|
|
640
670
|
|
|
641
671
|
</td><td>
|
|
642
672
|
|
|
643
|
-
|
|
673
|
+
Dimensions of the player container DOM element.
|
|
644
674
|
|
|
645
675
|
|
|
646
676
|
</td></tr>
|
|
@@ -651,7 +681,6 @@ Description
|
|
|
651
681
|
|
|
652
682
|
</td><td>
|
|
653
683
|
|
|
654
|
-
**_(BETA)_**
|
|
655
684
|
|
|
656
685
|
|
|
657
686
|
</td></tr>
|
|
@@ -662,22 +691,11 @@ Description
|
|
|
662
691
|
|
|
663
692
|
</td><td>
|
|
664
693
|
|
|
665
|
-
|
|
694
|
+
A plain JS object that must conform to the DASH.js settings schema.
|
|
666
695
|
|
|
667
696
|
[DASH.js settings](https://cdn.dashjs.org/latest/jsdoc/module-Settings.html)
|
|
668
697
|
|
|
669
698
|
|
|
670
|
-
</td></tr>
|
|
671
|
-
<tr><td>
|
|
672
|
-
|
|
673
|
-
[ErrorDesc](./player.errordesc.md)
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
</td><td>
|
|
677
|
-
|
|
678
|
-
**_(BETA)_** An error fired in the player and plugins code to be handled in the UI
|
|
679
|
-
|
|
680
|
-
|
|
681
699
|
</td></tr>
|
|
682
700
|
<tr><td>
|
|
683
701
|
|
|
@@ -686,7 +704,7 @@ Description
|
|
|
686
704
|
|
|
687
705
|
</td><td>
|
|
688
706
|
|
|
689
|
-
|
|
707
|
+
Levels of severity of errors. Non-fatal errors usually can be ignored.
|
|
690
708
|
|
|
691
709
|
|
|
692
710
|
</td></tr>
|
|
@@ -719,7 +737,7 @@ Description
|
|
|
719
737
|
|
|
720
738
|
</td><td>
|
|
721
739
|
|
|
722
|
-
|
|
740
|
+
An ISO 639-1 language code.
|
|
723
741
|
|
|
724
742
|
|
|
725
743
|
</td></tr>
|
|
@@ -733,17 +751,6 @@ Description
|
|
|
733
751
|
**_(BETA)_** Media control elements, mount points for additional plugins
|
|
734
752
|
|
|
735
753
|
|
|
736
|
-
</td></tr>
|
|
737
|
-
<tr><td>
|
|
738
|
-
|
|
739
|
-
[MediaTransport](./player.mediatransport.md)
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
</td><td>
|
|
743
|
-
|
|
744
|
-
**_(BETA)_** Media delivery protocol
|
|
745
|
-
|
|
746
|
-
|
|
747
754
|
</td></tr>
|
|
748
755
|
<tr><td>
|
|
749
756
|
|
|
@@ -752,7 +759,7 @@ Description
|
|
|
752
759
|
|
|
753
760
|
</td><td>
|
|
754
761
|
|
|
755
|
-
|
|
762
|
+
Module to perform the playback.
|
|
756
763
|
|
|
757
764
|
|
|
758
765
|
</td></tr>
|
|
@@ -763,7 +770,7 @@ Description
|
|
|
763
770
|
|
|
764
771
|
</td><td>
|
|
765
772
|
|
|
766
|
-
|
|
773
|
+
Type of a stream
|
|
767
774
|
|
|
768
775
|
|
|
769
776
|
</td></tr>
|
|
@@ -774,7 +781,7 @@ Description
|
|
|
774
781
|
|
|
775
782
|
</td><td>
|
|
776
783
|
|
|
777
|
-
|
|
784
|
+
Subsystems of a player component.
|
|
778
785
|
|
|
779
786
|
|
|
780
787
|
</td></tr>
|
|
@@ -785,8 +792,6 @@ Description
|
|
|
785
792
|
|
|
786
793
|
</td><td>
|
|
787
794
|
|
|
788
|
-
**_(BETA)_**
|
|
789
|
-
|
|
790
795
|
|
|
791
796
|
</td></tr>
|
|
792
797
|
<tr><td>
|
|
@@ -796,7 +801,7 @@ Description
|
|
|
796
801
|
|
|
797
802
|
</td><td>
|
|
798
803
|
|
|
799
|
-
|
|
804
|
+
Debug output category selector
|
|
800
805
|
|
|
801
806
|
|
|
802
807
|
</td></tr>
|
|
@@ -807,7 +812,7 @@ Description
|
|
|
807
812
|
|
|
808
813
|
</td><td>
|
|
809
814
|
|
|
810
|
-
|
|
815
|
+
Type of a listener callback function for a player event. See the description of the event parameters in [PlayerEvent](./player.playerevent.md)<!-- -->.
|
|
811
816
|
|
|
812
817
|
|
|
813
818
|
</td></tr>
|
|
@@ -818,7 +823,6 @@ Description
|
|
|
818
823
|
|
|
819
824
|
</td><td>
|
|
820
825
|
|
|
821
|
-
**_(BETA)_**
|
|
822
826
|
|
|
823
827
|
|
|
824
828
|
</td></tr>
|
|
@@ -829,7 +833,7 @@ Description
|
|
|
829
833
|
|
|
830
834
|
</td><td>
|
|
831
835
|
|
|
832
|
-
|
|
836
|
+
A media source to fetch the media data from
|
|
833
837
|
|
|
834
838
|
|
|
835
839
|
</td></tr>
|
|
@@ -840,8 +844,6 @@ Description
|
|
|
840
844
|
|
|
841
845
|
</td><td>
|
|
842
846
|
|
|
843
|
-
**_(BETA)_**
|
|
844
|
-
|
|
845
847
|
|
|
846
848
|
</td></tr>
|
|
847
849
|
<tr><td>
|
|
@@ -851,7 +853,6 @@ Description
|
|
|
851
853
|
|
|
852
854
|
</td><td>
|
|
853
855
|
|
|
854
|
-
**_(BETA)_**
|
|
855
856
|
|
|
856
857
|
|
|
857
858
|
</td></tr>
|
|
@@ -928,7 +929,7 @@ Description
|
|
|
928
929
|
|
|
929
930
|
</td><td>
|
|
930
931
|
|
|
931
|
-
|
|
932
|
+
Playback time in seconds since the beginning of the stream (or a segment for the live streams)
|
|
932
933
|
|
|
933
934
|
|
|
934
935
|
</td></tr>
|
|
@@ -939,7 +940,6 @@ Description
|
|
|
939
940
|
|
|
940
941
|
</td><td>
|
|
941
942
|
|
|
942
|
-
**_(BETA)_**
|
|
943
943
|
|
|
944
944
|
|
|
945
945
|
</td></tr>
|
|
@@ -950,7 +950,7 @@ Description
|
|
|
950
950
|
|
|
951
951
|
</td><td>
|
|
952
952
|
|
|
953
|
-
|
|
953
|
+
Localization strings for the player UI.
|
|
954
954
|
|
|
955
955
|
|
|
956
956
|
</td></tr>
|
|
@@ -961,7 +961,7 @@ Description
|
|
|
961
961
|
|
|
962
962
|
</td><td>
|
|
963
963
|
|
|
964
|
-
|
|
964
|
+
Preferred streaming media delivery protocol
|
|
965
965
|
|
|
966
966
|
|
|
967
967
|
</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
|
|
|
@@ -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 provides a foundation for developing custom media controls UI.
|
|
10
|
+
`PLUGIN` that provides a foundation for developing custom media controls UI.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ export declare class MediaControl extends UICorePlugin
|
|
|
18
18
|
|
|
19
19
|
## Remarks
|
|
20
20
|
|
|
21
|
-
The methods exposed are to be used by the other plugins that extend the media control UI. The plugin registration should be arranged so that MediaControl is initialized before every other
|
|
21
|
+
The methods exposed are to be used by the other plugins that extend the media control UI. The plugin registration should be arranged so that MediaControl is initialized before every other `PLUGIN` that depends on it.
|
|
22
22
|
|
|
23
23
|
## Example
|
|
24
24
|
|
|
@@ -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
|
|
|
@@ -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 adds support for loading multiple streams and switching between them using the media control UI.
|
|
10
|
+
`PLUGIN` that adds support for loading multiple streams and switching between them using the media control UI.
|
|
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
|
-
|
|
10
|
+
`PLUGIN` that enables picture in picture mode.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|