@theoplayer/web-ui 1.14.0 → 1.15.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @theoplayer/web-ui
2
2
 
3
+ ## 1.15.0
4
+
5
+ ### ✨ Features
6
+
7
+ - 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.
8
+
9
+ ### 🐛 Issues
10
+
11
+ - Fixed `<theolive-default-ui>` to stop using deprecated OptiView Live events.
12
+ - 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.
13
+
3
14
  ## 1.14.0
4
15
 
5
16
  ### ✨ Features
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * THEOplayer Open Video UI for Web (v1.14.0)
2
+ * THEOplayer Open Video UI for Web (v1.15.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
  */
@@ -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;
@@ -2083,6 +2104,7 @@ declare class DefaultUI extends HTMLElement {
2083
2104
  protected readonly _ui: UIContainer;
2084
2105
  private readonly _titleSlot;
2085
2106
  private readonly _timeRange;
2107
+ private _timeRangeInertTimeout;
2086
2108
  private _appliedExtensions;
2087
2109
  /**
2088
2110
  * Creates a new THEOplayer default UI.
@@ -2137,6 +2159,10 @@ declare class DefaultUI extends HTMLElement {
2137
2159
  */
2138
2160
  get streamType(): StreamType;
2139
2161
  set streamType(value: StreamType);
2162
+ /**
2163
+ * Whether the user has stopped interacting with the UI and is considered to be "idle".
2164
+ */
2165
+ get userIdle(): boolean;
2140
2166
  /**
2141
2167
  * The timeout (in seconds) between when the user stops interacting with the UI,
2142
2168
  * and when the user is considered to be "idle".
@@ -2154,6 +2180,7 @@ declare class DefaultUI extends HTMLElement {
2154
2180
  attributeChangedCallback(attrName: string, oldValue: any, newValue: any): void;
2155
2181
  private readonly _updateStreamType;
2156
2182
  private readonly _dispatchReadyEvent;
2183
+ private readonly _updateUserIdle;
2157
2184
  private readonly _onTitleSlotChange;
2158
2185
  }
2159
2186
  declare global {