@gcorevideo/player 2.16.17 → 2.18.0
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/README.md +68 -19
- package/dist/index.js +272 -125
- package/dist/player.d.ts +230 -73
- package/docs/api/index.md +1 -1
- package/docs/api/player.containersize.md +19 -0
- package/docs/api/player.dashsettings.md +2 -0
- package/docs/api/player.errorlevel.md +1 -0
- package/docs/api/player.langtag.md +6 -0
- package/docs/api/player.md +59 -24
- package/docs/api/player.mediatransport.md +1 -0
- package/docs/api/player.playbackerror.code.md +2 -0
- package/docs/api/player.playbackerror.description.md +2 -0
- package/docs/api/player.playbackerror.level.md +2 -0
- package/docs/api/player.playbackerror.md +43 -4
- package/docs/api/player.playbackerror.message.md +2 -0
- package/docs/api/player.playbackerror.origin.md +21 -0
- package/docs/api/player.playbackerror.scope.md +16 -0
- package/docs/api/player.playbackerrorcode.md +8 -7
- package/docs/api/player.playbackmodule.md +1 -0
- package/docs/api/player.player.attachto.md +26 -0
- package/docs/api/player.player.configure.md +6 -2
- package/docs/api/player.player.destroy.md +1 -1
- package/docs/api/player.player.getcurrenttime.md +6 -2
- package/docs/api/player.player.getduration.md +4 -0
- package/docs/api/player.player.getvolume.md +22 -0
- package/docs/api/player.player.isdvrenabled.md +20 -0
- package/docs/api/player.player.isdvrinuse.md +24 -0
- package/docs/api/player.player.isplaying.md +20 -0
- package/docs/api/player.player.md +76 -8
- package/docs/api/player.player.mute.md +1 -1
- package/docs/api/player.player.off.md +5 -5
- package/docs/api/player.player.on.md +5 -5
- package/docs/api/player.player.registerplugin.md +14 -1
- package/docs/api/player.player.resize.md +6 -5
- package/docs/api/player.player.seek.md +1 -1
- package/docs/api/player.player.setvolume.md +56 -0
- package/docs/api/player.player.unmute.md +1 -1
- package/docs/api/player.player.unregisterplugin.md +2 -2
- package/docs/api/player.playercomponenttype.md +16 -0
- package/docs/api/player.playerdebugsettings.md +1 -1
- package/docs/api/player.playerdebugtag.md +1 -0
- package/docs/api/player.playerevent.md +96 -0
- package/docs/api/player.playereventhandler.md +3 -2
- package/docs/api/player.playereventparams.md +20 -0
- package/docs/api/player.playermediasourcedesc.md +1 -1
- package/docs/api/player.playermediasourcedesc.mimetype.md +1 -1
- package/docs/api/player.qualitylevel.bitrate.md +16 -0
- package/docs/api/player.qualitylevel.height.md +16 -0
- package/docs/api/player.qualitylevel.level.md +16 -0
- package/docs/api/player.qualitylevel.md +104 -7
- package/docs/api/player.qualitylevel.width.md +16 -0
- package/docs/api/player.timeposition.current.md +16 -0
- package/docs/api/player.timeposition.md +65 -7
- package/docs/api/player.timeposition.total.md +16 -0
- package/docs/api/player.timevalue.md +1 -1
- package/docs/api/player.translationsettings.md +7 -1
- package/docs/api/player.transportpreference.md +1 -0
- package/lib/Player.d.ts +107 -26
- package/lib/Player.d.ts.map +1 -1
- package/lib/Player.js +161 -77
- package/lib/index.d.ts +2 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -3
- package/lib/internal.types.d.ts +3 -5
- package/lib/internal.types.d.ts.map +1 -1
- package/lib/playback/dash-playback/DashPlayback.d.ts +2 -0
- package/lib/playback/dash-playback/DashPlayback.d.ts.map +1 -1
- package/lib/playback/dash-playback/DashPlayback.js +37 -25
- package/lib/playback/hls-playback/HlsPlayback.d.ts +3 -0
- package/lib/playback/hls-playback/HlsPlayback.d.ts.map +1 -1
- package/lib/playback/hls-playback/HlsPlayback.js +33 -18
- package/lib/playback.types.d.ts +65 -6
- package/lib/playback.types.d.ts.map +1 -1
- package/lib/playback.types.js +10 -0
- package/lib/types.d.ts +54 -5
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +31 -2
- package/package.json +1 -1
- package/rollup.config.js +1 -1
- package/src/Player.ts +202 -91
- package/src/__tests__/Player.test.ts +9 -3
- package/src/index.ts +2 -3
- package/src/internal.types.ts +3 -2
- package/src/playback/dash-playback/DashPlayback.ts +64 -35
- package/src/playback/hls-playback/HlsPlayback.ts +46 -22
- package/src/playback.types.ts +65 -5
- package/src/types.ts +56 -6
- package/src/utils/__tests__/mediaSources.test.ts +8 -2
- package/temp/player.api.json +771 -106
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/DashPlayback-BRJzl8D8.js +0 -901
package/docs/api/player.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## player package
|
|
6
6
|
|
|
7
|
-
Video player for the
|
|
7
|
+
Video player for the Gcore streaming platform
|
|
8
8
|
|
|
9
9
|
## Remarks
|
|
10
10
|
|
|
11
|
-
This package provides a video player for the
|
|
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.
|
|
12
12
|
|
|
13
13
|
## Classes
|
|
14
14
|
|
|
@@ -56,7 +56,7 @@ Description
|
|
|
56
56
|
|
|
57
57
|
</td><td>
|
|
58
58
|
|
|
59
|
-
**_(BETA)_**
|
|
59
|
+
**_(BETA)_** Codes of errors occurring within the playback component.
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
</td></tr>
|
|
@@ -119,7 +119,7 @@ Description
|
|
|
119
119
|
|
|
120
120
|
</td><td>
|
|
121
121
|
|
|
122
|
-
**_(BETA)_**
|
|
122
|
+
**_(BETA)_** An error occurred during the playback.
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
</td></tr>
|
|
@@ -144,6 +144,28 @@ Description
|
|
|
144
144
|
**_(BETA)_** Describes a media source with its MIME type and URL.
|
|
145
145
|
|
|
146
146
|
|
|
147
|
+
</td></tr>
|
|
148
|
+
<tr><td>
|
|
149
|
+
|
|
150
|
+
[QualityLevel](./player.qualitylevel.md)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
</td><td>
|
|
154
|
+
|
|
155
|
+
**_(BETA)_** A level of quality within a media source.
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
</td></tr>
|
|
159
|
+
<tr><td>
|
|
160
|
+
|
|
161
|
+
[TimePosition](./player.timeposition.md)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
</td><td>
|
|
165
|
+
|
|
166
|
+
**_(BETA)_** Current playback time and total duration of the media.
|
|
167
|
+
|
|
168
|
+
|
|
147
169
|
</td></tr>
|
|
148
170
|
</tbody></table>
|
|
149
171
|
|
|
@@ -162,12 +184,25 @@ Description
|
|
|
162
184
|
</th></tr></thead>
|
|
163
185
|
<tbody><tr><td>
|
|
164
186
|
|
|
187
|
+
[ContainerSize](./player.containersize.md)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
</td><td>
|
|
191
|
+
|
|
192
|
+
**_(BETA)_** Dimensions of the player container DOM element.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
</td></tr>
|
|
196
|
+
<tr><td>
|
|
197
|
+
|
|
165
198
|
[DashSettings](./player.dashsettings.md)
|
|
166
199
|
|
|
167
200
|
|
|
168
201
|
</td><td>
|
|
169
202
|
|
|
170
|
-
**_(BETA)_**
|
|
203
|
+
**_(BETA)_** A plain JS object that must conform to the DASH.js settings schema.
|
|
204
|
+
|
|
205
|
+
[DASH.js settings](https://cdn.dashjs.org/latest/jsdoc/module-Settings.html)
|
|
171
206
|
|
|
172
207
|
|
|
173
208
|
</td></tr>
|
|
@@ -178,7 +213,7 @@ Description
|
|
|
178
213
|
|
|
179
214
|
</td><td>
|
|
180
215
|
|
|
181
|
-
**_(BETA)_**
|
|
216
|
+
**_(BETA)_** Levels of severity of errors. Non-fatal errors usually can be ignored.
|
|
182
217
|
|
|
183
218
|
|
|
184
219
|
</td></tr>
|
|
@@ -189,7 +224,7 @@ Description
|
|
|
189
224
|
|
|
190
225
|
</td><td>
|
|
191
226
|
|
|
192
|
-
**_(BETA)_**
|
|
227
|
+
**_(BETA)_** An ISO 639-1 language code.
|
|
193
228
|
|
|
194
229
|
|
|
195
230
|
</td></tr>
|
|
@@ -200,7 +235,7 @@ Description
|
|
|
200
235
|
|
|
201
236
|
</td><td>
|
|
202
237
|
|
|
203
|
-
**_(BETA)_**
|
|
238
|
+
**_(BETA)_** Media delivery protocol
|
|
204
239
|
|
|
205
240
|
|
|
206
241
|
</td></tr>
|
|
@@ -211,7 +246,7 @@ Description
|
|
|
211
246
|
|
|
212
247
|
</td><td>
|
|
213
248
|
|
|
214
|
-
**_(BETA)_**
|
|
249
|
+
**_(BETA)_** Module to perform the playback.
|
|
215
250
|
|
|
216
251
|
|
|
217
252
|
</td></tr>
|
|
@@ -228,18 +263,18 @@ Description
|
|
|
228
263
|
</td></tr>
|
|
229
264
|
<tr><td>
|
|
230
265
|
|
|
231
|
-
[
|
|
266
|
+
[PlayerComponentType](./player.playercomponenttype.md)
|
|
232
267
|
|
|
233
268
|
|
|
234
269
|
</td><td>
|
|
235
270
|
|
|
236
|
-
**_(BETA)_**
|
|
271
|
+
**_(BETA)_** Subsystems of a player component.
|
|
237
272
|
|
|
238
273
|
|
|
239
274
|
</td></tr>
|
|
240
275
|
<tr><td>
|
|
241
276
|
|
|
242
|
-
[
|
|
277
|
+
[PlayerDebugSettings](./player.playerdebugsettings.md)
|
|
243
278
|
|
|
244
279
|
|
|
245
280
|
</td><td>
|
|
@@ -250,29 +285,29 @@ Description
|
|
|
250
285
|
</td></tr>
|
|
251
286
|
<tr><td>
|
|
252
287
|
|
|
253
|
-
[
|
|
288
|
+
[PlayerDebugTag](./player.playerdebugtag.md)
|
|
254
289
|
|
|
255
290
|
|
|
256
291
|
</td><td>
|
|
257
292
|
|
|
258
|
-
**_(BETA)_**
|
|
293
|
+
**_(BETA)_** Debug output category selector
|
|
259
294
|
|
|
260
295
|
|
|
261
296
|
</td></tr>
|
|
262
297
|
<tr><td>
|
|
263
298
|
|
|
264
|
-
[
|
|
299
|
+
[PlayerEventHandler](./player.playereventhandler.md)
|
|
265
300
|
|
|
266
301
|
|
|
267
302
|
</td><td>
|
|
268
303
|
|
|
269
|
-
**_(BETA)_**
|
|
304
|
+
**_(BETA)_** Type of a listener callback function for a player event. See the description of the event parameters in [PlayerEvent](./player.playerevent.md)<!-- -->.
|
|
270
305
|
|
|
271
306
|
|
|
272
307
|
</td></tr>
|
|
273
308
|
<tr><td>
|
|
274
309
|
|
|
275
|
-
[
|
|
310
|
+
[PlayerEventParams](./player.playereventparams.md)
|
|
276
311
|
|
|
277
312
|
|
|
278
313
|
</td><td>
|
|
@@ -283,23 +318,23 @@ Description
|
|
|
283
318
|
</td></tr>
|
|
284
319
|
<tr><td>
|
|
285
320
|
|
|
286
|
-
[
|
|
321
|
+
[PlayerMediaSource](./player.playermediasource.md)
|
|
287
322
|
|
|
288
323
|
|
|
289
324
|
</td><td>
|
|
290
325
|
|
|
291
|
-
**_(BETA)_**
|
|
326
|
+
**_(BETA)_** A media source to fetch the media data from
|
|
292
327
|
|
|
293
328
|
|
|
294
329
|
</td></tr>
|
|
295
330
|
<tr><td>
|
|
296
331
|
|
|
297
|
-
[
|
|
332
|
+
[PlayerPlugin](./player.playerplugin.md)
|
|
298
333
|
|
|
299
334
|
|
|
300
335
|
</td><td>
|
|
301
336
|
|
|
302
|
-
**_(BETA)_**
|
|
337
|
+
**_(BETA)_**
|
|
303
338
|
|
|
304
339
|
|
|
305
340
|
</td></tr>
|
|
@@ -332,7 +367,7 @@ Description
|
|
|
332
367
|
|
|
333
368
|
</td><td>
|
|
334
369
|
|
|
335
|
-
**_(BETA)_** Playback time in seconds since the beginning of the stream (or a segment for the live streams)
|
|
370
|
+
**_(BETA)_** Playback time in seconds since the beginning of the stream (or a segment for the live streams)
|
|
336
371
|
|
|
337
372
|
|
|
338
373
|
</td></tr>
|
|
@@ -354,7 +389,7 @@ Description
|
|
|
354
389
|
|
|
355
390
|
</td><td>
|
|
356
391
|
|
|
357
|
-
**_(BETA)_**
|
|
392
|
+
**_(BETA)_** Localization strings for the player UI.
|
|
358
393
|
|
|
359
394
|
|
|
360
395
|
</td></tr>
|
|
@@ -365,7 +400,7 @@ Description
|
|
|
365
400
|
|
|
366
401
|
</td><td>
|
|
367
402
|
|
|
368
|
-
**_(BETA)_**
|
|
403
|
+
**_(BETA)_** Preferred media delivery protocol
|
|
369
404
|
|
|
370
405
|
|
|
371
406
|
</td></tr>
|
|
@@ -7,6 +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
|
+
An error occurred during the playback.
|
|
10
11
|
|
|
11
12
|
**Signature:**
|
|
12
13
|
|
|
@@ -52,7 +53,7 @@ Description
|
|
|
52
53
|
|
|
53
54
|
</td><td>
|
|
54
55
|
|
|
55
|
-
**_(BETA)_**
|
|
56
|
+
**_(BETA)_** Error code.
|
|
56
57
|
|
|
57
58
|
|
|
58
59
|
</td></tr>
|
|
@@ -71,7 +72,7 @@ string
|
|
|
71
72
|
|
|
72
73
|
</td><td>
|
|
73
74
|
|
|
74
|
-
**_(BETA)_**
|
|
75
|
+
**_(BETA)_** Detailed description of the error.
|
|
75
76
|
|
|
76
77
|
|
|
77
78
|
</td></tr>
|
|
@@ -90,7 +91,7 @@ string
|
|
|
90
91
|
|
|
91
92
|
</td><td>
|
|
92
93
|
|
|
93
|
-
**_(BETA)_**
|
|
94
|
+
**_(BETA)_** Level of severity of the error.
|
|
94
95
|
|
|
95
96
|
|
|
96
97
|
</td></tr>
|
|
@@ -109,7 +110,45 @@ string
|
|
|
109
110
|
|
|
110
111
|
</td><td>
|
|
111
112
|
|
|
112
|
-
**_(BETA)_**
|
|
113
|
+
**_(BETA)_** Error message. Non-fatal usually can be ignored.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</td></tr>
|
|
117
|
+
<tr><td>
|
|
118
|
+
|
|
119
|
+
[origin](./player.playbackerror.origin.md)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
</td><td>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
</td><td>
|
|
126
|
+
|
|
127
|
+
string
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</td><td>
|
|
131
|
+
|
|
132
|
+
**_(BETA)_** Exact component that originated the error.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
</td></tr>
|
|
136
|
+
<tr><td>
|
|
137
|
+
|
|
138
|
+
[scope](./player.playbackerror.scope.md)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
</td><td>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
</td><td>
|
|
145
|
+
|
|
146
|
+
[PlayerComponentType](./player.playercomponenttype.md)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
</td><td>
|
|
150
|
+
|
|
151
|
+
**_(BETA)_** Component subsystem of the error origin
|
|
113
152
|
|
|
114
153
|
|
|
115
154
|
</td></tr>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [PlaybackError](./player.playbackerror.md) > [origin](./player.playbackerror.origin.md)
|
|
4
|
+
|
|
5
|
+
## PlaybackError.origin property
|
|
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
|
+
Exact component that originated the error.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
origin: string;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
- 'core' - 'dash' - 'media\_control'
|
|
21
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [PlaybackError](./player.playbackerror.md) > [scope](./player.playbackerror.scope.md)
|
|
4
|
+
|
|
5
|
+
## PlaybackError.scope property
|
|
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
|
+
Component subsystem of the error origin
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
scope: PlayerComponentType;
|
|
16
|
+
```
|
|
@@ -7,6 +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
|
+
Codes of errors occurring within the playback component.
|
|
10
11
|
|
|
11
12
|
**Signature:**
|
|
12
13
|
|
|
@@ -44,39 +45,39 @@ Generic
|
|
|
44
45
|
|
|
45
46
|
</td><td>
|
|
46
47
|
|
|
47
|
-
**_(BETA)_**
|
|
48
|
+
**_(BETA)_** An unknown or uncategorised error.
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
</td></tr>
|
|
51
52
|
<tr><td>
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
MediaSourceAccessDenied
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
</td><td>
|
|
57
58
|
|
|
58
|
-
`
|
|
59
|
+
`3`
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
</td><td>
|
|
62
63
|
|
|
63
|
-
**_(BETA)_**
|
|
64
|
+
**_(BETA)_** The media source is not accessible due to some protection policy.
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
</td></tr>
|
|
67
68
|
<tr><td>
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
MediaSourceUnavailable
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
</td><td>
|
|
73
74
|
|
|
74
|
-
`
|
|
75
|
+
`1`
|
|
75
76
|
|
|
76
77
|
|
|
77
78
|
</td><td>
|
|
78
79
|
|
|
79
|
-
**_(BETA)_**
|
|
80
|
+
**_(BETA)_** The media source is not available. Typically a network error.
|
|
80
81
|
|
|
81
82
|
|
|
82
83
|
</td></tr>
|
|
@@ -54,3 +54,29 @@ DOM element to host the player
|
|
|
54
54
|
|
|
55
55
|
void
|
|
56
56
|
|
|
57
|
+
## Remarks
|
|
58
|
+
|
|
59
|
+
The player will be initialized and attached to the given element.
|
|
60
|
+
|
|
61
|
+
All the core plugins will be initialized at this point.
|
|
62
|
+
|
|
63
|
+
If no sources were configured, it will trigger an error.
|
|
64
|
+
|
|
65
|
+
The player container will be initialized and then all the registered UI plugins.
|
|
66
|
+
|
|
67
|
+
If the `autoPlay` option is set, then it will trigger playback immediately.
|
|
68
|
+
|
|
69
|
+
It is an error to call this method twice. If you need to attache player to another DOM element, first call [Player.destroy()](./player.player.destroy.md) and then [Player.attachTo()](./player.player.attachto.md)<!-- -->.
|
|
70
|
+
|
|
71
|
+
## Example
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
const player = new Player({
|
|
76
|
+
sources: [{ source: 'https://example.com/a.mpd', mimeType: 'application/dash+xml' }],
|
|
77
|
+
})
|
|
78
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
79
|
+
player.attachTo(document.getElementById('video-container'))
|
|
80
|
+
})
|
|
81
|
+
```
|
|
82
|
+
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
Configures the player.
|
|
11
11
|
|
|
12
|
-
Can be called multiple times. Each consequent call extends the previous configuration. After a reconfiguration, if something significant has changed, the must be reinitialized (i.e, a `.destroy()` followed by an `.init()` call).
|
|
13
|
-
|
|
14
12
|
**Signature:**
|
|
15
13
|
|
|
16
14
|
```typescript
|
|
@@ -56,3 +54,9 @@ complete or partial configuration
|
|
|
56
54
|
|
|
57
55
|
void
|
|
58
56
|
|
|
57
|
+
## Remarks
|
|
58
|
+
|
|
59
|
+
Can be called multiple times. Each consequent call extends the previous configuration with only the new keys overridden.
|
|
60
|
+
|
|
61
|
+
After a reconfiguration, if something significant has changed, it might make sense reinitialize the player (i.e, a `.destroy()` followed by an `.init()` call).
|
|
62
|
+
|
|
@@ -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
|
-
Destroys the player, releasing all resources and
|
|
10
|
+
Destroys the player, releasing all resources and unmounting its UI from the DOM.
|
|
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
|
-
Current playback time
|
|
10
|
+
Current playback (time since the beginning of the stream), if appropriate.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -18,5 +18,9 @@ getCurrentTime(): number;
|
|
|
18
18
|
|
|
19
19
|
number
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Time in seconds
|
|
22
|
+
|
|
23
|
+
## Remarks
|
|
24
|
+
|
|
25
|
+
For live streams, it returns the current time within the current segment.
|
|
22
26
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [Player](./player.player.md) > [getVolume](./player.player.getvolume.md)
|
|
4
|
+
|
|
5
|
+
## Player.getVolume() method
|
|
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
|
+
Gets the current volume of the media content being played.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
getVolume(): number;
|
|
16
|
+
```
|
|
17
|
+
**Returns:**
|
|
18
|
+
|
|
19
|
+
number
|
|
20
|
+
|
|
21
|
+
a number between 0 and 1
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [Player](./player.player.md) > [isDvrEnabled](./player.player.isdvrenabled.md)
|
|
4
|
+
|
|
5
|
+
## Player.isDvrEnabled() method
|
|
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
|
+
Indicates whether DVR is enabled.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
isDvrEnabled(): boolean;
|
|
16
|
+
```
|
|
17
|
+
**Returns:**
|
|
18
|
+
|
|
19
|
+
boolean
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [Player](./player.player.md) > [isDvrInUse](./player.player.isdvrinuse.md)
|
|
4
|
+
|
|
5
|
+
## Player.isDvrInUse() method
|
|
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
|
+
Indicates whether DVR is in use.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
isDvrInUse(): boolean;
|
|
16
|
+
```
|
|
17
|
+
**Returns:**
|
|
18
|
+
|
|
19
|
+
boolean
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
DVR mode, if it is enabled, is triggered we a user seeks behind the live edge.
|
|
24
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [Player](./player.player.md) > [isPlaying](./player.player.isplaying.md)
|
|
4
|
+
|
|
5
|
+
## Player.isPlaying() method
|
|
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
|
+
Indicates the playing state.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
isPlaying(): boolean;
|
|
16
|
+
```
|
|
17
|
+
**Returns:**
|
|
18
|
+
|
|
19
|
+
boolean
|
|
20
|
+
|