@gcorevideo/player 2.19.12 → 2.19.14
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/dist/core.js +16 -11
- package/dist/index.css +1405 -1405
- package/dist/index.js +1239 -1088
- package/dist/player.d.ts +209 -45
- package/dist/plugins/index.css +1461 -1461
- package/dist/plugins/index.js +4005 -3858
- package/docs/api/player.bottomgear.md +3 -289
- package/docs/api/player.dvrcontrols._constructor_.md +3 -0
- package/docs/api/player.dvrcontrols.md +10 -201
- package/docs/api/player.levelselector.md +8 -140
- package/docs/api/player.md +9 -5
- package/docs/api/player.mediacontrol.disable.md +2 -0
- package/docs/api/player.mediacontrol.disabledcontrolbutton.md +1 -1
- package/docs/api/player.mediacontrol.enable.md +2 -0
- package/docs/api/player.mediacontrol.enablecontrolbutton.md +1 -1
- package/docs/api/player.mediacontrol.getelement.md +19 -1
- package/docs/api/player.mediacontrol.md +17 -281
- package/docs/api/player.mediacontrol.volume.md +2 -2
- package/docs/api/player.mediacontrolelement.md +2 -1
- package/docs/api/player.poster.disable.md +5 -0
- package/docs/api/player.poster.enable.md +5 -0
- package/docs/api/player.poster.md +25 -183
- package/lib/Player.d.ts +1 -0
- package/lib/Player.d.ts.map +1 -1
- package/lib/Player.js +15 -10
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/plugins/audio-selector/AudioSelector.js +2 -2
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts.map +1 -1
- package/lib/plugins/big-mute-button/BigMuteButton.js +2 -1
- package/lib/plugins/bottom-gear/BottomGear.d.ts +38 -7
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +53 -33
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +20 -24
- package/lib/plugins/clappr-stats/ClapprStats.js +1 -1
- package/lib/plugins/click-to-pause/ClickToPause.js +1 -1
- package/lib/plugins/clips/Clips.js +2 -2
- package/lib/plugins/context-menu/ContextMenu.js +1 -1
- package/lib/plugins/disable-controls/DisableControls.js +1 -1
- package/lib/plugins/dvr-controls/DvrControls.d.ts +30 -4
- package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.js +39 -11
- package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
- package/lib/plugins/error-screen/ErrorScreen.js +2 -1
- package/lib/plugins/favicon/Favicon.js +1 -1
- package/lib/plugins/google-analytics/GoogleAnalytics.js +1 -1
- package/lib/plugins/level-selector/LevelSelector.d.ts +25 -6
- package/lib/plugins/level-selector/LevelSelector.d.ts.map +1 -1
- package/lib/plugins/level-selector/LevelSelector.js +33 -12
- package/lib/plugins/logo/Logo.js +1 -1
- package/lib/plugins/media-control/MediaControl.d.ts +66 -22
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +72 -35
- package/lib/plugins/multi-camera/MultiCamera.js +3 -3
- package/lib/plugins/picture-in-picture/PictureInPicture.js +3 -3
- package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
- package/lib/plugins/playback-rate/PlaybackRate.js +3 -3
- package/lib/plugins/poster/Poster.d.ts +57 -3
- package/lib/plugins/poster/Poster.d.ts.map +1 -1
- package/lib/plugins/poster/Poster.js +57 -9
- package/lib/plugins/seek-time/SeekTime.js +2 -2
- package/lib/plugins/share/Share.js +2 -2
- package/lib/plugins/skip-time/SkipTime.js +1 -1
- package/lib/plugins/source-controller/SourceController.js +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +1 -1
- package/lib/plugins/statistics/Statistics.js +1 -1
- package/lib/plugins/subtitles/Subtitles.js +3 -3
- package/lib/plugins/thumbnails/Thumbnails.js +3 -3
- package/lib/plugins/types.d.ts +1 -7
- package/lib/plugins/types.d.ts.map +1 -1
- package/lib/plugins/vast-ads/VastAds.d.ts +1 -0
- package/lib/plugins/vast-ads/VastAds.d.ts.map +1 -1
- package/lib/plugins/vast-ads/VastAds.js +6 -3
- package/package.json +2 -1
- package/src/Player.ts +15 -9
- package/src/__tests__/Player.test.ts +15 -76
- package/src/index.ts +1 -0
- package/src/plugins/audio-selector/AudioSelector.ts +2 -2
- package/src/plugins/big-mute-button/BigMuteButton.ts +2 -1
- package/src/plugins/bottom-gear/BottomGear.ts +67 -42
- package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +21 -26
- 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 +2 -2
- package/src/plugins/context-menu/ContextMenu.ts +1 -1
- package/src/plugins/disable-controls/DisableControls.ts +1 -1
- package/src/plugins/dvr-controls/DvrControls.ts +42 -14
- package/src/plugins/error-screen/ErrorScreen.ts +2 -1
- package/src/plugins/favicon/Favicon.ts +1 -1
- package/src/plugins/google-analytics/GoogleAnalytics.ts +1 -1
- package/src/plugins/level-selector/LevelSelector.ts +34 -14
- package/src/plugins/level-selector/__tests__/LevelSelector.test.ts +22 -2
- package/src/plugins/logo/Logo.ts +1 -1
- package/src/plugins/media-control/MediaControl.ts +83 -44
- package/src/plugins/multi-camera/MultiCamera.ts +3 -3
- package/src/plugins/picture-in-picture/PictureInPicture.ts +3 -3
- package/src/plugins/playback-rate/PlaybackRate.ts +3 -4
- package/src/plugins/poster/Poster.ts +59 -12
- package/src/plugins/seek-time/SeekTime.ts +2 -2
- package/src/plugins/share/Share.ts +2 -2
- package/src/plugins/skip-time/SkipTime.ts +1 -1
- package/src/plugins/source-controller/SourceController.ts +1 -1
- package/src/plugins/source-controller/__tests__/SourceController.test.ts +5 -0
- package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +1 -1
- package/src/plugins/statistics/Statistics.ts +1 -1
- package/src/plugins/subtitles/Subtitles.ts +3 -3
- package/src/plugins/thumbnails/Thumbnails.ts +3 -3
- package/src/plugins/types.ts +1 -0
- package/src/plugins/vast-ads/VastAds.ts +6 -6
- package/temp/player.api.json +3301 -5030
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.bottomgear.attributes.md +0 -17
- package/docs/api/player.bottomgear.bindevents.md +0 -18
- package/docs/api/player.bottomgear.container.md +0 -14
- package/docs/api/player.bottomgear.events.md +0 -16
- package/docs/api/player.bottomgear.hide.md +0 -18
- package/docs/api/player.bottomgear.name.md +0 -14
- package/docs/api/player.bottomgear.refresh.md +0 -18
- package/docs/api/player.bottomgear.reload.md +0 -18
- package/docs/api/player.bottomgear.render.md +0 -18
- package/docs/api/player.bottomgear.supportedversion.md +0 -16
- package/docs/api/player.bottomgear.template.md +0 -14
- package/docs/api/player.bottomgear.togglegearmenu.md +0 -18
- package/docs/api/player.bottomgear.unbindevents.md +0 -18
- package/docs/api/player.bottomgear.version.md +0 -14
- package/docs/api/player.dvrcontrols.attributes.md +0 -14
- package/docs/api/player.dvrcontrols.bindevents.md +0 -15
- package/docs/api/player.dvrcontrols.click.md +0 -15
- package/docs/api/player.dvrcontrols.events.md +0 -13
- package/docs/api/player.dvrcontrols.name.md +0 -11
- package/docs/api/player.dvrcontrols.render.md +0 -15
- package/docs/api/player.dvrcontrols.settingsupdate.md +0 -15
- package/docs/api/player.dvrcontrols.shouldrender.md +0 -15
- package/docs/api/player.dvrcontrols.supportedversion.md +0 -13
- package/docs/api/player.dvrcontrols.template.md +0 -11
- package/docs/api/player.levelselector.attributes.md +0 -17
- package/docs/api/player.levelselector.bindevents.md +0 -18
- package/docs/api/player.levelselector.name.md +0 -14
- package/docs/api/player.levelselector.render.md +0 -18
- package/docs/api/player.levelselector.supportedversion.md +0 -16
- package/docs/api/player.levelselector.version.md +0 -14
- package/docs/api/player.mediacontrol.attributes.md +0 -17
- package/docs/api/player.mediacontrol.bindcontainerevents.md +0 -18
- package/docs/api/player.mediacontrol.bindevents.md +0 -18
- package/docs/api/player.mediacontrol.container.md +0 -14
- package/docs/api/player.mediacontrol.destroy.md +0 -18
- package/docs/api/player.mediacontrol.disabled.md +0 -14
- package/docs/api/player.mediacontrol.events.md +0 -40
- package/docs/api/player.mediacontrol.getexternalinterface.md +0 -21
- package/docs/api/player.mediacontrol.name.md +0 -14
- package/docs/api/player.mediacontrol.pause.md +0 -20
- package/docs/api/player.mediacontrol.play.md +0 -20
- package/docs/api/player.mediacontrol.playback.md +0 -14
- package/docs/api/player.mediacontrol.render.md +0 -18
- package/docs/api/player.mediacontrol.setmuted.md +0 -52
- package/docs/api/player.mediacontrol.stop.md +0 -20
- package/docs/api/player.mediacontrol.supportedversion.md +0 -16
- package/docs/api/player.poster.attributes.md +0 -14
- package/docs/api/player.poster.bindevents.md +0 -15
- package/docs/api/player.poster.destroy.md +0 -15
- package/docs/api/player.poster.events.md +0 -13
- package/docs/api/player.poster.name.md +0 -11
- package/docs/api/player.poster.render.md +0 -15
- package/docs/api/player.poster.shouldrender.md +0 -11
- package/docs/api/player.poster.showonvideoend.md +0 -11
- package/docs/api/player.poster.supportedversion.md +0 -13
- package/docs/api/player.poster.template.md +0 -11
- package/src/plugins/build.ts +0 -1
package/docs/api/player.md
CHANGED
|
@@ -8,7 +8,7 @@ Video player for the Gcore streaming platform
|
|
|
8
8
|
|
|
9
9
|
## Remarks
|
|
10
10
|
|
|
11
|
-
This package provides a video player for the Gcore streaming platform. It is built on top of the Clappr library and provides a framework for building custom integrations.
|
|
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
13
|
## Classes
|
|
14
14
|
|
|
@@ -52,7 +52,7 @@ Description
|
|
|
52
52
|
|
|
53
53
|
</td><td>
|
|
54
54
|
|
|
55
|
-
**_(BETA)_**
|
|
55
|
+
**_(BETA)_** Adds the gear button that triggers extra options menu on the right side of the [media control](./player.mediacontrol.md) UI
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
</td></tr>
|
|
@@ -121,6 +121,8 @@ Description
|
|
|
121
121
|
|
|
122
122
|
</td><td>
|
|
123
123
|
|
|
124
|
+
**_(BETA)_** Adds the DVR controls to the media control UI
|
|
125
|
+
|
|
124
126
|
|
|
125
127
|
</td></tr>
|
|
126
128
|
<tr><td>
|
|
@@ -157,7 +159,7 @@ Description
|
|
|
157
159
|
|
|
158
160
|
</td><td>
|
|
159
161
|
|
|
160
|
-
**_(BETA)_**
|
|
162
|
+
**_(BETA)_** A [media control](./player.mediacontrol.md) plugin that provides a UI to control the quality level of the playback.
|
|
161
163
|
|
|
162
164
|
|
|
163
165
|
</td></tr>
|
|
@@ -177,7 +179,7 @@ Description
|
|
|
177
179
|
|
|
178
180
|
</td><td>
|
|
179
181
|
|
|
180
|
-
**_(BETA)_** The MediaControl
|
|
182
|
+
**_(BETA)_** The MediaControl provides a foundation for developing custom media controls UI.
|
|
181
183
|
|
|
182
184
|
|
|
183
185
|
</td></tr>
|
|
@@ -226,6 +228,8 @@ Description
|
|
|
226
228
|
|
|
227
229
|
</td><td>
|
|
228
230
|
|
|
231
|
+
**_(BETA)_** Displays a poster image in the background and a big play button on top when playback is stopped
|
|
232
|
+
|
|
229
233
|
|
|
230
234
|
</td></tr>
|
|
231
235
|
<tr><td>
|
|
@@ -523,7 +527,7 @@ Description
|
|
|
523
527
|
|
|
524
528
|
</td><td>
|
|
525
529
|
|
|
526
|
-
**_(BETA)_**
|
|
530
|
+
**_(BETA)_** Media control elements, mount points for additional plugins
|
|
527
531
|
|
|
528
532
|
|
|
529
533
|
</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
|
-
Disable the control
|
|
10
|
+
Disable the user interaction for the control buttons
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -7,6 +7,8 @@
|
|
|
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
|
+
Reenables the plugin disabled earlier with the [MediaControl.disable()](./player.mediacontrol.disable.md) method
|
|
11
|
+
|
|
10
12
|
**Signature:**
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
@@ -54,5 +54,23 @@ The name of the media control element
|
|
|
54
54
|
|
|
55
55
|
[ZeptoResult](./player.zeptoresult.md) \| null
|
|
56
56
|
|
|
57
|
-
The DOM node to render
|
|
57
|
+
The DOM node to render to or extend
|
|
58
|
+
|
|
59
|
+
## Remarks
|
|
60
|
+
|
|
61
|
+
Use this method to render custom media control UI in a plugin
|
|
62
|
+
|
|
63
|
+
## Example
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
class MyPlugin extends UICorePlugin {
|
|
68
|
+
override render() {
|
|
69
|
+
const mediaControl = this.core.getPlugin('media_control')
|
|
70
|
+
const clipText = mediaControl.getElement('clipText')
|
|
71
|
+
clipText?.el.text('Here we go')
|
|
72
|
+
return this
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
58
76
|
|
|
@@ -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
|
-
The MediaControl
|
|
10
|
+
The MediaControl provides a foundation for developing custom media controls UI.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -18,7 +18,16 @@ export declare class MediaControl extends UICorePlugin
|
|
|
18
18
|
|
|
19
19
|
## Remarks
|
|
20
20
|
|
|
21
|
-
|
|
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
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
Player.registerPlugin(MediaControl) // <--- This must go first
|
|
28
|
+
Player.registerPlugin(LevelSelector) // a media control plugin
|
|
29
|
+
Player.registerPlugin(NerdStats) // another media control plugin
|
|
30
|
+
```
|
|
22
31
|
|
|
23
32
|
## Constructors
|
|
24
33
|
|
|
@@ -79,90 +88,6 @@ Description
|
|
|
79
88
|
</th></tr></thead>
|
|
80
89
|
<tbody><tr><td>
|
|
81
90
|
|
|
82
|
-
[attributes](./player.mediacontrol.attributes.md)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</td><td>
|
|
86
|
-
|
|
87
|
-
`readonly`
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</td><td>
|
|
91
|
-
|
|
92
|
-
{ class: string; 'data-media-control-skin-1': string; }
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</td><td>
|
|
96
|
-
|
|
97
|
-
**_(BETA)_**
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
</td></tr>
|
|
101
|
-
<tr><td>
|
|
102
|
-
|
|
103
|
-
[container](./player.mediacontrol.container.md)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
</td><td>
|
|
107
|
-
|
|
108
|
-
`readonly`
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</td><td>
|
|
112
|
-
|
|
113
|
-
any
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
</td><td>
|
|
117
|
-
|
|
118
|
-
**_(BETA)_**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
</td></tr>
|
|
122
|
-
<tr><td>
|
|
123
|
-
|
|
124
|
-
[disabled](./player.mediacontrol.disabled.md)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</td><td>
|
|
128
|
-
|
|
129
|
-
`readonly`
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</td><td>
|
|
133
|
-
|
|
134
|
-
any
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
</td><td>
|
|
138
|
-
|
|
139
|
-
**_(BETA)_**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
</td></tr>
|
|
143
|
-
<tr><td>
|
|
144
|
-
|
|
145
|
-
[events](./player.mediacontrol.events.md)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</td><td>
|
|
149
|
-
|
|
150
|
-
`readonly`
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
</td><td>
|
|
154
|
-
|
|
155
|
-
{ 'click \[data-play\]': string; 'click \[data-pause\]': string; 'click \[data-playpause\]': string; 'click \[data-stop\]': string; 'click \[data-playstop\]': string; 'click \[data-fullscreen\]': string; 'click .bar-container\[data-seekbar\]': string; 'click .bar-container\[data-volume\]': string; 'click .drawer-icon\[data-volume\]': string; 'mouseenter .drawer-container\[data-volume\]': string; 'mouseleave .drawer-container\[data-volume\]': string; 'mousedown .bar-container\[data-volume\]': string; 'touchstart .bar-container\[data-volume\]': string; 'mousemove .bar-container\[data-volume\]': string; 'touchmove .bar-container\[data-volume\]': string; 'mousedown .bar-scrubber\[data-seekbar\]': string; 'mousedown .bar-container\[data-seekbar\]': string; 'touchstart .bar-scrubber\[data-seekbar\]': string; 'touchstart .bar-container\[data-seekbar\]': string; 'mousemove .bar-container\[data-seekbar\]': string; 'touchmove .bar-container\[data-seekbar\]': string; 'mouseleave .bar-container\[data-seekbar\]': string; 'touchend .bar-container\[data-seekbar\]': string; 'mouseenter .media-control-layer\[data-controls\]': string; 'mouseleave .media-control-layer\[data-controls\]': string; }
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
</td><td>
|
|
159
|
-
|
|
160
|
-
**_(BETA)_**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
</td></tr>
|
|
164
|
-
<tr><td>
|
|
165
|
-
|
|
166
91
|
[muted](./player.mediacontrol.muted.md)
|
|
167
92
|
|
|
168
93
|
|
|
@@ -181,69 +106,6 @@ boolean
|
|
|
181
106
|
**_(BETA)_** Muted state
|
|
182
107
|
|
|
183
108
|
|
|
184
|
-
</td></tr>
|
|
185
|
-
<tr><td>
|
|
186
|
-
|
|
187
|
-
[name](./player.mediacontrol.name.md)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
</td><td>
|
|
191
|
-
|
|
192
|
-
`readonly`
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
</td><td>
|
|
196
|
-
|
|
197
|
-
string
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
</td><td>
|
|
201
|
-
|
|
202
|
-
**_(BETA)_**
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
</td></tr>
|
|
206
|
-
<tr><td>
|
|
207
|
-
|
|
208
|
-
[playback](./player.mediacontrol.playback.md)
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
</td><td>
|
|
212
|
-
|
|
213
|
-
`readonly`
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
</td><td>
|
|
217
|
-
|
|
218
|
-
any
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
</td><td>
|
|
222
|
-
|
|
223
|
-
**_(BETA)_**
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
</td></tr>
|
|
227
|
-
<tr><td>
|
|
228
|
-
|
|
229
|
-
[supportedVersion](./player.mediacontrol.supportedversion.md)
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
</td><td>
|
|
233
|
-
|
|
234
|
-
`readonly`
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
</td><td>
|
|
238
|
-
|
|
239
|
-
{ min: string; }
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
</td><td>
|
|
243
|
-
|
|
244
|
-
**_(BETA)_**
|
|
245
|
-
|
|
246
|
-
|
|
247
109
|
</td></tr>
|
|
248
110
|
<tr><td>
|
|
249
111
|
|
|
@@ -257,12 +119,12 @@ any
|
|
|
257
119
|
|
|
258
120
|
</td><td>
|
|
259
121
|
|
|
260
|
-
|
|
122
|
+
number
|
|
261
123
|
|
|
262
124
|
|
|
263
125
|
</td><td>
|
|
264
126
|
|
|
265
|
-
**_(BETA)_** Current volume
|
|
127
|
+
**_(BETA)_** Current volume \[0..100\]
|
|
266
128
|
|
|
267
129
|
|
|
268
130
|
</td></tr>
|
|
@@ -288,48 +150,6 @@ Description
|
|
|
288
150
|
</th></tr></thead>
|
|
289
151
|
<tbody><tr><td>
|
|
290
152
|
|
|
291
|
-
[bindContainerEvents()](./player.mediacontrol.bindcontainerevents.md)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
</td><td>
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
</td><td>
|
|
298
|
-
|
|
299
|
-
**_(BETA)_**
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
</td></tr>
|
|
303
|
-
<tr><td>
|
|
304
|
-
|
|
305
|
-
[bindEvents()](./player.mediacontrol.bindevents.md)
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
</td><td>
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
</td><td>
|
|
312
|
-
|
|
313
|
-
**_(BETA)_**
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
</td></tr>
|
|
317
|
-
<tr><td>
|
|
318
|
-
|
|
319
|
-
[destroy()](./player.mediacontrol.destroy.md)
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
</td><td>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
</td><td>
|
|
326
|
-
|
|
327
|
-
**_(BETA)_**
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
</td></tr>
|
|
331
|
-
<tr><td>
|
|
332
|
-
|
|
333
153
|
[disable()](./player.mediacontrol.disable.md)
|
|
334
154
|
|
|
335
155
|
|
|
@@ -338,7 +158,7 @@ Description
|
|
|
338
158
|
|
|
339
159
|
</td><td>
|
|
340
160
|
|
|
341
|
-
**_(BETA)_**
|
|
161
|
+
**_(BETA)_** Disables the plugin and unmounts its UI
|
|
342
162
|
|
|
343
163
|
|
|
344
164
|
</td></tr>
|
|
@@ -352,7 +172,7 @@ Description
|
|
|
352
172
|
|
|
353
173
|
</td><td>
|
|
354
174
|
|
|
355
|
-
**_(BETA)_** Disable the control
|
|
175
|
+
**_(BETA)_** Disable the user interaction for the control buttons
|
|
356
176
|
|
|
357
177
|
|
|
358
178
|
</td></tr>
|
|
@@ -366,7 +186,7 @@ Description
|
|
|
366
186
|
|
|
367
187
|
</td><td>
|
|
368
188
|
|
|
369
|
-
**_(BETA)_**
|
|
189
|
+
**_(BETA)_** Reenables the plugin disabled earlier with the [MediaControl.disable()](./player.mediacontrol.disable.md) method
|
|
370
190
|
|
|
371
191
|
|
|
372
192
|
</td></tr>
|
|
@@ -380,7 +200,7 @@ Description
|
|
|
380
200
|
|
|
381
201
|
</td><td>
|
|
382
202
|
|
|
383
|
-
**_(BETA)_** Enable the
|
|
203
|
+
**_(BETA)_** Enable the user interaction disabled earlier
|
|
384
204
|
|
|
385
205
|
|
|
386
206
|
</td></tr>
|
|
@@ -397,62 +217,6 @@ Description
|
|
|
397
217
|
**_(BETA)_** Get a media control element DOM node
|
|
398
218
|
|
|
399
219
|
|
|
400
|
-
</td></tr>
|
|
401
|
-
<tr><td>
|
|
402
|
-
|
|
403
|
-
[getExternalInterface()](./player.mediacontrol.getexternalinterface.md)
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
</td><td>
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
</td><td>
|
|
410
|
-
|
|
411
|
-
**_(BETA)_**
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
</td></tr>
|
|
415
|
-
<tr><td>
|
|
416
|
-
|
|
417
|
-
[pause()](./player.mediacontrol.pause.md)
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
</td><td>
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
</td><td>
|
|
424
|
-
|
|
425
|
-
**_(BETA)_** Pause the playback
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
</td></tr>
|
|
429
|
-
<tr><td>
|
|
430
|
-
|
|
431
|
-
[play()](./player.mediacontrol.play.md)
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
</td><td>
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
</td><td>
|
|
438
|
-
|
|
439
|
-
**_(BETA)_** Start the playback
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
</td></tr>
|
|
443
|
-
<tr><td>
|
|
444
|
-
|
|
445
|
-
[render()](./player.mediacontrol.render.md)
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
</td><td>
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
</td><td>
|
|
452
|
-
|
|
453
|
-
**_(BETA)_**
|
|
454
|
-
|
|
455
|
-
|
|
456
220
|
</td></tr>
|
|
457
221
|
<tr><td>
|
|
458
222
|
|
|
@@ -467,20 +231,6 @@ Description
|
|
|
467
231
|
**_(BETA)_** Set the initial volume, which is preserved when playback is interrupted by an advertisement
|
|
468
232
|
|
|
469
233
|
|
|
470
|
-
</td></tr>
|
|
471
|
-
<tr><td>
|
|
472
|
-
|
|
473
|
-
[setMuted(value)](./player.mediacontrol.setmuted.md)
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
</td><td>
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
</td><td>
|
|
480
|
-
|
|
481
|
-
**_(BETA)_**
|
|
482
|
-
|
|
483
|
-
|
|
484
234
|
</td></tr>
|
|
485
235
|
<tr><td>
|
|
486
236
|
|
|
@@ -495,19 +245,5 @@ Description
|
|
|
495
245
|
**_(BETA)_** Set the volume
|
|
496
246
|
|
|
497
247
|
|
|
498
|
-
</td></tr>
|
|
499
|
-
<tr><td>
|
|
500
|
-
|
|
501
|
-
[stop()](./player.mediacontrol.stop.md)
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
</td><td>
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
</td><td>
|
|
508
|
-
|
|
509
|
-
**_(BETA)_** Stop the playback
|
|
510
|
-
|
|
511
|
-
|
|
512
248
|
</td></tr>
|
|
513
249
|
</tbody></table>
|
|
@@ -7,10 +7,10 @@
|
|
|
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 volume
|
|
10
|
+
Current volume \[0..100\]
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
get volume():
|
|
15
|
+
get volume(): number;
|
|
16
16
|
```
|
|
@@ -7,9 +7,10 @@
|
|
|
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
|
+
Media control elements, mount points for additional plugins
|
|
10
11
|
|
|
11
12
|
**Signature:**
|
|
12
13
|
|
|
13
14
|
```typescript
|
|
14
|
-
export type MediaControlElement = 'clipText' | 'pip' | 'seekBarContainer';
|
|
15
|
+
export type MediaControlElement = 'bottomGear' | 'clipText' | 'pip' | 'playbackRate' | 'seekBarContainer';
|
|
15
16
|
```
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## Poster.disable() 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
|
+
Disables the plugin, unmounting it from the DOM
|
|
11
|
+
|
|
7
12
|
**Signature:**
|
|
8
13
|
|
|
9
14
|
```typescript
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## Poster.enable() 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
|
+
Reenables earlier disabled plugin
|
|
11
|
+
|
|
7
12
|
**Signature:**
|
|
8
13
|
|
|
9
14
|
```typescript
|