@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
|
@@ -4,15 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.unregisterPlugin() method
|
|
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
7
|
Unregisters a plugin registered earlier with [Player.registerPlugin()](./player.player.registerplugin.md)<!-- -->.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
13
10
|
|
|
14
11
|
```typescript
|
|
15
|
-
static unregisterPlugin(
|
|
12
|
+
static unregisterPlugin(name: string): void;
|
|
16
13
|
```
|
|
17
14
|
|
|
18
15
|
## Parameters
|
|
@@ -35,17 +32,17 @@ Description
|
|
|
35
32
|
</th></tr></thead>
|
|
36
33
|
<tbody><tr><td>
|
|
37
34
|
|
|
38
|
-
|
|
35
|
+
name
|
|
39
36
|
|
|
40
37
|
|
|
41
38
|
</td><td>
|
|
42
39
|
|
|
43
|
-
|
|
40
|
+
string
|
|
44
41
|
|
|
45
42
|
|
|
46
43
|
</td><td>
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
name of the plugin
|
|
49
46
|
|
|
50
47
|
|
|
51
48
|
</td></tr>
|
|
@@ -54,3 +51,13 @@ a plugin class
|
|
|
54
51
|
|
|
55
52
|
void
|
|
56
53
|
|
|
54
|
+
## Remarks
|
|
55
|
+
|
|
56
|
+
It can be also used to unregister a built-in default plugin.
|
|
57
|
+
|
|
58
|
+
Currently, the plugins that are always registered are:
|
|
59
|
+
|
|
60
|
+
- ['strings'](https://github.com/clappr/clappr-core/blob/3126c3a38a6eee9d5aba3918b194e6380fa1178c/src/plugins/strings/strings.js)<!-- -->, which supports internationalization of the player UI
|
|
61
|
+
|
|
62
|
+
- ['sources'](https://github.com/clappr/clappr-core/blob/3126c3a38a6eee9d5aba3918b194e6380fa1178c/src/plugins/sources/sources.js)<!-- -->, which lets to specify multiple media sources and selects the first suitable playback module
|
|
63
|
+
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.autoPlay property
|
|
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
7
|
Start playback automatically when the player is ready
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.dash property
|
|
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
7
|
Configuration settings for the DASH playback engine
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.language property
|
|
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
7
|
A language code for the player UI, for example, `es`<!-- -->. Must reference a key in the [strings](./player.playerconfig.strings.md) record.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.loop property
|
|
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
7
|
Repeat playback when the media ends. Is used with the `vod` [playbackType](./player.playerconfig.playbacktype.md)
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig interface
|
|
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
7
|
Configuration options for the player
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -88,7 +85,7 @@ boolean
|
|
|
88
85
|
|
|
89
86
|
</td><td>
|
|
90
87
|
|
|
91
|
-
|
|
88
|
+
_(Optional)_ Start playback automatically when the player is ready
|
|
92
89
|
|
|
93
90
|
|
|
94
91
|
</td></tr>
|
|
@@ -107,7 +104,7 @@ boolean
|
|
|
107
104
|
|
|
108
105
|
</td><td>
|
|
109
106
|
|
|
110
|
-
|
|
107
|
+
_(Optional)_ Configuration settings for the DASH playback engine
|
|
111
108
|
|
|
112
109
|
|
|
113
110
|
</td></tr>
|
|
@@ -126,7 +123,7 @@ boolean
|
|
|
126
123
|
|
|
127
124
|
</td><td>
|
|
128
125
|
|
|
129
|
-
|
|
126
|
+
_(Optional)_ Controls the debug output level
|
|
130
127
|
|
|
131
128
|
|
|
132
129
|
</td></tr>
|
|
@@ -145,7 +142,7 @@ string
|
|
|
145
142
|
|
|
146
143
|
</td><td>
|
|
147
144
|
|
|
148
|
-
|
|
145
|
+
_(Optional)_ A language code for the player UI, for example, `es`<!-- -->. Must reference a key in the [strings](./player.playerconfig.strings.md) record.
|
|
149
146
|
|
|
150
147
|
|
|
151
148
|
</td></tr>
|
|
@@ -164,7 +161,7 @@ boolean
|
|
|
164
161
|
|
|
165
162
|
</td><td>
|
|
166
163
|
|
|
167
|
-
|
|
164
|
+
_(Optional)_ Repeat playback when the media ends. Is used with the `vod` [playbackType](./player.playerconfig.playbacktype.md)
|
|
168
165
|
|
|
169
166
|
|
|
170
167
|
</td></tr>
|
|
@@ -183,7 +180,7 @@ boolean
|
|
|
183
180
|
|
|
184
181
|
</td><td>
|
|
185
182
|
|
|
186
|
-
|
|
183
|
+
_(Optional)_ Mute the audio output in order to comply with browsers' autoplay policy.
|
|
187
184
|
|
|
188
185
|
|
|
189
186
|
</td></tr>
|
|
@@ -202,7 +199,7 @@ boolean
|
|
|
202
199
|
|
|
203
200
|
</td><td>
|
|
204
201
|
|
|
205
|
-
|
|
202
|
+
_(Optional)_ The type of playback (live stream or video on demand).
|
|
206
203
|
|
|
207
204
|
|
|
208
205
|
</td></tr>
|
|
@@ -221,7 +218,7 @@ boolean
|
|
|
221
218
|
|
|
222
219
|
</td><td>
|
|
223
220
|
|
|
224
|
-
|
|
221
|
+
_(Optional)_ Preferred transport protocol when multiple sources are available.
|
|
225
222
|
|
|
226
223
|
|
|
227
224
|
</td></tr>
|
|
@@ -240,7 +237,7 @@ boolean
|
|
|
240
237
|
|
|
241
238
|
</td><td>
|
|
242
239
|
|
|
243
|
-
|
|
240
|
+
List of media sources, at least one is required.
|
|
244
241
|
|
|
245
242
|
|
|
246
243
|
</td></tr>
|
|
@@ -259,7 +256,7 @@ boolean
|
|
|
259
256
|
|
|
260
257
|
</td><td>
|
|
261
258
|
|
|
262
|
-
|
|
259
|
+
_(Optional)_ Localization strings for the player UI.
|
|
263
260
|
|
|
264
261
|
|
|
265
262
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.mute property
|
|
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
7
|
Mute the audio output in order to comply with browsers' autoplay policy.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.playbackType property
|
|
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
7
|
The type of playback (live stream or video on demand).
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.priorityTransport property
|
|
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
7
|
Preferred transport protocol when multiple sources are available.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.sources property
|
|
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
7
|
List of media sources, at least one is required.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerEvent enum
|
|
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
7
|
A top-level event on the player object
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -45,7 +42,7 @@ Ended
|
|
|
45
42
|
|
|
46
43
|
</td><td>
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
Playback has reached the end of the media.
|
|
49
46
|
|
|
50
47
|
|
|
51
48
|
</td></tr>
|
|
@@ -61,7 +58,7 @@ Error
|
|
|
61
58
|
|
|
62
59
|
</td><td>
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
An error occurred. Parameters: [PlaybackError](./player.playbackerror.md)
|
|
65
62
|
|
|
66
63
|
|
|
67
64
|
</td></tr>
|
|
@@ -77,7 +74,7 @@ Fullscreen
|
|
|
77
74
|
|
|
78
75
|
</td><td>
|
|
79
76
|
|
|
80
|
-
|
|
77
|
+
The player has switched to or from the fullscreen mode. Parameters:`boolean` isFullscreen
|
|
81
78
|
|
|
82
79
|
|
|
83
80
|
</td></tr>
|
|
@@ -93,7 +90,7 @@ Pause
|
|
|
93
90
|
|
|
94
91
|
</td><td>
|
|
95
92
|
|
|
96
|
-
|
|
93
|
+
Playback has been paused.
|
|
97
94
|
|
|
98
95
|
|
|
99
96
|
</td></tr>
|
|
@@ -109,7 +106,7 @@ Play
|
|
|
109
106
|
|
|
110
107
|
</td><td>
|
|
111
108
|
|
|
112
|
-
|
|
109
|
+
Playback has started.
|
|
113
110
|
|
|
114
111
|
|
|
115
112
|
</td></tr>
|
|
@@ -125,7 +122,7 @@ Ready
|
|
|
125
122
|
|
|
126
123
|
</td><td>
|
|
127
124
|
|
|
128
|
-
|
|
125
|
+
The player is ready to use.
|
|
129
126
|
|
|
130
127
|
|
|
131
128
|
</td></tr>
|
|
@@ -141,7 +138,7 @@ Resize
|
|
|
141
138
|
|
|
142
139
|
</td><td>
|
|
143
140
|
|
|
144
|
-
|
|
141
|
+
The player's container has been resized. Parameters: [ContainerSize](./player.containersize.md)
|
|
145
142
|
|
|
146
143
|
|
|
147
144
|
</td></tr>
|
|
@@ -157,7 +154,7 @@ Seek
|
|
|
157
154
|
|
|
158
155
|
</td><td>
|
|
159
156
|
|
|
160
|
-
|
|
157
|
+
The player is seeking to a new position.
|
|
161
158
|
|
|
162
159
|
|
|
163
160
|
</td></tr>
|
|
@@ -173,7 +170,7 @@ Stop
|
|
|
173
170
|
|
|
174
171
|
</td><td>
|
|
175
172
|
|
|
176
|
-
|
|
173
|
+
Playback has been stopped.
|
|
177
174
|
|
|
178
175
|
|
|
179
176
|
</td></tr>
|
|
@@ -189,7 +186,7 @@ TimeUpdate
|
|
|
189
186
|
|
|
190
187
|
</td><td>
|
|
191
188
|
|
|
192
|
-
|
|
189
|
+
The current playback time has changed. Parameters: [TimePosition](./player.timeposition.md)
|
|
193
190
|
|
|
194
191
|
|
|
195
192
|
</td></tr>
|
|
@@ -205,7 +202,7 @@ VolumeUpdate
|
|
|
205
202
|
|
|
206
203
|
</td><td>
|
|
207
204
|
|
|
208
|
-
|
|
205
|
+
The volume has changed. Parameters: `number` volume in the range 0..1
|
|
209
206
|
|
|
210
207
|
|
|
211
208
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerEventHandler type
|
|
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
7
|
Type of a listener callback function for a player event. See the description of the event parameters in [PlayerEvent](./player.playerevent.md)<!-- -->.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerMediaSourceDesc interface
|
|
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
7
|
Describes a media source with its MIME type and URL.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -57,7 +54,7 @@ string
|
|
|
57
54
|
|
|
58
55
|
</td><td>
|
|
59
56
|
|
|
60
|
-
|
|
57
|
+
_(Optional)_ The MIME type of the media source (e.g. `"video/mp4"`<!-- -->, `"application/x-mpegURL"`<!-- -->). Necessary if the type cannot be detected from file extension of the source URL.
|
|
61
58
|
|
|
62
59
|
|
|
63
60
|
</td></tr>
|
|
@@ -76,7 +73,7 @@ string
|
|
|
76
73
|
|
|
77
74
|
</td><td>
|
|
78
75
|
|
|
79
|
-
|
|
76
|
+
URL of the media source
|
|
80
77
|
|
|
81
78
|
|
|
82
79
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerMediaSourceDesc.mimeType property
|
|
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
7
|
The MIME type of the media source (e.g. `"video/mp4"`<!-- -->, `"application/x-mpegURL"`<!-- -->). Necessary if the type cannot be detected from file extension of the source URL.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,14 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerPlugin type
|
|
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
7
|
**Signature:**
|
|
11
8
|
|
|
12
9
|
```typescript
|
|
13
10
|
export type PlayerPlugin = {
|
|
14
|
-
new (...args: any[]): unknown;
|
|
15
11
|
name: string;
|
|
16
12
|
};
|
|
17
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 displays a poster image in the background and a big play button on top when playback is stopped
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## QualityLevel interface
|
|
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
7
|
A level of quality within a media source.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -53,7 +50,7 @@ number
|
|
|
53
50
|
|
|
54
51
|
</td><td>
|
|
55
52
|
|
|
56
|
-
|
|
53
|
+
Bitrate of the video, bps.
|
|
57
54
|
|
|
58
55
|
|
|
59
56
|
</td></tr>
|
|
@@ -72,7 +69,7 @@ number
|
|
|
72
69
|
|
|
73
70
|
</td><td>
|
|
74
71
|
|
|
75
|
-
|
|
72
|
+
Height of the video, pixels.
|
|
76
73
|
|
|
77
74
|
|
|
78
75
|
</td></tr>
|
|
@@ -91,7 +88,7 @@ number
|
|
|
91
88
|
|
|
92
89
|
</td><td>
|
|
93
90
|
|
|
94
|
-
|
|
91
|
+
Zero-based index of the quality level.
|
|
95
92
|
|
|
96
93
|
|
|
97
94
|
</td></tr>
|
|
@@ -110,7 +107,7 @@ number
|
|
|
110
107
|
|
|
111
108
|
</td><td>
|
|
112
109
|
|
|
113
|
-
|
|
110
|
+
Width of the video, pixels.
|
|
114
111
|
|
|
115
112
|
|
|
116
113
|
</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
|
-
|
|
10
|
+
`PLUGIN` that adds a seek time indicator to the media control UI.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
package/docs/api/player.share.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
|
-
PLUGIN that adds a share button to the media control UI.
|
|
10
|
+
`PLUGIN` that adds a share button to 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
|
-
PLUGIN that adds skip controls to the media control UI.
|
|
10
|
+
`PLUGIN` that adds skip controls to 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 is responsible for managing the automatic failover between sources.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
-
PLUGIN that shows a pending operation indicator when playback is buffering or in a similar state
|
|
10
|
+
`PLUGIN` that shows a pending operation indicator when playback is buffering or in a similar state
|
|
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 provides a UI to select the subtitles when available.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|