@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,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlaybackError 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
|
An error occurred during the playback.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -53,7 +50,7 @@ Description
|
|
|
53
50
|
|
|
54
51
|
</td><td>
|
|
55
52
|
|
|
56
|
-
|
|
53
|
+
Error code.
|
|
57
54
|
|
|
58
55
|
|
|
59
56
|
</td></tr>
|
|
@@ -72,7 +69,7 @@ string
|
|
|
72
69
|
|
|
73
70
|
</td><td>
|
|
74
71
|
|
|
75
|
-
|
|
72
|
+
Detailed description of the error.
|
|
76
73
|
|
|
77
74
|
|
|
78
75
|
</td></tr>
|
|
@@ -91,7 +88,7 @@ string
|
|
|
91
88
|
|
|
92
89
|
</td><td>
|
|
93
90
|
|
|
94
|
-
|
|
91
|
+
Level of severity of the error.
|
|
95
92
|
|
|
96
93
|
|
|
97
94
|
</td></tr>
|
|
@@ -110,7 +107,7 @@ string
|
|
|
110
107
|
|
|
111
108
|
</td><td>
|
|
112
109
|
|
|
113
|
-
|
|
110
|
+
Error message. Non-fatal usually can be ignored.
|
|
114
111
|
|
|
115
112
|
|
|
116
113
|
</td></tr>
|
|
@@ -129,7 +126,7 @@ string
|
|
|
129
126
|
|
|
130
127
|
</td><td>
|
|
131
128
|
|
|
132
|
-
|
|
129
|
+
Exact component that originated the error.
|
|
133
130
|
|
|
134
131
|
|
|
135
132
|
</td></tr>
|
|
@@ -148,7 +145,7 @@ string
|
|
|
148
145
|
|
|
149
146
|
</td><td>
|
|
150
147
|
|
|
151
|
-
|
|
148
|
+
Component subsystem of the error origin
|
|
152
149
|
|
|
153
150
|
|
|
154
151
|
</td></tr>
|
|
@@ -162,12 +159,12 @@ string
|
|
|
162
159
|
|
|
163
160
|
</td><td>
|
|
164
161
|
|
|
165
|
-
{ title: string; message: string; }
|
|
162
|
+
{ title: string; message: string; icon?: string; }
|
|
166
163
|
|
|
167
164
|
|
|
168
165
|
</td><td>
|
|
169
166
|
|
|
170
|
-
|
|
167
|
+
_(Optional)_ UI description of the error.
|
|
171
168
|
|
|
172
169
|
|
|
173
170
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlaybackError.message 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
|
Error message. Non-fatal usually can be ignored.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlaybackError.origin 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
|
Exact component that originated the error.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlaybackError.UI 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
|
UI description of the error.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -15,5 +12,6 @@ UI description of the error.
|
|
|
15
12
|
UI?: {
|
|
16
13
|
title: string;
|
|
17
14
|
message: string;
|
|
15
|
+
icon?: string;
|
|
18
16
|
};
|
|
19
17
|
```
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## PlaybackErrorCode 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
|
Codes of errors occurring within the playback component.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -45,7 +42,7 @@ Generic
|
|
|
45
42
|
|
|
46
43
|
</td><td>
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
An unknown or uncategorised error.
|
|
49
46
|
|
|
50
47
|
|
|
51
48
|
</td></tr>
|
|
@@ -61,7 +58,7 @@ MediaSourceAccessDenied
|
|
|
61
58
|
|
|
62
59
|
</td><td>
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
The media source is not accessible due to some protection policy.
|
|
65
62
|
|
|
66
63
|
|
|
67
64
|
</td></tr>
|
|
@@ -77,7 +74,7 @@ MediaSourceUnavailable
|
|
|
77
74
|
|
|
78
75
|
</td><td>
|
|
79
76
|
|
|
80
|
-
|
|
77
|
+
The media source is not available. Typically a network error.
|
|
81
78
|
|
|
82
79
|
|
|
83
80
|
</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 allows changing the playback speed of the video.
|
|
10
|
+
`PLUGIN` that allows changing the playback speed of the video.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## PlaybackType type
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
Type of a stream playback
|
|
7
|
+
Type of a stream
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
13
10
|
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.attachTo() 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
|
Initializes the player at the given container element.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.destroy() 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
|
Destroys the player, releasing all resources and unmounting its UI from the DOM.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.getCurrentTime() 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
|
Current playback (time since the beginning of the stream), if appropriate.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.getDuration() 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
|
Duration of the current media in seconds, if appropriate.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.getVolume() 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
|
Gets the current volume of the media content being played.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Player class
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
The main component to use in the application code.
|
|
7
|
+
`MAIN` component to use in the application code.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
13
10
|
|
|
@@ -47,7 +44,7 @@ Description
|
|
|
47
44
|
|
|
48
45
|
</td><td>
|
|
49
46
|
|
|
50
|
-
|
|
47
|
+
Constructs a new instance of the `Player` class
|
|
51
48
|
|
|
52
49
|
|
|
53
50
|
</td></tr>
|
|
@@ -81,7 +78,7 @@ Description
|
|
|
81
78
|
|
|
82
79
|
</td><td>
|
|
83
80
|
|
|
84
|
-
|
|
81
|
+
Initializes the player at the given container element.
|
|
85
82
|
|
|
86
83
|
|
|
87
84
|
</td></tr>
|
|
@@ -95,7 +92,7 @@ Description
|
|
|
95
92
|
|
|
96
93
|
</td><td>
|
|
97
94
|
|
|
98
|
-
|
|
95
|
+
Configures the player.
|
|
99
96
|
|
|
100
97
|
|
|
101
98
|
</td></tr>
|
|
@@ -109,7 +106,7 @@ Description
|
|
|
109
106
|
|
|
110
107
|
</td><td>
|
|
111
108
|
|
|
112
|
-
|
|
109
|
+
Destroys the player, releasing all resources and unmounting its UI from the DOM.
|
|
113
110
|
|
|
114
111
|
|
|
115
112
|
</td></tr>
|
|
@@ -123,7 +120,7 @@ Description
|
|
|
123
120
|
|
|
124
121
|
</td><td>
|
|
125
122
|
|
|
126
|
-
|
|
123
|
+
Current playback (time since the beginning of the stream), if appropriate.
|
|
127
124
|
|
|
128
125
|
|
|
129
126
|
</td></tr>
|
|
@@ -137,7 +134,7 @@ Description
|
|
|
137
134
|
|
|
138
135
|
</td><td>
|
|
139
136
|
|
|
140
|
-
|
|
137
|
+
Duration of the current media in seconds, if appropriate.
|
|
141
138
|
|
|
142
139
|
|
|
143
140
|
</td></tr>
|
|
@@ -151,7 +148,7 @@ Description
|
|
|
151
148
|
|
|
152
149
|
</td><td>
|
|
153
150
|
|
|
154
|
-
|
|
151
|
+
Gets the current volume of the media content being played.
|
|
155
152
|
|
|
156
153
|
|
|
157
154
|
</td></tr>
|
|
@@ -165,7 +162,7 @@ Description
|
|
|
165
162
|
|
|
166
163
|
</td><td>
|
|
167
164
|
|
|
168
|
-
|
|
165
|
+
Indicates whether DVR is enabled.
|
|
169
166
|
|
|
170
167
|
|
|
171
168
|
</td></tr>
|
|
@@ -179,7 +176,7 @@ Description
|
|
|
179
176
|
|
|
180
177
|
</td><td>
|
|
181
178
|
|
|
182
|
-
|
|
179
|
+
Indicates whether DVR is in use.
|
|
183
180
|
|
|
184
181
|
|
|
185
182
|
</td></tr>
|
|
@@ -193,7 +190,7 @@ Description
|
|
|
193
190
|
|
|
194
191
|
</td><td>
|
|
195
192
|
|
|
196
|
-
|
|
193
|
+
Indicates muted state of the video.
|
|
197
194
|
|
|
198
195
|
|
|
199
196
|
</td></tr>
|
|
@@ -207,7 +204,7 @@ Description
|
|
|
207
204
|
|
|
208
205
|
</td><td>
|
|
209
206
|
|
|
210
|
-
|
|
207
|
+
Indicates the playing state.
|
|
211
208
|
|
|
212
209
|
|
|
213
210
|
</td></tr>
|
|
@@ -221,7 +218,7 @@ Description
|
|
|
221
218
|
|
|
222
219
|
</td><td>
|
|
223
220
|
|
|
224
|
-
|
|
221
|
+
Mutes the sound of the video.
|
|
225
222
|
|
|
226
223
|
|
|
227
224
|
</td></tr>
|
|
@@ -235,7 +232,7 @@ Description
|
|
|
235
232
|
|
|
236
233
|
</td><td>
|
|
237
234
|
|
|
238
|
-
|
|
235
|
+
Removes a previously added event listener
|
|
239
236
|
|
|
240
237
|
|
|
241
238
|
</td></tr>
|
|
@@ -249,7 +246,7 @@ Description
|
|
|
249
246
|
|
|
250
247
|
</td><td>
|
|
251
248
|
|
|
252
|
-
|
|
249
|
+
Adds a listener to a player event
|
|
253
250
|
|
|
254
251
|
|
|
255
252
|
</td></tr>
|
|
@@ -263,7 +260,7 @@ Description
|
|
|
263
260
|
|
|
264
261
|
</td><td>
|
|
265
262
|
|
|
266
|
-
|
|
263
|
+
Pauses playback.
|
|
267
264
|
|
|
268
265
|
|
|
269
266
|
</td></tr>
|
|
@@ -277,7 +274,7 @@ Description
|
|
|
277
274
|
|
|
278
275
|
</td><td>
|
|
279
276
|
|
|
280
|
-
|
|
277
|
+
Starts playback.
|
|
281
278
|
|
|
282
279
|
|
|
283
280
|
</td></tr>
|
|
@@ -293,7 +290,7 @@ Description
|
|
|
293
290
|
|
|
294
291
|
</td><td>
|
|
295
292
|
|
|
296
|
-
|
|
293
|
+
Registers a plugin.
|
|
297
294
|
|
|
298
295
|
|
|
299
296
|
</td></tr>
|
|
@@ -307,7 +304,7 @@ Description
|
|
|
307
304
|
|
|
308
305
|
</td><td>
|
|
309
306
|
|
|
310
|
-
|
|
307
|
+
Resizes the player container element and everything within it.
|
|
311
308
|
|
|
312
309
|
|
|
313
310
|
</td></tr>
|
|
@@ -321,7 +318,7 @@ Description
|
|
|
321
318
|
|
|
322
319
|
</td><td>
|
|
323
320
|
|
|
324
|
-
|
|
321
|
+
Seeks to the given time.
|
|
325
322
|
|
|
326
323
|
|
|
327
324
|
</td></tr>
|
|
@@ -335,7 +332,7 @@ Description
|
|
|
335
332
|
|
|
336
333
|
</td><td>
|
|
337
334
|
|
|
338
|
-
|
|
335
|
+
Sets the current volume of the media content being played.
|
|
339
336
|
|
|
340
337
|
|
|
341
338
|
</td></tr>
|
|
@@ -349,7 +346,7 @@ Description
|
|
|
349
346
|
|
|
350
347
|
</td><td>
|
|
351
348
|
|
|
352
|
-
|
|
349
|
+
Stops playback.
|
|
353
350
|
|
|
354
351
|
|
|
355
352
|
</td></tr>
|
|
@@ -363,13 +360,13 @@ Description
|
|
|
363
360
|
|
|
364
361
|
</td><td>
|
|
365
362
|
|
|
366
|
-
|
|
363
|
+
Unmutes the video sound.
|
|
367
364
|
|
|
368
365
|
|
|
369
366
|
</td></tr>
|
|
370
367
|
<tr><td>
|
|
371
368
|
|
|
372
|
-
[unregisterPlugin(
|
|
369
|
+
[unregisterPlugin(name)](./player.player.unregisterplugin.md)
|
|
373
370
|
|
|
374
371
|
|
|
375
372
|
</td><td>
|
|
@@ -379,7 +376,7 @@ Description
|
|
|
379
376
|
|
|
380
377
|
</td><td>
|
|
381
378
|
|
|
382
|
-
|
|
379
|
+
Unregisters a plugin registered earlier with [Player.registerPlugin()](./player.player.registerplugin.md)<!-- -->.
|
|
383
380
|
|
|
384
381
|
|
|
385
382
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.resize() 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
|
Resizes the player container element and everything within it.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Player.setVolume() 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
|
Sets the current volume of the media content being played.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|