@gcorevideo/player 2.20.9 → 2.20.11
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 +1212 -1215
- package/dist/index.js +74 -71
- package/dist/player.d.ts +103 -96
- package/dist/plugins/index.css +668 -671
- package/dist/plugins/index.js +69 -67
- 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.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 +1 -1
- 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 +69 -80
- package/docs/api/player.mediacontrol.md +2 -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 +1 -1
- 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 -1
- package/lib/plugins/favicon/Favicon.d.ts +1 -1
- package/lib/plugins/favicon/Favicon.js +1 -1
- 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 +1 -1
- 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 -21
- package/src/plugins/favicon/Favicon.ts +1 -1
- 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 +181 -251
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.dvrcontrols._constructor_.md +0 -50
- package/docs/api/player.errordesc.md +0 -28
- package/docs/api/player.mediatransport.md +0 -16
|
@@ -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 UI to select the desired quality level of the playback.
|
|
10
|
+
`PLUGIN` that provides a UI to select the desired quality level of the playback.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
package/docs/api/player.logo.md
CHANGED
|
@@ -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 adds custom logo to the player.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
package/docs/api/player.md
CHANGED
|
@@ -10,6 +10,26 @@ Video player for the Gcore streaming platform
|
|
|
10
10
|
|
|
11
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.
|
|
12
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
|
+
```
|
|
32
|
+
|
|
13
33
|
## Classes
|
|
14
34
|
|
|
15
35
|
<table><thead><tr><th>
|
|
@@ -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 adds custom favicon to the player's tab.
|
|
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>
|
|
@@ -515,7 +535,7 @@ Description
|
|
|
515
535
|
|
|
516
536
|
</td><td>
|
|
517
537
|
|
|
518
|
-
|
|
538
|
+
An error occurred during the playback.
|
|
519
539
|
|
|
520
540
|
|
|
521
541
|
</td></tr>
|
|
@@ -526,7 +546,7 @@ Description
|
|
|
526
546
|
|
|
527
547
|
</td><td>
|
|
528
548
|
|
|
529
|
-
|
|
549
|
+
Configuration options for the player
|
|
530
550
|
|
|
531
551
|
|
|
532
552
|
</td></tr>
|
|
@@ -537,7 +557,7 @@ Description
|
|
|
537
557
|
|
|
538
558
|
</td><td>
|
|
539
559
|
|
|
540
|
-
|
|
560
|
+
Describes a media source with its MIME type and URL.
|
|
541
561
|
|
|
542
562
|
|
|
543
563
|
</td></tr>
|
|
@@ -548,7 +568,7 @@ Description
|
|
|
548
568
|
|
|
549
569
|
</td><td>
|
|
550
570
|
|
|
551
|
-
|
|
571
|
+
A level of quality within a media source.
|
|
552
572
|
|
|
553
573
|
|
|
554
574
|
</td></tr>
|
|
@@ -592,7 +612,7 @@ Description
|
|
|
592
612
|
|
|
593
613
|
</td><td>
|
|
594
614
|
|
|
595
|
-
|
|
615
|
+
Current playback time and total duration of the media.
|
|
596
616
|
|
|
597
617
|
|
|
598
618
|
</td></tr>
|
|
@@ -629,7 +649,6 @@ Description
|
|
|
629
649
|
|
|
630
650
|
</td><td>
|
|
631
651
|
|
|
632
|
-
**_(BETA)_**
|
|
633
652
|
|
|
634
653
|
|
|
635
654
|
</td></tr>
|
|
@@ -640,7 +659,7 @@ Description
|
|
|
640
659
|
|
|
641
660
|
</td><td>
|
|
642
661
|
|
|
643
|
-
|
|
662
|
+
Dimensions of the player container DOM element.
|
|
644
663
|
|
|
645
664
|
|
|
646
665
|
</td></tr>
|
|
@@ -651,7 +670,6 @@ Description
|
|
|
651
670
|
|
|
652
671
|
</td><td>
|
|
653
672
|
|
|
654
|
-
**_(BETA)_**
|
|
655
673
|
|
|
656
674
|
|
|
657
675
|
</td></tr>
|
|
@@ -662,22 +680,11 @@ Description
|
|
|
662
680
|
|
|
663
681
|
</td><td>
|
|
664
682
|
|
|
665
|
-
|
|
683
|
+
A plain JS object that must conform to the DASH.js settings schema.
|
|
666
684
|
|
|
667
685
|
[DASH.js settings](https://cdn.dashjs.org/latest/jsdoc/module-Settings.html)
|
|
668
686
|
|
|
669
687
|
|
|
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
688
|
</td></tr>
|
|
682
689
|
<tr><td>
|
|
683
690
|
|
|
@@ -686,7 +693,7 @@ Description
|
|
|
686
693
|
|
|
687
694
|
</td><td>
|
|
688
695
|
|
|
689
|
-
|
|
696
|
+
Levels of severity of errors. Non-fatal errors usually can be ignored.
|
|
690
697
|
|
|
691
698
|
|
|
692
699
|
</td></tr>
|
|
@@ -719,7 +726,7 @@ Description
|
|
|
719
726
|
|
|
720
727
|
</td><td>
|
|
721
728
|
|
|
722
|
-
|
|
729
|
+
An ISO 639-1 language code.
|
|
723
730
|
|
|
724
731
|
|
|
725
732
|
</td></tr>
|
|
@@ -733,17 +740,6 @@ Description
|
|
|
733
740
|
**_(BETA)_** Media control elements, mount points for additional plugins
|
|
734
741
|
|
|
735
742
|
|
|
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
743
|
</td></tr>
|
|
748
744
|
<tr><td>
|
|
749
745
|
|
|
@@ -752,7 +748,7 @@ Description
|
|
|
752
748
|
|
|
753
749
|
</td><td>
|
|
754
750
|
|
|
755
|
-
|
|
751
|
+
Module to perform the playback.
|
|
756
752
|
|
|
757
753
|
|
|
758
754
|
</td></tr>
|
|
@@ -763,7 +759,7 @@ Description
|
|
|
763
759
|
|
|
764
760
|
</td><td>
|
|
765
761
|
|
|
766
|
-
|
|
762
|
+
Type of a stream
|
|
767
763
|
|
|
768
764
|
|
|
769
765
|
</td></tr>
|
|
@@ -774,7 +770,7 @@ Description
|
|
|
774
770
|
|
|
775
771
|
</td><td>
|
|
776
772
|
|
|
777
|
-
|
|
773
|
+
Subsystems of a player component.
|
|
778
774
|
|
|
779
775
|
|
|
780
776
|
</td></tr>
|
|
@@ -785,8 +781,6 @@ Description
|
|
|
785
781
|
|
|
786
782
|
</td><td>
|
|
787
783
|
|
|
788
|
-
**_(BETA)_**
|
|
789
|
-
|
|
790
784
|
|
|
791
785
|
</td></tr>
|
|
792
786
|
<tr><td>
|
|
@@ -796,7 +790,7 @@ Description
|
|
|
796
790
|
|
|
797
791
|
</td><td>
|
|
798
792
|
|
|
799
|
-
|
|
793
|
+
Debug output category selector
|
|
800
794
|
|
|
801
795
|
|
|
802
796
|
</td></tr>
|
|
@@ -807,7 +801,7 @@ Description
|
|
|
807
801
|
|
|
808
802
|
</td><td>
|
|
809
803
|
|
|
810
|
-
|
|
804
|
+
Type of a listener callback function for a player event. See the description of the event parameters in [PlayerEvent](./player.playerevent.md)<!-- -->.
|
|
811
805
|
|
|
812
806
|
|
|
813
807
|
</td></tr>
|
|
@@ -818,7 +812,6 @@ Description
|
|
|
818
812
|
|
|
819
813
|
</td><td>
|
|
820
814
|
|
|
821
|
-
**_(BETA)_**
|
|
822
815
|
|
|
823
816
|
|
|
824
817
|
</td></tr>
|
|
@@ -829,7 +822,7 @@ Description
|
|
|
829
822
|
|
|
830
823
|
</td><td>
|
|
831
824
|
|
|
832
|
-
|
|
825
|
+
A media source to fetch the media data from
|
|
833
826
|
|
|
834
827
|
|
|
835
828
|
</td></tr>
|
|
@@ -840,8 +833,6 @@ Description
|
|
|
840
833
|
|
|
841
834
|
</td><td>
|
|
842
835
|
|
|
843
|
-
**_(BETA)_**
|
|
844
|
-
|
|
845
836
|
|
|
846
837
|
</td></tr>
|
|
847
838
|
<tr><td>
|
|
@@ -851,7 +842,6 @@ Description
|
|
|
851
842
|
|
|
852
843
|
</td><td>
|
|
853
844
|
|
|
854
|
-
**_(BETA)_**
|
|
855
845
|
|
|
856
846
|
|
|
857
847
|
</td></tr>
|
|
@@ -928,7 +918,7 @@ Description
|
|
|
928
918
|
|
|
929
919
|
</td><td>
|
|
930
920
|
|
|
931
|
-
|
|
921
|
+
Playback time in seconds since the beginning of the stream (or a segment for the live streams)
|
|
932
922
|
|
|
933
923
|
|
|
934
924
|
</td></tr>
|
|
@@ -939,7 +929,6 @@ Description
|
|
|
939
929
|
|
|
940
930
|
</td><td>
|
|
941
931
|
|
|
942
|
-
**_(BETA)_**
|
|
943
932
|
|
|
944
933
|
|
|
945
934
|
</td></tr>
|
|
@@ -950,7 +939,7 @@ Description
|
|
|
950
939
|
|
|
951
940
|
</td><td>
|
|
952
941
|
|
|
953
|
-
|
|
942
|
+
Localization strings for the player UI.
|
|
954
943
|
|
|
955
944
|
|
|
956
945
|
</td></tr>
|
|
@@ -961,7 +950,7 @@ Description
|
|
|
961
950
|
|
|
962
951
|
</td><td>
|
|
963
952
|
|
|
964
|
-
|
|
953
|
+
Preferred streaming media delivery protocol
|
|
965
954
|
|
|
966
955
|
|
|
967
956
|
</td></tr>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
-
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
|
|
|
@@ -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
|
|