@theoplayer/web-ui 1.14.0 → 1.16.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/CHANGELOG.md +21 -0
- package/dist/THEOplayerUI.d.ts +32 -3
- package/dist/THEOplayerUI.es5.js +2 -2
- package/dist/THEOplayerUI.es5.mjs +2 -2
- package/dist/THEOplayerUI.js +20 -20
- package/dist/THEOplayerUI.js.map +1 -1
- package/dist/THEOplayerUI.mjs +17 -17
- package/dist/THEOplayerUI.mjs.map +1 -1
- package/dist/THEOplayerUI.node.mjs +3 -3
- package/dist/THEOplayerUI.node.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @theoplayer/web-ui
|
|
2
2
|
|
|
3
|
+
## 1.16.0
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- Added `centered-chrome` slot to `<theoplayer-default-ui>` to replace all controls in the center of the player.
|
|
8
|
+
|
|
9
|
+
### 🐛 Issues
|
|
10
|
+
|
|
11
|
+
- Fixed an issue where buttons inside the default UI could accidentally be clicked even when they were hidden because of user inactivity.
|
|
12
|
+
|
|
13
|
+
## 1.15.0
|
|
14
|
+
|
|
15
|
+
### ✨ Features
|
|
16
|
+
|
|
17
|
+
- The UI now takes `SourceDescription.streamType` into account when computing its own `stream-type` attribute. This is now the preferred method of overriding the stream type.
|
|
18
|
+
|
|
19
|
+
### 🐛 Issues
|
|
20
|
+
|
|
21
|
+
- Fixed `<theolive-default-ui>` to stop using deprecated OptiView Live events.
|
|
22
|
+
- Fixed an issue where the `<theoplayer-time-range>` inside the default UI could accidentally be clicked even when it was hidden because of user inactivity.
|
|
23
|
+
|
|
3
24
|
## 1.14.0
|
|
4
25
|
|
|
5
26
|
### ✨ Features
|
package/dist/THEOplayerUI.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* THEOplayer Open Video UI for Web (v1.
|
|
2
|
+
* THEOplayer Open Video UI for Web (v1.16.0)
|
|
3
3
|
* License: MIT
|
|
4
4
|
*/
|
|
5
5
|
import { ChromelessPlayer, VideoQuality, THEOplayerError, MediaTrack, TextTrack, TextTracksList, EdgeStyle, VendorCast, CastState, UIPlayerConfiguration, SourceDescription } from 'theoplayer/chromeless';
|
|
@@ -39,6 +39,7 @@ declare enum Attribute {
|
|
|
39
39
|
USER_IDLE_TIMEOUT = "user-idle-timeout",
|
|
40
40
|
NO_AUTO_HIDE = "no-auto-hide",
|
|
41
41
|
DISABLED = "disabled",
|
|
42
|
+
INERT = "inert",
|
|
42
43
|
HIDDEN = "hidden",
|
|
43
44
|
PAUSED = "paused",
|
|
44
45
|
ENDED = "ended",
|
|
@@ -1197,6 +1198,8 @@ declare const Range_base: {
|
|
|
1197
1198
|
*
|
|
1198
1199
|
* @attribute `disabled` - Whether the range is disabled.
|
|
1199
1200
|
* When disabled, the slider value cannot be changed, and the slider thumb is hidden.
|
|
1201
|
+
* @attribute `inert` - Whether the range is inert.
|
|
1202
|
+
* When inert, the slider value cannot be changed, but the slider thumb is still visible.
|
|
1200
1203
|
*
|
|
1201
1204
|
* @group Components
|
|
1202
1205
|
*/
|
|
@@ -1217,6 +1220,13 @@ declare abstract class Range extends Range_base {
|
|
|
1217
1220
|
*/
|
|
1218
1221
|
get disabled(): boolean;
|
|
1219
1222
|
set disabled(disabled: boolean);
|
|
1223
|
+
/**
|
|
1224
|
+
* Whether the range is inert.
|
|
1225
|
+
*
|
|
1226
|
+
* When inert, the slider value cannot be changed, but the slider thumb is still visible.
|
|
1227
|
+
*/
|
|
1228
|
+
get inert(): boolean;
|
|
1229
|
+
set inert(inert: boolean);
|
|
1220
1230
|
/**
|
|
1221
1231
|
* The current value.
|
|
1222
1232
|
*/
|
|
@@ -1842,8 +1852,8 @@ declare const READY_EVENT: "theoplayerready";
|
|
|
1842
1852
|
* @slot `top-chrome` - A slot for controls at the top of the player.
|
|
1843
1853
|
* Can be used to display the stream's title, or for a cast button ({@link ChromecastButton | `<theoplayer-chromecast-button>`}).
|
|
1844
1854
|
* @slot `middle-chrome` - A slot for controls in the middle of the player (between the top and bottom chrome).
|
|
1845
|
-
* @slot `centered-chrome` - A slot for controls
|
|
1846
|
-
* @slot `centered-loading` - A slot for a loading indicator
|
|
1855
|
+
* @slot `centered-chrome` - A slot for controls in the center of the player, layered on top of other controls.
|
|
1856
|
+
* @slot `centered-loading` - A slot for a loading indicator in the center of the player, layered on top of other controls
|
|
1847
1857
|
* but behind the centered chrome.
|
|
1848
1858
|
* @slot `menu` - A slot for extra menus (see {@link Menu | `<theoplayer-menu>`}).
|
|
1849
1859
|
* @slot `error` - A slot for an error display, to show when the player encounters a fatal error
|
|
@@ -1874,6 +1884,7 @@ declare class UIContainer extends HTMLElement {
|
|
|
1874
1884
|
private readonly _stateReceivers;
|
|
1875
1885
|
private _player;
|
|
1876
1886
|
private _source;
|
|
1887
|
+
private _isUserActive;
|
|
1877
1888
|
private _userIdleTimer;
|
|
1878
1889
|
private _previewTime;
|
|
1879
1890
|
private _activeVideoTrack;
|
|
@@ -1938,6 +1949,11 @@ declare class UIContainer extends HTMLElement {
|
|
|
1938
1949
|
* Whether the player is casting to a remote receiver.
|
|
1939
1950
|
*/
|
|
1940
1951
|
get casting(): boolean;
|
|
1952
|
+
/**
|
|
1953
|
+
* Whether the user has stopped interacting with the UI and is considered to be "idle".
|
|
1954
|
+
*/
|
|
1955
|
+
get userIdle(): boolean;
|
|
1956
|
+
private set userIdle(value);
|
|
1941
1957
|
/**
|
|
1942
1958
|
* The timeout (in seconds) between when the user stops interacting with the UI,
|
|
1943
1959
|
* and when the user is considered to be "idle".
|
|
@@ -1955,6 +1971,9 @@ declare class UIContainer extends HTMLElement {
|
|
|
1955
1971
|
* when the player switches between its VOD-specific and live-only controls.
|
|
1956
1972
|
*/
|
|
1957
1973
|
get streamType(): StreamType;
|
|
1974
|
+
/**
|
|
1975
|
+
* @deprecated use {@link SourceDescription.streamType} instead.
|
|
1976
|
+
*/
|
|
1958
1977
|
set streamType(streamType: StreamType);
|
|
1959
1978
|
/**
|
|
1960
1979
|
* The minimum length (in seconds) of a livestream's sliding window for the stream to be DVR
|
|
@@ -1991,6 +2010,7 @@ declare class UIContainer extends HTMLElement {
|
|
|
1991
2010
|
private readonly _updatePausedAndEnded;
|
|
1992
2011
|
private readonly _updateEnded;
|
|
1993
2012
|
private readonly _updateStreamType;
|
|
2013
|
+
private computeStreamType_;
|
|
1994
2014
|
private readonly _updatePlaybackRate;
|
|
1995
2015
|
private readonly _updateMuted;
|
|
1996
2016
|
private readonly _updateActiveVideoTrack;
|
|
@@ -2003,6 +2023,7 @@ declare class UIContainer extends HTMLElement {
|
|
|
2003
2023
|
private setUserActive_;
|
|
2004
2024
|
private readonly setUserIdle_;
|
|
2005
2025
|
private readonly scheduleUserIdle_;
|
|
2026
|
+
private updateUserIdle_;
|
|
2006
2027
|
private isPlayerOrMedia_;
|
|
2007
2028
|
private readonly _onTvKeyDown;
|
|
2008
2029
|
private readonly _onKeyUp;
|
|
@@ -2065,6 +2086,8 @@ declare global {
|
|
|
2065
2086
|
*
|
|
2066
2087
|
* @slot `title` - A slot for the stream's title in the top control bar.
|
|
2067
2088
|
* @slot `top-control-bar` - A slot for extra UI controls in the top control bar.
|
|
2089
|
+
* @slot `centered-chrome` - A slot to replace the controls in the center of the player,
|
|
2090
|
+
* layered on top of other controls.
|
|
2068
2091
|
* @slot `bottom-control-bar` - A slot for extra UI controls in the bottom control bar.
|
|
2069
2092
|
* @slot `menu` - A slot for extra menus (see {@link Menu | `<theoplayer-menu>`}).
|
|
2070
2093
|
* @slot `error` - A slot for an error display, to show when the player encounters a fatal error.
|
|
@@ -2083,6 +2106,7 @@ declare class DefaultUI extends HTMLElement {
|
|
|
2083
2106
|
protected readonly _ui: UIContainer;
|
|
2084
2107
|
private readonly _titleSlot;
|
|
2085
2108
|
private readonly _timeRange;
|
|
2109
|
+
private _timeRangeInertTimeout;
|
|
2086
2110
|
private _appliedExtensions;
|
|
2087
2111
|
/**
|
|
2088
2112
|
* Creates a new THEOplayer default UI.
|
|
@@ -2137,6 +2161,10 @@ declare class DefaultUI extends HTMLElement {
|
|
|
2137
2161
|
*/
|
|
2138
2162
|
get streamType(): StreamType;
|
|
2139
2163
|
set streamType(value: StreamType);
|
|
2164
|
+
/**
|
|
2165
|
+
* Whether the user has stopped interacting with the UI and is considered to be "idle".
|
|
2166
|
+
*/
|
|
2167
|
+
get userIdle(): boolean;
|
|
2140
2168
|
/**
|
|
2141
2169
|
* The timeout (in seconds) between when the user stops interacting with the UI,
|
|
2142
2170
|
* and when the user is considered to be "idle".
|
|
@@ -2154,6 +2182,7 @@ declare class DefaultUI extends HTMLElement {
|
|
|
2154
2182
|
attributeChangedCallback(attrName: string, oldValue: any, newValue: any): void;
|
|
2155
2183
|
private readonly _updateStreamType;
|
|
2156
2184
|
private readonly _dispatchReadyEvent;
|
|
2185
|
+
private readonly _updateUserIdle;
|
|
2157
2186
|
private readonly _onTitleSlotChange;
|
|
2158
2187
|
}
|
|
2159
2188
|
declare global {
|