@cqa-lib/cqa-ui 1.1.552 → 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.
- package/esm2020/lib/simulator/simulator.component.mjs +58 -26
- package/esm2020/lib/templates/modular-table-template/folder-sidebar/folder-sidebar.component.mjs +3 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +60 -27
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +59 -27
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/simulator/simulator.component.d.ts +17 -1
- package/package.json +1 -1
|
@@ -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
|
|
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;
|