@thalassic/ui 22.27.0 → 22.28.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/ui",
3
- "version": "22.27.0",
3
+ "version": "22.28.1",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/aria": "^22.0.0",
@@ -83,6 +83,7 @@ declare class MediaController {
83
83
  private _media;
84
84
  private _detachRegistered;
85
85
  private readonly _playing;
86
+ private readonly _hasShownFrame;
86
87
  private readonly _currentTime;
87
88
  private readonly _duration;
88
89
  private readonly _buffered;
@@ -95,6 +96,13 @@ declare class MediaController {
95
96
  private readonly _scrubbing;
96
97
  private readonly _scrubTime;
97
98
  readonly playing: Signal<boolean>;
99
+ /**
100
+ * Whether the current source has drawn a frame of its own, by playing or by
101
+ * a seek landing on data: before it has, a player shows its poster, which a
102
+ * request to play alone leaves in place while the first frame is fetched.
103
+ * Reset as the element empties for another source.
104
+ */
105
+ readonly hasShownFrame: Signal<boolean>;
98
106
  readonly currentTime: Signal<number>;
99
107
  readonly duration: Signal<number>;
100
108
  readonly buffered: Signal<TimeRange[]>;
@@ -231,6 +239,11 @@ declare class VideoPlayer {
231
239
  private readonly _destroyRef;
232
240
  readonly source: InputSignal<string>;
233
241
  readonly title: InputSignal<string | undefined>;
242
+ /**
243
+ * Picture shown over the video until the source first shows a frame. Framed
244
+ * as the video is unless `--tls-video-player-poster-fit` says otherwise
245
+ * (`cover` for a poster of another shape than the footage).
246
+ */
234
247
  readonly poster: InputSignal<string | undefined>;
235
248
  readonly captions: InputSignal<MediaCaptionSource[]>;
236
249
  /**
@@ -260,6 +273,14 @@ declare class VideoPlayer {
260
273
  private _skipInitialPlayingChange;
261
274
  protected readonly labels: _thalassic_ui_media.MediaPlayerLabels;
262
275
  protected readonly state: Signal<mediaState>;
276
+ /**
277
+ * The poster drawn over the video until the source shows a frame of its own
278
+ * (`MediaController.hasShownFrame`). An image of its own rather than the
279
+ * media element's `poster` attribute, which a browser fetches late and paints
280
+ * over a black frame meanwhile: an image already in the cache is in view the
281
+ * moment the player is.
282
+ */
283
+ protected readonly shownPoster: Signal<string | null>;
263
284
  protected readonly fullscreen: Signal<boolean>;
264
285
  protected readonly fullscreenSupported: Signal<boolean>;
265
286
  protected readonly pictureInPictureSupported: Signal<boolean>;