@cqa-lib/cqa-ui 1.1.553 → 1.1.554

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.
@@ -77,6 +77,13 @@ export declare class SimulatorComponent implements AfterViewInit, AfterViewCheck
77
77
  dragging: boolean;
78
78
  isPlaying: boolean;
79
79
  showPlayPauseOverlay: boolean;
80
+ /**
81
+ * Icon shown by the play/pause overlay during its 500ms lifetime. Pinned at click time
82
+ * so the icon doesn't flicker as `isPlaying` flips async between
83
+ * `<video>.play()` invocation and its promise resolving. Mirrors the YouTube-style
84
+ * convention: show the action just taken (▶ after play, ∥ after pause).
85
+ */
86
+ overlayShowsPlayingIcon: boolean;
80
87
  private playPauseOverlayTimer;
81
88
  isFullScreen: boolean;
82
89
  currentView: string;
@@ -178,7 +185,16 @@ export declare class SimulatorComponent implements AfterViewInit, AfterViewCheck
178
185
  private seekToTimeInternal;
179
186
  onVideoKeydown(event: KeyboardEvent): void;
180
187
  /**
181
- * Toggle play/pause (now trivial with state machine)
188
+ * Toggle play/pause.
189
+ *
190
+ * Decision is based on the video element's native `paused` property (ground truth)
191
+ * rather than on `playerState`, which lags during async play() / pause() transitions.
192
+ * The previous implementation would, on a rapid second click during the ~50-200ms
193
+ * `video.play()` await window, see `playerState === 'loading'` and queue another
194
+ * `playVideo()` instead of the intended `pauseVideo()` — so the second click
195
+ * silently "did nothing" while the video kept playing. Reading `video.paused`
196
+ * directly makes the toggle correct regardless of what stage the state machine
197
+ * happens to be in.
182
198
  */
183
199
  togglePlay(): void;
184
200
  onVideoFrameClick(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.553",
3
+ "version": "1.1.554",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",