@ngxsplayer/ngx-smart-player 0.2.2 → 0.3.1-next.555

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.
@@ -1,9 +1,12 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  import { EngineFactory, MediaTrack, MetadataProvider, PlayerConfig, PlayerError, PlayerPlugin, PlayerPorts, PlayerState, SubtitleProvider } from "@ngxsp/core";
2
5
  import * as i0 from "@angular/core";
3
6
  import { AfterViewInit, ElementRef, EnvironmentProviders, EventEmitter, InjectionToken, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
4
7
  import { NgxspTimelineMarker, SourceProfile } from "@ngxsplayer/ngx-smart-player-ui-core";
5
8
  export * from "@ngxsp/core";
6
- export type SmartPlayerIconName = 'play' | 'pause' | 'prev' | 'next' | 'seek-back' | 'seek-forward' | 'volume-mute' | 'volume-low' | 'volume-high' | 'shuffle' | 'repeat' | 'repeat-one' | 'tracks' | 'captions' | 'captions-off' | 'speed' | 'pip' | 'pip-active' | 'airplay' | 'airplay-active' | 'cast' | 'cast-active' | 'devices' | 'devices-active' | 'radio' | 'server' | 'window-mini' | 'window-bar' | 'window-restore' | 'cinema' | 'cinema-active' | 'lyrics' | 'info' | 'bell' | 'thumb-up' | 'thumb-down' | 'share' | 'playlist-plus' | 'clock' | 'home' | 'layers' | 'video' | 'music' | 'broadcast' | 'heart' | 'download' | 'trash' | 'folder' | 'settings' | 'search' | 'grid' | 'list' | 'more' | 'waveform' | 'sliders' | 'network' | 'cloud' | 'spark' | 'disc' | 'user' | 'tag' | 'close' | 'plus' | 'check' | 'menu' | 'panel-right' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevron-down' | 'fullscreen' | 'fullscreen-exit';
9
+ export type SmartPlayerIconName = 'play' | 'pause' | 'prev' | 'next' | 'seek-back' | 'seek-forward' | 'volume-mute' | 'volume-low' | 'volume-high' | 'shuffle' | 'repeat' | 'repeat-one' | 'tracks' | 'captions' | 'captions-off' | 'speed' | 'pip' | 'pip-active' | 'airplay' | 'airplay-active' | 'cast' | 'cast-active' | 'devices' | 'devices-active' | 'radio' | 'server' | 'window-mini' | 'window-bar' | 'window-restore' | 'cinema' | 'cinema-active' | 'lyrics' | 'info' | 'bell' | 'thumb-up' | 'thumb-down' | 'share' | 'playlist-plus' | 'clock' | 'home' | 'layers' | 'video' | 'music' | 'broadcast' | 'heart' | 'download' | 'trash' | 'folder' | 'settings' | 'search' | 'grid' | 'list' | 'more' | 'waveform' | 'sliders' | 'network' | 'cloud' | 'spark' | 'disc' | 'user' | 'tag' | 'close' | 'plus' | 'check' | 'refresh' | 'menu' | 'panel-right' | 'queue' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevron-down' | 'fullscreen' | 'fullscreen-exit';
7
10
  export declare class SmartPlayerIconComponent {
8
11
  name: SmartPlayerIconName;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartPlayerIconComponent, never>;
@@ -14,6 +17,112 @@ export declare class SmartPlayerIconComponent {
14
17
  };
15
18
  }, {}, never, never, true, never>;
16
19
  }
20
+ /** One thing to do from an empty page: choose a folder, add a server. */
21
+ export interface SmartEmptyPageAction {
22
+ id: string;
23
+ label: string;
24
+ icon?: SmartPlayerIconName;
25
+ /** The one the page is for: drawn in the accent. Give it first; it is drawn where it is put. */
26
+ primary?: boolean;
27
+ }
28
+ /**
29
+ * The first opening: nothing has been loaded, and the page says what to do about it.
30
+ *
31
+ * The shared board draws one page for both players — a mark, a sentence saying what will happen
32
+ * to the folder, the two ways in, the way that needs no folder at all, and the formats the
33
+ * player can read. It is the one screen a newcomer is certain to see.
34
+ */
35
+ export interface SmartEmptyPage {
36
+ title: string;
37
+ /** What choosing a folder does, and what it does not do. */
38
+ body?: string;
39
+ icon?: SmartPlayerIconName;
40
+ actions?: readonly SmartEmptyPageAction[];
41
+ /** The way in that needs no folder: dropping a file in the window. */
42
+ hintTitle?: string;
43
+ hintBody?: string;
44
+ /** What the player can read, said once at the bottom. */
45
+ footnote?: string;
46
+ }
47
+ export declare class SmartEmptyPageComponent {
48
+ page: SmartEmptyPage | null;
49
+ /** Which of its ways in was pressed. */
50
+ pageAction: EventEmitter<string>;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartEmptyPageComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartEmptyPageComponent, "ngxsp-empty-page", never, {
53
+ "page": {
54
+ "alias": "page";
55
+ "required": false;
56
+ };
57
+ }, {
58
+ "pageAction": "pageAction";
59
+ }, never, never, true, never>;
60
+ }
61
+ /** What a notification is about, which is what gives its tile a colour. */
62
+ export type SmartNotificationKind = 'info' | 'success' | 'warning' | 'error';
63
+ /** One thing the application did without being asked, kept rather than said in passing. */
64
+ export interface SmartNotification {
65
+ id: string;
66
+ title: string;
67
+ /** What happened, in a sentence; the title alone says the kind of thing it was. */
68
+ body?: string;
69
+ kind?: SmartNotificationKind;
70
+ icon?: SmartPlayerIconName;
71
+ /** How long ago, in the host's own words: "il y a 12 min", "hier". */
72
+ ago?: string;
73
+ /** Not seen yet: drawn with a dot on its tile and a tint behind the row. */
74
+ unread?: boolean;
75
+ /** The one thing to do about it — retry, install, open what it made. */
76
+ action?: {
77
+ id: string;
78
+ label: string;
79
+ };
80
+ }
81
+ /** Notifications of one age: today's, this week's, everything before. */
82
+ export interface SmartNotificationGroup {
83
+ id: string;
84
+ title: string;
85
+ entries: readonly SmartNotification[];
86
+ }
87
+ /**
88
+ * What the application has done without being asked, as a page of its own.
89
+ *
90
+ * The shared board draws one page for both players: a title saying how many went unseen, a way to
91
+ * mark them all read, and the entries grouped by age — each with what it is about, what happened,
92
+ * how long ago, and the one thing to do about it.
93
+ */
94
+ export interface SmartNotificationsPage {
95
+ title: string;
96
+ /** How many went unseen, and what the page is for. */
97
+ summary?: string;
98
+ markAllLabel?: string;
99
+ groups: readonly SmartNotificationGroup[];
100
+ /** What the page says when nothing has happened yet. */
101
+ emptyLabel?: string;
102
+ }
103
+ export declare class SmartNotificationsComponent {
104
+ page: SmartNotificationsPage | null;
105
+ /** The entry's own action was pressed. */
106
+ entryAction: EventEmitter<{
107
+ id: string;
108
+ actionId: string;
109
+ }>;
110
+ markAllRead: EventEmitter<void>;
111
+ get hasUnread(): boolean;
112
+ iconFor(entry: SmartNotification): SmartPlayerIconName;
113
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartNotificationsComponent, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartNotificationsComponent, "ngxsp-notifications", never, {
115
+ "page": {
116
+ "alias": "page";
117
+ "required": false;
118
+ };
119
+ }, {
120
+ "entryAction": "entryAction";
121
+ "markAllRead": "markAllRead";
122
+ }, never, never, true, never>;
123
+ }
124
+ /** How a stated value reads: plainly, well, worth a look, or wrong. */
125
+ export type SmartSettingTone = 'neutral' | 'success' | 'warning' | 'danger';
17
126
  export interface SmartSettingOption {
18
127
  id: string;
19
128
  label: string;
@@ -35,12 +144,26 @@ interface SmartSettingBase {
35
144
  * One setting. The host owns every value and hears what the listener asks for through the component's outputs:
36
145
  * - `switch`: on or off;
37
146
  * - `choice`: one of a few options, shown side by side;
147
+ * - `swatches`: one of a few colours, shown as the colours themselves — a name for a colour is
148
+ * a worse way to pick one than the colour, and each still carries its name for the people who
149
+ * are not picking by eye;
38
150
  * - `list`: entries the listener can remove one by one, with an optional action for the whole list;
39
151
  * - `action`: a button that does something now (scan again, clear a cache);
40
152
  * - `secret`: something typed that must not be read over a shoulder, sent when it is submitted
41
153
  * and never held afterwards — the field empties itself, and the host is the only one that
42
- * ever sees what was typed.
154
+ * ever sees what was typed;
155
+ * - `status`: something the application states rather than offers — a format it reads, a cache
156
+ * it holds, a player that is ready. Nothing to set: the board's own words for the section it
157
+ * belongs to are "ce que l'application constate — rien à régler ici".
43
158
  */
159
+ /** One colour to pick from, drawn as itself. */
160
+ export interface SmartSettingSwatch {
161
+ id: string;
162
+ /** The colour, as CSS writes one. */
163
+ color: string;
164
+ /** What it is called — the only thing a reader who does not see the dot has to go on. */
165
+ label: string;
166
+ }
44
167
  export type SmartSettingItem = (SmartSettingBase & {
45
168
  kind: 'switch';
46
169
  value: boolean;
@@ -49,6 +172,10 @@ export type SmartSettingItem = (SmartSettingBase & {
49
172
  kind: 'choice';
50
173
  value: string;
51
174
  options: SmartSettingOption[];
175
+ }) | (SmartSettingBase & {
176
+ kind: 'swatches';
177
+ value: string;
178
+ options: SmartSettingSwatch[];
52
179
  }) | (SmartSettingBase & {
53
180
  kind: 'list';
54
181
  entries: SmartSettingEntry[];
@@ -61,6 +188,10 @@ export type SmartSettingItem = (SmartSettingBase & {
61
188
  actionLabel: string;
62
189
  busy?: boolean;
63
190
  disabled?: boolean;
191
+ }) | (SmartSettingBase & {
192
+ kind: 'status';
193
+ value?: string;
194
+ tone?: SmartSettingTone;
64
195
  }) | (SmartSettingBase & {
65
196
  kind: 'secret';
66
197
  actionLabel: string;
@@ -75,6 +206,8 @@ export type SmartSettingItem = (SmartSettingBase & {
75
206
  export interface SmartSettingsSection {
76
207
  id: string;
77
208
  title: string;
209
+ /** What the section is about, in one line under its title, as the shared board writes it. */
210
+ description?: string;
78
211
  items: SmartSettingItem[];
79
212
  }
80
213
  export interface SmartSettingChange {
@@ -158,7 +291,27 @@ export declare class SmartConfirmDialogComponent implements AfterViewInit {
158
291
  * player out to match.
159
292
  */
160
293
  export type SmartCompactMode = 'full' | 'mini' | 'bar';
161
- type PlayerMenuKind$1 = 'tracks' | 'speed' | 'captions' | null;
294
+ /**
295
+ * What the error card says, for a host that speaks another language.
296
+ *
297
+ * Everything else the player shows takes its words from the host; this card did not, so a French
298
+ * application answered a failed film with "Playback error" and a "Retry" button.
299
+ */
300
+ interface PlayerOverlayLabels {
301
+ retry: string;
302
+ play: string;
303
+ engineMissing: string;
304
+ engineMissingHint: string;
305
+ autoplayBlocked: string;
306
+ autoplayBlockedHint: string;
307
+ networkError: string;
308
+ networkErrorHint: string;
309
+ decodeError: string;
310
+ formatNotSupported: string;
311
+ playbackError: string;
312
+ unknownError: string;
313
+ }
314
+ export declare const DEFAULT_PLAYER_OVERLAY_LABELS: PlayerOverlayLabels;
162
315
  /** The words of the player's menus; English by default. */
163
316
  interface PlayerMenuLabels {
164
317
  captions: string;
@@ -181,38 +334,67 @@ interface PlayerMenuLabels {
181
334
  locale?: string;
182
335
  }
183
336
  export declare const DEFAULT_PLAYER_MENU_LABELS: PlayerMenuLabels;
337
+ type RepeatMode = 'off' | 'one' | 'all';
338
+ type PlayerMenuKind = 'tracks' | 'speed';
184
339
  /**
185
- * Menu de pistes (sous-titres / audio / qualité) et de vitesse de lecture.
186
- * Extrait du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).
187
- * Sans logique de lecture : émet des événements, l'hôte applique l'action.
340
+ * Barre de contrôle du skin classique, extraite du SmartPlayerComponent
341
+ * (décomposition, cf. docs/AUDIT.md). Sans accès au moteur ni au <video> :
342
+ * reçoit l'état + les capacités (cast/PiP) en entrée et émet les commandes ;
343
+ * l'hôte applique l'action (et possède l'élément vidéo pour PiP/cast).
188
344
  */
189
- declare class PlayerMenuComponent {
190
- readonly openMenu: import("@angular/core").InputSignal<PlayerMenuKind$1>;
345
+ export declare class PlayerControlsComponent {
346
+ readonly playing: import("@angular/core").InputSignal<boolean>;
191
347
  readonly isAudioMode: import("@angular/core").InputSignal<boolean>;
192
- readonly textTracks: import("@angular/core").InputSignal<MediaTrack[]>;
193
- readonly audioTracks: import("@angular/core").InputSignal<MediaTrack[]>;
194
- readonly videoTracks: import("@angular/core").InputSignal<MediaTrack[]>;
195
- readonly selectedTextTrackId: import("@angular/core").InputSignal<string | null>;
196
- readonly selectedAudioTrackId: import("@angular/core").InputSignal<string | null>;
197
- readonly selectedVideoTrackId: import("@angular/core").InputSignal<string | null>;
198
- readonly playbackRates: import("@angular/core").InputSignal<number[]>;
199
- readonly playbackRate: import("@angular/core").InputSignal<number>;
200
- readonly labels: import("@angular/core").InputSignal<PlayerMenuLabels>;
201
- readonly selectText: import("@angular/core").OutputEmitterRef<string | null>;
202
- readonly selectAudio: import("@angular/core").OutputEmitterRef<string>;
203
- readonly selectVideo: import("@angular/core").OutputEmitterRef<string | null>;
204
- readonly selectRate: import("@angular/core").OutputEmitterRef<number>;
205
- /** "Load a file" in the subtitles menu: the host opens its file picker. */
206
- readonly loadSubtitles: import("@angular/core").OutputEmitterRef<void>;
207
- currentTextLabel(): string;
208
- /** "French" for "fr", in the labels' locale. */
209
- languageName(code: string): string;
210
- trackLabel(track: MediaTrack): string;
211
- qualityLabel(track: MediaTrack): string;
212
- static ɵfac: i0.ɵɵFactoryDeclaration<PlayerMenuComponent, never>;
213
- static ɵcmp: i0.ɵɵComponentDeclaration<PlayerMenuComponent, "ngxsp-player-menu", never, {
214
- "openMenu": {
215
- "alias": "openMenu";
348
+ readonly hasPlaylistControls: import("@angular/core").InputSignal<boolean>;
349
+ readonly canPrev: import("@angular/core").InputSignal<boolean>;
350
+ readonly canNext: import("@angular/core").InputSignal<boolean>;
351
+ readonly shuffleActive: import("@angular/core").InputSignal<boolean>;
352
+ readonly shuffleLabel: import("@angular/core").InputSignal<string>;
353
+ readonly repeatMode: import("@angular/core").InputSignal<RepeatMode>;
354
+ readonly repeatLabel: import("@angular/core").InputSignal<string>;
355
+ readonly captionsActive: import("@angular/core").InputSignal<boolean>;
356
+ readonly tracksLabel: import("@angular/core").InputSignal<string>;
357
+ readonly captionsLabel: import("@angular/core").InputSignal<string>;
358
+ readonly speedLabel: import("@angular/core").InputSignal<string>;
359
+ readonly volumeLabel: import("@angular/core").InputSignal<string>;
360
+ readonly muteLabel: import("@angular/core").InputSignal<string>;
361
+ readonly unmuteLabel: import("@angular/core").InputSignal<string>;
362
+ readonly showAirPlay: import("@angular/core").InputSignal<boolean>;
363
+ readonly airPlayActive: import("@angular/core").InputSignal<boolean>;
364
+ readonly airPlayLabel: import("@angular/core").InputSignal<string>;
365
+ readonly showCast: import("@angular/core").InputSignal<boolean>;
366
+ readonly castActive: import("@angular/core").InputSignal<boolean>;
367
+ readonly castLabel: import("@angular/core").InputSignal<string>;
368
+ readonly castHint: import("@angular/core").InputSignal<string>;
369
+ readonly pipSupported: import("@angular/core").InputSignal<boolean>;
370
+ readonly pipActive: import("@angular/core").InputSignal<boolean>;
371
+ readonly pipLabel: import("@angular/core").InputSignal<string>;
372
+ readonly volume: import("@angular/core").InputSignal<number>;
373
+ readonly currentTime: import("@angular/core").InputSignal<number>;
374
+ readonly duration: import("@angular/core").InputSignal<number>;
375
+ readonly buffered: import("@angular/core").InputSignal<number>;
376
+ readonly profile: import("@angular/core").InputSignal<SourceProfile>;
377
+ readonly playToggle: import("@angular/core").OutputEmitterRef<void>;
378
+ readonly seekRelative: import("@angular/core").OutputEmitterRef<number>;
379
+ readonly prev: import("@angular/core").OutputEmitterRef<void>;
380
+ readonly next: import("@angular/core").OutputEmitterRef<void>;
381
+ readonly toggleShuffle: import("@angular/core").OutputEmitterRef<void>;
382
+ readonly cycleRepeat: import("@angular/core").OutputEmitterRef<void>;
383
+ readonly openMenu: import("@angular/core").OutputEmitterRef<PlayerMenuKind>;
384
+ readonly captions: import("@angular/core").OutputEmitterRef<void>;
385
+ readonly airPlay: import("@angular/core").OutputEmitterRef<void>;
386
+ readonly cast: import("@angular/core").OutputEmitterRef<void>;
387
+ readonly pip: import("@angular/core").OutputEmitterRef<void>;
388
+ readonly mute: import("@angular/core").OutputEmitterRef<void>;
389
+ readonly scrub: import("@angular/core").OutputEmitterRef<number>;
390
+ readonly volumeChange: import("@angular/core").OutputEmitterRef<number>;
391
+ /** One implementation, in `formatTime`: five copies of this is how the one on the video
392
+ * chrome came to print `Infinity:NaN:NaN` while the others did not. */
393
+ fmtTime(sec: number): string;
394
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlayerControlsComponent, never>;
395
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlayerControlsComponent, "ngxsp-player-controls", never, {
396
+ "playing": {
397
+ "alias": "playing";
216
398
  "required": false;
217
399
  "isSignal": true;
218
400
  };
@@ -221,1014 +403,1079 @@ declare class PlayerMenuComponent {
221
403
  "required": false;
222
404
  "isSignal": true;
223
405
  };
224
- "textTracks": {
225
- "alias": "textTracks";
406
+ "hasPlaylistControls": {
407
+ "alias": "hasPlaylistControls";
408
+ "required": false;
409
+ "isSignal": true;
410
+ };
411
+ "canPrev": {
412
+ "alias": "canPrev";
413
+ "required": false;
414
+ "isSignal": true;
415
+ };
416
+ "canNext": {
417
+ "alias": "canNext";
418
+ "required": false;
419
+ "isSignal": true;
420
+ };
421
+ "shuffleActive": {
422
+ "alias": "shuffleActive";
423
+ "required": false;
424
+ "isSignal": true;
425
+ };
426
+ "shuffleLabel": {
427
+ "alias": "shuffleLabel";
428
+ "required": false;
429
+ "isSignal": true;
430
+ };
431
+ "repeatMode": {
432
+ "alias": "repeatMode";
433
+ "required": false;
434
+ "isSignal": true;
435
+ };
436
+ "repeatLabel": {
437
+ "alias": "repeatLabel";
438
+ "required": false;
439
+ "isSignal": true;
440
+ };
441
+ "captionsActive": {
442
+ "alias": "captionsActive";
443
+ "required": false;
444
+ "isSignal": true;
445
+ };
446
+ "tracksLabel": {
447
+ "alias": "tracksLabel";
448
+ "required": false;
449
+ "isSignal": true;
450
+ };
451
+ "captionsLabel": {
452
+ "alias": "captionsLabel";
453
+ "required": false;
454
+ "isSignal": true;
455
+ };
456
+ "speedLabel": {
457
+ "alias": "speedLabel";
458
+ "required": false;
459
+ "isSignal": true;
460
+ };
461
+ "volumeLabel": {
462
+ "alias": "volumeLabel";
463
+ "required": false;
464
+ "isSignal": true;
465
+ };
466
+ "muteLabel": {
467
+ "alias": "muteLabel";
468
+ "required": false;
469
+ "isSignal": true;
470
+ };
471
+ "unmuteLabel": {
472
+ "alias": "unmuteLabel";
473
+ "required": false;
474
+ "isSignal": true;
475
+ };
476
+ "showAirPlay": {
477
+ "alias": "showAirPlay";
478
+ "required": false;
479
+ "isSignal": true;
480
+ };
481
+ "airPlayActive": {
482
+ "alias": "airPlayActive";
483
+ "required": false;
484
+ "isSignal": true;
485
+ };
486
+ "airPlayLabel": {
487
+ "alias": "airPlayLabel";
488
+ "required": false;
489
+ "isSignal": true;
490
+ };
491
+ "showCast": {
492
+ "alias": "showCast";
493
+ "required": false;
494
+ "isSignal": true;
495
+ };
496
+ "castActive": {
497
+ "alias": "castActive";
498
+ "required": false;
499
+ "isSignal": true;
500
+ };
501
+ "castLabel": {
502
+ "alias": "castLabel";
503
+ "required": false;
504
+ "isSignal": true;
505
+ };
506
+ "castHint": {
507
+ "alias": "castHint";
226
508
  "required": false;
227
509
  "isSignal": true;
228
510
  };
229
- "audioTracks": {
230
- "alias": "audioTracks";
511
+ "pipSupported": {
512
+ "alias": "pipSupported";
231
513
  "required": false;
232
514
  "isSignal": true;
233
515
  };
234
- "videoTracks": {
235
- "alias": "videoTracks";
516
+ "pipActive": {
517
+ "alias": "pipActive";
236
518
  "required": false;
237
519
  "isSignal": true;
238
520
  };
239
- "selectedTextTrackId": {
240
- "alias": "selectedTextTrackId";
521
+ "pipLabel": {
522
+ "alias": "pipLabel";
241
523
  "required": false;
242
524
  "isSignal": true;
243
525
  };
244
- "selectedAudioTrackId": {
245
- "alias": "selectedAudioTrackId";
526
+ "volume": {
527
+ "alias": "volume";
246
528
  "required": false;
247
529
  "isSignal": true;
248
530
  };
249
- "selectedVideoTrackId": {
250
- "alias": "selectedVideoTrackId";
531
+ "currentTime": {
532
+ "alias": "currentTime";
251
533
  "required": false;
252
534
  "isSignal": true;
253
535
  };
254
- "playbackRates": {
255
- "alias": "playbackRates";
536
+ "duration": {
537
+ "alias": "duration";
256
538
  "required": false;
257
539
  "isSignal": true;
258
540
  };
259
- "playbackRate": {
260
- "alias": "playbackRate";
541
+ "buffered": {
542
+ "alias": "buffered";
261
543
  "required": false;
262
544
  "isSignal": true;
263
545
  };
264
- "labels": {
265
- "alias": "labels";
546
+ "profile": {
547
+ "alias": "profile";
266
548
  "required": false;
267
549
  "isSignal": true;
268
550
  };
269
551
  }, {
270
- "selectText": "selectText";
271
- "selectAudio": "selectAudio";
272
- "selectVideo": "selectVideo";
273
- "selectRate": "selectRate";
274
- "loadSubtitles": "loadSubtitles";
552
+ "playToggle": "playToggle";
553
+ "seekRelative": "seekRelative";
554
+ "prev": "prev";
555
+ "next": "next";
556
+ "toggleShuffle": "toggleShuffle";
557
+ "cycleRepeat": "cycleRepeat";
558
+ "openMenu": "openMenu";
559
+ "captions": "captions";
560
+ "airPlay": "airPlay";
561
+ "cast": "cast";
562
+ "pip": "pip";
563
+ "mute": "mute";
564
+ "scrub": "scrub";
565
+ "volumeChange": "volumeChange";
275
566
  }, never, never, true, never>;
276
567
  }
277
- /** A playback position and the media it was measured on. */
278
- export interface SmartPlayerProgress {
279
- currentTime: number;
280
- duration: number;
281
- contentId?: string;
282
- sourceUrl?: string;
568
+ /**
569
+ * Barre de contrôle du skin vod (top bar + center dock + bottom bar),
570
+ * extraite du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).
571
+ * Le menu pistes/vitesse est projeté par l'hôte via <ng-content>.
572
+ * PiP/cast restent au parent (propriétaire du <video>) : capacités en entrée,
573
+ * commandes en sortie.
574
+ */
575
+ /** What the cast chip says in each of its states, for a host that speaks another language. */
576
+ interface CastLabels {
577
+ play: string;
578
+ playing: string;
579
+ connecting: string;
580
+ playHint: string;
581
+ playingHint: string;
582
+ connectingHint: string;
583
+ unavailableHint: string;
283
584
  }
284
- export declare class SmartPlayerComponent implements OnChanges, OnInit, OnDestroy {
285
- config: PlayerConfig;
286
- plugins: PlayerPlugin[];
287
- ports?: Partial<PlayerPorts>;
288
- engines?: EngineFactory[];
289
- debug: boolean;
290
- /** Optional start time (seconds) used for "resume playback". */
291
- startTimeSec: number | null;
292
- /** Starts the first source as soon as it is loaded. WebViews and desktop shells do not block it like browsers do. */
293
- autoplayOnInit: boolean;
294
- /** Increment when the user picks something to play: a new source starts, the current one resumes. */
295
- playRequest: number;
296
- canPrev: boolean;
297
- canNext: boolean;
298
- previousLabel: string;
299
- nextLabel: string;
300
- playLabel: string;
301
- pauseLabel: string;
302
- shuffleActive: boolean;
303
- shuffleLabel: string;
304
- repeatMode: 'off' | 'one' | 'all';
305
- repeatLabel: string;
306
- hasPlaylistControls: boolean;
307
- mediaMode: 'video' | 'audio';
308
- castEnabled: boolean;
309
- /** The media plays on a device the app drives (castEnabled): the devices button shows it. */
310
- castConnected: boolean;
311
- private airPlayAvailable;
312
- private airPlayActive;
313
- documentShortcuts: boolean;
314
- nowPlayingLabel: string;
315
- nowListeningLabel: string;
316
- fullscreenHintLabel: string;
317
- fullscreenLabel: string;
318
- readyStatusLabel: string;
319
- playingStatusLabel: string;
320
- pausedStatusLabel: string;
321
- bufferingStatusLabel: string;
322
- loadingStatusLabel: string;
323
- endedStatusLabel: string;
324
- errorStatusLabel: string;
325
- outputVolume: number | null;
326
- outputVolumeLabel: string;
327
- outputMuteLabel: string;
328
- outputUnmuteLabel: string;
329
- timelineDurationSec: number | null;
330
- timelineMarkers: ReadonlyArray<NgxspTimelineMarker>;
331
- ended: EventEmitter<void>;
332
- videoSize: EventEmitter<{
333
- width: number;
334
- height: number;
335
- }>;
336
- /**
337
- * Emits playback position updates, tagged with the media they belong to: a host switching tracks can still receive
338
- * a position of the previous one, and must not file it under the new one.
339
- */
340
- progress: EventEmitter<SmartPlayerProgress>;
341
- prev: EventEmitter<void>;
342
- next: EventEmitter<void>;
343
- toggleShuffle: EventEmitter<void>;
344
- cycleRepeat: EventEmitter<void>;
345
- /** CC pressed; the vod and edition skins also open their subtitles menu. */
346
- subtitles: EventEmitter<void>;
347
- /** A subtitle file was read (ok) or could not be (error). */
348
- subtitlesLoaded: EventEmitter<{
349
- label: string;
350
- ok: boolean;
351
- error?: string;
352
- }>;
353
- /** The words of the player's menus and of its subtitles button. */
354
- menuLabels: Partial<PlayerMenuLabels>;
355
- cast: EventEmitter<void>;
356
- stateChange: EventEmitter<PlayerState>;
357
- playbackToggle: EventEmitter<"play" | "pause">;
358
- outputVolumeChange: EventEmitter<number>;
359
- videoEl: ElementRef<HTMLVideoElement>;
360
- captionsLayer: ElementRef<HTMLElement>;
361
- /** Absent in audio mode, which has no subtitles. */
362
- subtitleFileInput?: ElementRef<HTMLInputElement>;
363
- state: PlayerState | null;
364
- duration: number;
365
- currentTime: number;
366
- volume: number;
367
- private lastVolumeBeforeMute;
368
- playbackRate: number;
369
- bufferAheadSec: number;
370
- tracks: MediaTrack[];
371
- openMenu: 'tracks' | 'speed' | 'captions' | null;
372
- controlsVisible: boolean;
373
- surfaceGesture: 'play' | 'pause' | null;
374
- castState: 'disconnected' | 'connecting' | 'connected';
375
- readonly playbackRates: number[];
376
- private facade;
377
- private readonly cdr;
378
- private sub;
379
- private hideControlsTimer;
380
- private surfaceClickTimer;
381
- private gestureTimer;
382
- private remotePlaybackCleanup;
383
- private initialized;
384
- private loadedSourceSignature;
385
- private loadSequence;
386
- private loading;
387
- private pendingPlay;
388
- /** Whether the load in progress was asked to start playback. */
389
- private loadingAutoplay;
390
- /** Load whose end was already reported; reset when playback starts again (repeat one). */
391
- private endedLoadSequence;
392
- private pendingSeekSec;
393
- get uiSkin(): 'classic' | 'vod' | 'edition';
394
- /** Libellé méta du skin édition (genre · format). */
395
- get editionMeta(): string;
396
- get uiVisible(): boolean;
397
- get displayTitle(): string;
398
- get displaySubtitle(): string;
399
- get isAudioMode(): boolean;
400
- /** Profil de source transmis aux primitives UI (cf. @ngxsp/ui-core). */
401
- get sourceProfile(): SourceProfile;
402
- get audioTracks(): MediaTrack[];
403
- get textTracks(): MediaTrack[];
404
- get videoTracks(): MediaTrack[];
405
- get selectedAudioTrackId(): string | null;
406
- get selectedTextTrackId(): string | null;
407
- get selectedVideoTrackId(): string | null;
408
- ngOnChanges(changes: SimpleChanges): void;
409
- ngOnInit(): void;
410
- ngOnDestroy(): void;
411
- tryPlay(): void;
412
- get debugJson(): string;
413
- get currentError(): PlayerError | null;
414
- copyDebug(): Promise<void>;
415
- downloadDebug(): void;
416
- togglePlay(): void;
417
- requestPlaybackToggle(): void;
418
- seekRel(deltaSec: number): void;
419
- seekTo(timeSec: number): void;
420
- onScrub(value: number): void;
421
- onVolume(value: number): void;
422
- toggleMute(): void;
423
- setPlaybackRate(rate: number): Promise<void>;
424
- reload(): void;
425
- onLoadedMetadata(): void;
426
- onEnded(): void;
427
- toggleFullscreen(): void;
428
- toggleMenu(menu: 'tracks' | 'speed' | 'captions'): void;
429
- get playerMenuLabels(): PlayerMenuLabels;
430
- onCaptionsClick(): void;
431
- openSubtitlePicker(): void;
432
- onSubtitleFileChosen(event: Event): Promise<void>;
433
- /** Reads a SubRip or WebVTT file and shows it over the video. */
434
- loadSubtitleFile(file: File): Promise<void>;
435
- private controlsObserver?;
436
- /** While the controls show, the subtitles sit just above them, however tall they are (a menu makes them taller). */
437
- private followControlsHeight;
438
- /** Draws the cues of the loaded subtitles (their markup parsed by the browser: italics, bold, no script). */
439
- private drawCaptions;
440
- selectTextTrack(trackId: string | null): Promise<void>;
441
- selectAudioTrack(trackId: string): Promise<void>;
442
- selectVideoTrack(trackId: string | null): Promise<void>;
443
- togglePiP(): Promise<void>;
444
- isPiPSupported(): boolean;
445
- pipLabel(): string;
446
- isPiPActive(): boolean;
447
- requestCast(): Promise<void>;
448
- isCastSupported(): boolean;
449
- isCastActive(): boolean;
450
- showCastButton(): boolean;
585
+ export declare const DEFAULT_CAST_LABELS: CastLabels;
586
+ export declare class PlayerControlsVodComponent {
587
+ readonly playing: import("@angular/core").InputSignal<boolean>;
588
+ readonly isAudioMode: import("@angular/core").InputSignal<boolean>;
589
+ readonly displayTitle: import("@angular/core").InputSignal<string>;
590
+ readonly nowPlayingLabel: import("@angular/core").InputSignal<string>;
591
+ readonly nowListeningLabel: import("@angular/core").InputSignal<string>;
592
+ readonly fullscreenHintLabel: import("@angular/core").InputSignal<string>;
593
+ readonly statusLabel: import("@angular/core").InputSignal<string>;
594
+ readonly keyboardHint: import("@angular/core").InputSignal<string>;
595
+ readonly hasPlaylistControls: import("@angular/core").InputSignal<boolean>;
451
596
  /**
452
- * AirPlay, as WebKit offers it: the system decides what is reachable and draws the picker
453
- * itself. Nothing is discovered here, and nothing is sent — the route belongs to the device.
454
- * Everywhere else these stay false and the button never appears.
597
+ * Off when shuffle and repeat are offered elsewhere by the host — in the menu it hangs off its
598
+ * own button, say. The bar keeps the playlist's prev and next either way: they move the picture,
599
+ * which is what a bar over a picture is for.
455
600
  */
456
- showAirPlayButton(): boolean;
457
- isAirPlayActive(): boolean;
458
- airPlayLabel(): string;
459
- openAirPlayPicker(): void;
460
- /** Wired to the media element whenever one is created, for video and for audio alike. */
461
- private watchAirPlay;
462
- castLabel(): string;
463
- castHintLabel(): string;
464
- onCastClick(): void;
465
- captionsLabel(): string;
466
- volumeLabel(): string;
467
- playbackRateLabel(): string;
468
- statusLabel(): string;
469
- keyboardHintLabel(): string;
470
- tracksButtonLabel(): string;
471
- onPrimarySurfaceDoubleClick(): void;
472
- bufferPercent(): number;
601
+ readonly showPlaylistModes: import("@angular/core").InputSignal<boolean>;
602
+ readonly canPrev: import("@angular/core").InputSignal<boolean>;
603
+ readonly canNext: import("@angular/core").InputSignal<boolean>;
604
+ readonly previousLabel: import("@angular/core").InputSignal<string>;
605
+ readonly nextLabel: import("@angular/core").InputSignal<string>;
606
+ readonly playLabel: import("@angular/core").InputSignal<string>;
607
+ readonly pauseLabel: import("@angular/core").InputSignal<string>;
608
+ readonly shuffleActive: import("@angular/core").InputSignal<boolean>;
609
+ readonly shuffleLabel: import("@angular/core").InputSignal<string>;
610
+ readonly repeatMode: import("@angular/core").InputSignal<RepeatMode>;
611
+ readonly repeatLabel: import("@angular/core").InputSignal<string>;
612
+ readonly captionsActive: import("@angular/core").InputSignal<boolean>;
613
+ readonly tracksLabel: import("@angular/core").InputSignal<string>;
614
+ readonly captionsLabel: import("@angular/core").InputSignal<string>;
615
+ readonly speedLabel: import("@angular/core").InputSignal<string>;
616
+ /** What pressing the pill is for, which its value alone does not say. */
617
+ readonly speedActionLabel: import("@angular/core").InputSignal<string>;
618
+ /** "1×", "1.5×": the rate on the speed pill. */
619
+ readonly speedBadge: import("@angular/core").Signal<string>;
620
+ /** "Playback speed 1x": what the button is, then where it stands. */
621
+ readonly speedTitle: import("@angular/core").Signal<string>;
622
+ readonly volumeLabel: import("@angular/core").InputSignal<string>;
623
+ readonly muteLabel: import("@angular/core").InputSignal<string>;
624
+ readonly unmuteLabel: import("@angular/core").InputSignal<string>;
625
+ /** Off when the host carries the subtitles and the tracks itself, so they are not offered twice. */
626
+ readonly showTracks: import("@angular/core").InputSignal<boolean>;
627
+ readonly showCaptions: import("@angular/core").InputSignal<boolean>;
628
+ readonly showAirPlay: import("@angular/core").InputSignal<boolean>;
629
+ readonly airPlayActive: import("@angular/core").InputSignal<boolean>;
630
+ readonly airPlayLabel: import("@angular/core").InputSignal<string>;
631
+ readonly showCast: import("@angular/core").InputSignal<boolean>;
632
+ readonly castActive: import("@angular/core").InputSignal<boolean>;
633
+ readonly castLabel: import("@angular/core").InputSignal<string>;
634
+ readonly castHint: import("@angular/core").InputSignal<string>;
635
+ readonly pipSupported: import("@angular/core").InputSignal<boolean>;
636
+ readonly pipActive: import("@angular/core").InputSignal<boolean>;
637
+ readonly pipLabel: import("@angular/core").InputSignal<string>;
638
+ readonly fullscreenLabel: import("@angular/core").InputSignal<string>;
639
+ readonly volume: import("@angular/core").InputSignal<number>;
640
+ readonly currentTime: import("@angular/core").InputSignal<number>;
641
+ readonly duration: import("@angular/core").InputSignal<number>;
642
+ readonly buffered: import("@angular/core").InputSignal<number>;
643
+ readonly bufferPercent: import("@angular/core").InputSignal<number>;
644
+ readonly profile: import("@angular/core").InputSignal<SourceProfile>;
645
+ readonly timelineDurationSec: import("@angular/core").InputSignal<number>;
646
+ readonly timelineMarkers: import("@angular/core").InputSignal<readonly NgxspTimelineMarker[]>;
647
+ readonly playToggle: import("@angular/core").OutputEmitterRef<void>;
648
+ readonly seekRelative: import("@angular/core").OutputEmitterRef<number>;
649
+ readonly prev: import("@angular/core").OutputEmitterRef<void>;
650
+ readonly next: import("@angular/core").OutputEmitterRef<void>;
651
+ readonly toggleShuffle: import("@angular/core").OutputEmitterRef<void>;
652
+ readonly cycleRepeat: import("@angular/core").OutputEmitterRef<void>;
653
+ readonly openMenu: import("@angular/core").OutputEmitterRef<PlayerMenuKind>;
654
+ readonly captions: import("@angular/core").OutputEmitterRef<void>;
655
+ readonly airPlay: import("@angular/core").OutputEmitterRef<void>;
656
+ readonly cast: import("@angular/core").OutputEmitterRef<void>;
657
+ readonly pip: import("@angular/core").OutputEmitterRef<void>;
658
+ readonly fullscreen: import("@angular/core").OutputEmitterRef<void>;
659
+ readonly mute: import("@angular/core").OutputEmitterRef<void>;
660
+ readonly scrub: import("@angular/core").OutputEmitterRef<number>;
661
+ readonly volumeChange: import("@angular/core").OutputEmitterRef<number>;
662
+ /** How much is left, which is what one reads at a glance: "-18:02". Empty while nothing is known. */
663
+ fmtRemaining(current: number, total: number): string;
664
+ /** One implementation, in `formatTime`: five copies of this is how the one on the video
665
+ * chrome came to print `Infinity:NaN:NaN` while the others did not. */
473
666
  fmtTime(sec: number): string;
474
- noop(): void;
475
- /**
476
- * Music plays in a real <audio> element: mobile browsers and Android WebViews pause <video> elements as soon as
477
- * the page is hidden, which would stop the music when the app goes to the background or the screen turns off.
478
- */
479
- private mediaElementForMode;
480
- onInteraction(persist?: boolean): void;
481
- onPointerLeave(): void;
482
- onRootClick(event: MouseEvent): void;
483
- onEscape(): void;
484
- onKeydown(event: KeyboardEvent): void;
485
- private loadConfig;
486
- private applyStartTime;
487
- private applySeek;
488
- private safeSeekTime;
489
- private sourceSignature;
490
- private bindRemotePlaybackState;
491
- private syncControlVisibility;
492
- private applyVolume;
493
- private syncOutputVolumeInput;
494
- setOutputVolume(value: number): void;
495
- private setVolume;
496
- private normalizeVolume;
497
- private clearHideControlsTimer;
498
- private queueSurfacePlaybackToggle;
499
- private clearSurfaceClickTimer;
500
- private playbackToggleIntent;
501
- private showSurfaceGesture;
502
- private clearGestureTimer;
503
- private isInteractiveTarget;
504
- emitNext(): void;
505
- emitPrev(): void;
506
- static ɵfac: i0.ɵɵFactoryDeclaration<SmartPlayerComponent, never>;
507
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartPlayerComponent, "ngx-smart-player", never, {
508
- "config": {
509
- "alias": "config";
510
- "required": true;
667
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlayerControlsVodComponent, never>;
668
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlayerControlsVodComponent, "ngxsp-player-controls-vod", never, {
669
+ "playing": {
670
+ "alias": "playing";
671
+ "required": false;
672
+ "isSignal": true;
511
673
  };
512
- "plugins": {
513
- "alias": "plugins";
674
+ "isAudioMode": {
675
+ "alias": "isAudioMode";
514
676
  "required": false;
677
+ "isSignal": true;
515
678
  };
516
- "ports": {
517
- "alias": "ports";
679
+ "displayTitle": {
680
+ "alias": "displayTitle";
518
681
  "required": false;
682
+ "isSignal": true;
519
683
  };
520
- "engines": {
521
- "alias": "engines";
684
+ "nowPlayingLabel": {
685
+ "alias": "nowPlayingLabel";
522
686
  "required": false;
687
+ "isSignal": true;
523
688
  };
524
- "debug": {
525
- "alias": "debug";
689
+ "nowListeningLabel": {
690
+ "alias": "nowListeningLabel";
526
691
  "required": false;
692
+ "isSignal": true;
527
693
  };
528
- "startTimeSec": {
529
- "alias": "startTimeSec";
694
+ "fullscreenHintLabel": {
695
+ "alias": "fullscreenHintLabel";
530
696
  "required": false;
697
+ "isSignal": true;
531
698
  };
532
- "autoplayOnInit": {
533
- "alias": "autoplayOnInit";
699
+ "statusLabel": {
700
+ "alias": "statusLabel";
534
701
  "required": false;
702
+ "isSignal": true;
535
703
  };
536
- "playRequest": {
537
- "alias": "playRequest";
704
+ "keyboardHint": {
705
+ "alias": "keyboardHint";
706
+ "required": false;
707
+ "isSignal": true;
708
+ };
709
+ "hasPlaylistControls": {
710
+ "alias": "hasPlaylistControls";
711
+ "required": false;
712
+ "isSignal": true;
713
+ };
714
+ "showPlaylistModes": {
715
+ "alias": "showPlaylistModes";
538
716
  "required": false;
717
+ "isSignal": true;
539
718
  };
540
719
  "canPrev": {
541
720
  "alias": "canPrev";
542
721
  "required": false;
722
+ "isSignal": true;
543
723
  };
544
724
  "canNext": {
545
725
  "alias": "canNext";
546
726
  "required": false;
727
+ "isSignal": true;
547
728
  };
548
729
  "previousLabel": {
549
730
  "alias": "previousLabel";
550
731
  "required": false;
732
+ "isSignal": true;
551
733
  };
552
734
  "nextLabel": {
553
735
  "alias": "nextLabel";
554
736
  "required": false;
737
+ "isSignal": true;
555
738
  };
556
739
  "playLabel": {
557
740
  "alias": "playLabel";
558
741
  "required": false;
742
+ "isSignal": true;
559
743
  };
560
744
  "pauseLabel": {
561
745
  "alias": "pauseLabel";
562
746
  "required": false;
747
+ "isSignal": true;
563
748
  };
564
749
  "shuffleActive": {
565
750
  "alias": "shuffleActive";
566
751
  "required": false;
752
+ "isSignal": true;
567
753
  };
568
754
  "shuffleLabel": {
569
755
  "alias": "shuffleLabel";
570
756
  "required": false;
757
+ "isSignal": true;
571
758
  };
572
759
  "repeatMode": {
573
760
  "alias": "repeatMode";
574
761
  "required": false;
762
+ "isSignal": true;
575
763
  };
576
764
  "repeatLabel": {
577
765
  "alias": "repeatLabel";
578
766
  "required": false;
767
+ "isSignal": true;
579
768
  };
580
- "hasPlaylistControls": {
581
- "alias": "hasPlaylistControls";
769
+ "captionsActive": {
770
+ "alias": "captionsActive";
582
771
  "required": false;
772
+ "isSignal": true;
583
773
  };
584
- "mediaMode": {
585
- "alias": "mediaMode";
774
+ "tracksLabel": {
775
+ "alias": "tracksLabel";
586
776
  "required": false;
777
+ "isSignal": true;
587
778
  };
588
- "castEnabled": {
589
- "alias": "castEnabled";
779
+ "captionsLabel": {
780
+ "alias": "captionsLabel";
590
781
  "required": false;
782
+ "isSignal": true;
591
783
  };
592
- "castConnected": {
593
- "alias": "castConnected";
784
+ "speedLabel": {
785
+ "alias": "speedLabel";
594
786
  "required": false;
787
+ "isSignal": true;
595
788
  };
596
- "documentShortcuts": {
597
- "alias": "documentShortcuts";
789
+ "speedActionLabel": {
790
+ "alias": "speedActionLabel";
598
791
  "required": false;
792
+ "isSignal": true;
599
793
  };
600
- "nowPlayingLabel": {
601
- "alias": "nowPlayingLabel";
794
+ "volumeLabel": {
795
+ "alias": "volumeLabel";
602
796
  "required": false;
797
+ "isSignal": true;
603
798
  };
604
- "nowListeningLabel": {
605
- "alias": "nowListeningLabel";
799
+ "muteLabel": {
800
+ "alias": "muteLabel";
606
801
  "required": false;
802
+ "isSignal": true;
607
803
  };
608
- "fullscreenHintLabel": {
609
- "alias": "fullscreenHintLabel";
804
+ "unmuteLabel": {
805
+ "alias": "unmuteLabel";
610
806
  "required": false;
807
+ "isSignal": true;
611
808
  };
612
- "fullscreenLabel": {
613
- "alias": "fullscreenLabel";
809
+ "showTracks": {
810
+ "alias": "showTracks";
614
811
  "required": false;
812
+ "isSignal": true;
615
813
  };
616
- "readyStatusLabel": {
617
- "alias": "readyStatusLabel";
814
+ "showCaptions": {
815
+ "alias": "showCaptions";
618
816
  "required": false;
817
+ "isSignal": true;
619
818
  };
620
- "playingStatusLabel": {
621
- "alias": "playingStatusLabel";
819
+ "showAirPlay": {
820
+ "alias": "showAirPlay";
622
821
  "required": false;
822
+ "isSignal": true;
623
823
  };
624
- "pausedStatusLabel": {
625
- "alias": "pausedStatusLabel";
824
+ "airPlayActive": {
825
+ "alias": "airPlayActive";
626
826
  "required": false;
827
+ "isSignal": true;
627
828
  };
628
- "bufferingStatusLabel": {
629
- "alias": "bufferingStatusLabel";
829
+ "airPlayLabel": {
830
+ "alias": "airPlayLabel";
630
831
  "required": false;
832
+ "isSignal": true;
631
833
  };
632
- "loadingStatusLabel": {
633
- "alias": "loadingStatusLabel";
834
+ "showCast": {
835
+ "alias": "showCast";
634
836
  "required": false;
837
+ "isSignal": true;
635
838
  };
636
- "endedStatusLabel": {
637
- "alias": "endedStatusLabel";
839
+ "castActive": {
840
+ "alias": "castActive";
638
841
  "required": false;
842
+ "isSignal": true;
639
843
  };
640
- "errorStatusLabel": {
641
- "alias": "errorStatusLabel";
844
+ "castLabel": {
845
+ "alias": "castLabel";
642
846
  "required": false;
847
+ "isSignal": true;
643
848
  };
644
- "outputVolume": {
645
- "alias": "outputVolume";
849
+ "castHint": {
850
+ "alias": "castHint";
646
851
  "required": false;
852
+ "isSignal": true;
647
853
  };
648
- "outputVolumeLabel": {
649
- "alias": "outputVolumeLabel";
854
+ "pipSupported": {
855
+ "alias": "pipSupported";
650
856
  "required": false;
857
+ "isSignal": true;
651
858
  };
652
- "outputMuteLabel": {
653
- "alias": "outputMuteLabel";
859
+ "pipActive": {
860
+ "alias": "pipActive";
654
861
  "required": false;
862
+ "isSignal": true;
655
863
  };
656
- "outputUnmuteLabel": {
657
- "alias": "outputUnmuteLabel";
864
+ "pipLabel": {
865
+ "alias": "pipLabel";
866
+ "required": false;
867
+ "isSignal": true;
868
+ };
869
+ "fullscreenLabel": {
870
+ "alias": "fullscreenLabel";
871
+ "required": false;
872
+ "isSignal": true;
873
+ };
874
+ "volume": {
875
+ "alias": "volume";
876
+ "required": false;
877
+ "isSignal": true;
878
+ };
879
+ "currentTime": {
880
+ "alias": "currentTime";
881
+ "required": false;
882
+ "isSignal": true;
883
+ };
884
+ "duration": {
885
+ "alias": "duration";
886
+ "required": false;
887
+ "isSignal": true;
888
+ };
889
+ "buffered": {
890
+ "alias": "buffered";
891
+ "required": false;
892
+ "isSignal": true;
893
+ };
894
+ "bufferPercent": {
895
+ "alias": "bufferPercent";
658
896
  "required": false;
897
+ "isSignal": true;
898
+ };
899
+ "profile": {
900
+ "alias": "profile";
901
+ "required": false;
902
+ "isSignal": true;
659
903
  };
660
904
  "timelineDurationSec": {
661
905
  "alias": "timelineDurationSec";
662
906
  "required": false;
907
+ "isSignal": true;
663
908
  };
664
909
  "timelineMarkers": {
665
910
  "alias": "timelineMarkers";
666
911
  "required": false;
667
- };
668
- "menuLabels": {
669
- "alias": "menuLabels";
670
- "required": false;
912
+ "isSignal": true;
671
913
  };
672
914
  }, {
673
- "ended": "ended";
674
- "videoSize": "videoSize";
675
- "progress": "progress";
915
+ "playToggle": "playToggle";
916
+ "seekRelative": "seekRelative";
676
917
  "prev": "prev";
677
918
  "next": "next";
678
919
  "toggleShuffle": "toggleShuffle";
679
920
  "cycleRepeat": "cycleRepeat";
680
- "subtitles": "subtitles";
681
- "subtitlesLoaded": "subtitlesLoaded";
921
+ "openMenu": "openMenu";
922
+ "captions": "captions";
923
+ "airPlay": "airPlay";
682
924
  "cast": "cast";
683
- "stateChange": "stateChange";
684
- "playbackToggle": "playbackToggle";
685
- "outputVolumeChange": "outputVolumeChange";
686
- }, never, ["[ngxsp-player-inline-controls]"], true, never>;
925
+ "pip": "pip";
926
+ "fullscreen": "fullscreen";
927
+ "mute": "mute";
928
+ "scrub": "scrub";
929
+ "volumeChange": "volumeChange";
930
+ }, never, ["[ngxsp-player-inline-controls]", "[ngxsp-player-inline-trailing]", "ngxsp-player-menu"], true, never>;
687
931
  }
688
- type RepeatMode = 'off' | 'one' | 'all';
689
- type PlayerMenuKind = 'tracks' | 'speed';
690
- /**
691
- * Barre de contrôle du skin classique, extraite du SmartPlayerComponent
692
- * (décomposition, cf. docs/AUDIT.md). Sans accès au moteur ni au <video> :
693
- * reçoit l'état + les capacités (cast/PiP) en entrée et émet les commandes ;
694
- * l'hôte applique l'action (et possède l'élément vidéo pour PiP/cast).
695
- */
696
- export declare class PlayerControlsComponent {
697
- readonly playing: import("@angular/core").InputSignal<boolean>;
698
- readonly isAudioMode: import("@angular/core").InputSignal<boolean>;
699
- readonly hasPlaylistControls: import("@angular/core").InputSignal<boolean>;
700
- readonly canPrev: import("@angular/core").InputSignal<boolean>;
701
- readonly canNext: import("@angular/core").InputSignal<boolean>;
702
- readonly shuffleActive: import("@angular/core").InputSignal<boolean>;
703
- readonly shuffleLabel: import("@angular/core").InputSignal<string>;
704
- readonly repeatMode: import("@angular/core").InputSignal<RepeatMode>;
705
- readonly repeatLabel: import("@angular/core").InputSignal<string>;
706
- readonly captionsActive: import("@angular/core").InputSignal<boolean>;
707
- readonly tracksLabel: import("@angular/core").InputSignal<string>;
708
- readonly captionsLabel: import("@angular/core").InputSignal<string>;
709
- readonly speedLabel: import("@angular/core").InputSignal<string>;
710
- readonly volumeLabel: import("@angular/core").InputSignal<string>;
711
- readonly muteLabel: import("@angular/core").InputSignal<string>;
712
- readonly unmuteLabel: import("@angular/core").InputSignal<string>;
713
- readonly showAirPlay: import("@angular/core").InputSignal<boolean>;
714
- readonly airPlayActive: import("@angular/core").InputSignal<boolean>;
715
- readonly airPlayLabel: import("@angular/core").InputSignal<string>;
716
- readonly showCast: import("@angular/core").InputSignal<boolean>;
717
- readonly castActive: import("@angular/core").InputSignal<boolean>;
718
- readonly castLabel: import("@angular/core").InputSignal<string>;
719
- readonly castHint: import("@angular/core").InputSignal<string>;
720
- readonly pipSupported: import("@angular/core").InputSignal<boolean>;
721
- readonly pipActive: import("@angular/core").InputSignal<boolean>;
722
- readonly pipLabel: import("@angular/core").InputSignal<string>;
723
- readonly volume: import("@angular/core").InputSignal<number>;
724
- readonly currentTime: import("@angular/core").InputSignal<number>;
725
- readonly duration: import("@angular/core").InputSignal<number>;
726
- readonly buffered: import("@angular/core").InputSignal<number>;
727
- readonly profile: import("@angular/core").InputSignal<SourceProfile>;
728
- readonly playToggle: import("@angular/core").OutputEmitterRef<void>;
729
- readonly seekRelative: import("@angular/core").OutputEmitterRef<number>;
730
- readonly prev: import("@angular/core").OutputEmitterRef<void>;
731
- readonly next: import("@angular/core").OutputEmitterRef<void>;
732
- readonly toggleShuffle: import("@angular/core").OutputEmitterRef<void>;
733
- readonly cycleRepeat: import("@angular/core").OutputEmitterRef<void>;
734
- readonly openMenu: import("@angular/core").OutputEmitterRef<PlayerMenuKind>;
735
- readonly captions: import("@angular/core").OutputEmitterRef<void>;
736
- readonly airPlay: import("@angular/core").OutputEmitterRef<void>;
737
- readonly cast: import("@angular/core").OutputEmitterRef<void>;
738
- readonly pip: import("@angular/core").OutputEmitterRef<void>;
739
- readonly mute: import("@angular/core").OutputEmitterRef<void>;
740
- readonly scrub: import("@angular/core").OutputEmitterRef<number>;
741
- readonly volumeChange: import("@angular/core").OutputEmitterRef<number>;
742
- fmtTime(sec: number): string;
743
- static ɵfac: i0.ɵɵFactoryDeclaration<PlayerControlsComponent, never>;
744
- static ɵcmp: i0.ɵɵComponentDeclaration<PlayerControlsComponent, "ngxsp-player-controls", never, {
745
- "playing": {
746
- "alias": "playing";
747
- "required": false;
748
- "isSignal": true;
749
- };
750
- "isAudioMode": {
751
- "alias": "isAudioMode";
752
- "required": false;
753
- "isSignal": true;
754
- };
755
- "hasPlaylistControls": {
756
- "alias": "hasPlaylistControls";
757
- "required": false;
758
- "isSignal": true;
759
- };
760
- "canPrev": {
761
- "alias": "canPrev";
762
- "required": false;
763
- "isSignal": true;
764
- };
765
- "canNext": {
766
- "alias": "canNext";
767
- "required": false;
768
- "isSignal": true;
769
- };
770
- "shuffleActive": {
771
- "alias": "shuffleActive";
772
- "required": false;
773
- "isSignal": true;
774
- };
775
- "shuffleLabel": {
776
- "alias": "shuffleLabel";
777
- "required": false;
778
- "isSignal": true;
779
- };
780
- "repeatMode": {
781
- "alias": "repeatMode";
782
- "required": false;
783
- "isSignal": true;
784
- };
785
- "repeatLabel": {
786
- "alias": "repeatLabel";
787
- "required": false;
788
- "isSignal": true;
789
- };
790
- "captionsActive": {
791
- "alias": "captionsActive";
792
- "required": false;
793
- "isSignal": true;
794
- };
795
- "tracksLabel": {
796
- "alias": "tracksLabel";
797
- "required": false;
798
- "isSignal": true;
799
- };
800
- "captionsLabel": {
801
- "alias": "captionsLabel";
802
- "required": false;
803
- "isSignal": true;
804
- };
805
- "speedLabel": {
806
- "alias": "speedLabel";
807
- "required": false;
808
- "isSignal": true;
809
- };
810
- "volumeLabel": {
811
- "alias": "volumeLabel";
812
- "required": false;
813
- "isSignal": true;
814
- };
815
- "muteLabel": {
816
- "alias": "muteLabel";
817
- "required": false;
818
- "isSignal": true;
819
- };
820
- "unmuteLabel": {
821
- "alias": "unmuteLabel";
822
- "required": false;
823
- "isSignal": true;
824
- };
825
- "showAirPlay": {
826
- "alias": "showAirPlay";
827
- "required": false;
828
- "isSignal": true;
829
- };
830
- "airPlayActive": {
831
- "alias": "airPlayActive";
832
- "required": false;
833
- "isSignal": true;
834
- };
835
- "airPlayLabel": {
836
- "alias": "airPlayLabel";
837
- "required": false;
838
- "isSignal": true;
839
- };
840
- "showCast": {
841
- "alias": "showCast";
842
- "required": false;
843
- "isSignal": true;
844
- };
845
- "castActive": {
846
- "alias": "castActive";
847
- "required": false;
848
- "isSignal": true;
849
- };
850
- "castLabel": {
851
- "alias": "castLabel";
852
- "required": false;
853
- "isSignal": true;
854
- };
855
- "castHint": {
856
- "alias": "castHint";
857
- "required": false;
858
- "isSignal": true;
859
- };
860
- "pipSupported": {
861
- "alias": "pipSupported";
862
- "required": false;
863
- "isSignal": true;
864
- };
865
- "pipActive": {
866
- "alias": "pipActive";
867
- "required": false;
868
- "isSignal": true;
869
- };
870
- "pipLabel": {
871
- "alias": "pipLabel";
872
- "required": false;
873
- "isSignal": true;
874
- };
875
- "volume": {
876
- "alias": "volume";
877
- "required": false;
878
- "isSignal": true;
879
- };
880
- "currentTime": {
881
- "alias": "currentTime";
882
- "required": false;
883
- "isSignal": true;
884
- };
885
- "duration": {
886
- "alias": "duration";
887
- "required": false;
888
- "isSignal": true;
889
- };
890
- "buffered": {
891
- "alias": "buffered";
892
- "required": false;
893
- "isSignal": true;
894
- };
895
- "profile": {
896
- "alias": "profile";
897
- "required": false;
898
- "isSignal": true;
899
- };
900
- }, {
901
- "playToggle": "playToggle";
902
- "seekRelative": "seekRelative";
903
- "prev": "prev";
904
- "next": "next";
905
- "toggleShuffle": "toggleShuffle";
906
- "cycleRepeat": "cycleRepeat";
907
- "openMenu": "openMenu";
908
- "captions": "captions";
909
- "airPlay": "airPlay";
910
- "cast": "cast";
911
- "pip": "pip";
912
- "mute": "mute";
913
- "scrub": "scrub";
914
- "volumeChange": "volumeChange";
915
- }, never, never, true, never>;
932
+ /** A playback position and the media it was measured on. */
933
+ export interface SmartPlayerProgress {
934
+ currentTime: number;
935
+ duration: number;
936
+ contentId?: string;
937
+ sourceUrl?: string;
916
938
  }
917
- /**
918
- * Barre de contrôle du skin vod (top bar + center dock + bottom bar),
919
- * extraite du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).
920
- * Le menu pistes/vitesse est projeté par l'hôte via <ng-content>.
921
- * PiP/cast restent au parent (propriétaire du <video>) : capacités en entrée,
922
- * commandes en sortie.
923
- */
924
- export declare class PlayerControlsVodComponent {
925
- readonly playing: import("@angular/core").InputSignal<boolean>;
926
- readonly isAudioMode: import("@angular/core").InputSignal<boolean>;
927
- readonly displayTitle: import("@angular/core").InputSignal<string>;
928
- readonly nowPlayingLabel: import("@angular/core").InputSignal<string>;
929
- readonly nowListeningLabel: import("@angular/core").InputSignal<string>;
930
- readonly fullscreenHintLabel: import("@angular/core").InputSignal<string>;
931
- readonly statusLabel: import("@angular/core").InputSignal<string>;
932
- readonly keyboardHint: import("@angular/core").InputSignal<string>;
933
- readonly hasPlaylistControls: import("@angular/core").InputSignal<boolean>;
934
- readonly canPrev: import("@angular/core").InputSignal<boolean>;
935
- readonly canNext: import("@angular/core").InputSignal<boolean>;
936
- readonly previousLabel: import("@angular/core").InputSignal<string>;
937
- readonly nextLabel: import("@angular/core").InputSignal<string>;
938
- readonly playLabel: import("@angular/core").InputSignal<string>;
939
- readonly pauseLabel: import("@angular/core").InputSignal<string>;
940
- readonly shuffleActive: import("@angular/core").InputSignal<boolean>;
941
- readonly shuffleLabel: import("@angular/core").InputSignal<string>;
942
- readonly repeatMode: import("@angular/core").InputSignal<RepeatMode>;
943
- readonly repeatLabel: import("@angular/core").InputSignal<string>;
944
- readonly captionsActive: import("@angular/core").InputSignal<boolean>;
945
- readonly tracksLabel: import("@angular/core").InputSignal<string>;
946
- readonly captionsLabel: import("@angular/core").InputSignal<string>;
947
- readonly speedLabel: import("@angular/core").InputSignal<string>;
948
- /** "1×", "1.5×": the rate on the speed pill. */
949
- readonly speedBadge: import("@angular/core").Signal<string>;
950
- readonly volumeLabel: import("@angular/core").InputSignal<string>;
951
- readonly muteLabel: import("@angular/core").InputSignal<string>;
952
- readonly unmuteLabel: import("@angular/core").InputSignal<string>;
953
- readonly showAirPlay: import("@angular/core").InputSignal<boolean>;
954
- readonly airPlayActive: import("@angular/core").InputSignal<boolean>;
955
- readonly airPlayLabel: import("@angular/core").InputSignal<string>;
956
- readonly showCast: import("@angular/core").InputSignal<boolean>;
957
- readonly castActive: import("@angular/core").InputSignal<boolean>;
958
- readonly castLabel: import("@angular/core").InputSignal<string>;
959
- readonly castHint: import("@angular/core").InputSignal<string>;
960
- readonly pipSupported: import("@angular/core").InputSignal<boolean>;
961
- readonly pipActive: import("@angular/core").InputSignal<boolean>;
962
- readonly pipLabel: import("@angular/core").InputSignal<string>;
963
- readonly fullscreenLabel: import("@angular/core").InputSignal<string>;
964
- readonly volume: import("@angular/core").InputSignal<number>;
965
- readonly currentTime: import("@angular/core").InputSignal<number>;
966
- readonly duration: import("@angular/core").InputSignal<number>;
967
- readonly buffered: import("@angular/core").InputSignal<number>;
968
- readonly bufferPercent: import("@angular/core").InputSignal<number>;
969
- readonly profile: import("@angular/core").InputSignal<SourceProfile>;
970
- readonly timelineDurationSec: import("@angular/core").InputSignal<number>;
971
- readonly timelineMarkers: import("@angular/core").InputSignal<readonly NgxspTimelineMarker[]>;
972
- readonly playToggle: import("@angular/core").OutputEmitterRef<void>;
973
- readonly seekRelative: import("@angular/core").OutputEmitterRef<number>;
974
- readonly prev: import("@angular/core").OutputEmitterRef<void>;
975
- readonly next: import("@angular/core").OutputEmitterRef<void>;
976
- readonly toggleShuffle: import("@angular/core").OutputEmitterRef<void>;
977
- readonly cycleRepeat: import("@angular/core").OutputEmitterRef<void>;
978
- readonly openMenu: import("@angular/core").OutputEmitterRef<PlayerMenuKind>;
979
- readonly captions: import("@angular/core").OutputEmitterRef<void>;
980
- readonly airPlay: import("@angular/core").OutputEmitterRef<void>;
981
- readonly cast: import("@angular/core").OutputEmitterRef<void>;
982
- readonly pip: import("@angular/core").OutputEmitterRef<void>;
983
- readonly fullscreen: import("@angular/core").OutputEmitterRef<void>;
984
- readonly mute: import("@angular/core").OutputEmitterRef<void>;
985
- readonly scrub: import("@angular/core").OutputEmitterRef<number>;
986
- readonly volumeChange: import("@angular/core").OutputEmitterRef<number>;
939
+ export declare class SmartPlayerComponent implements OnChanges, OnInit, OnDestroy {
940
+ config: PlayerConfig;
941
+ plugins: PlayerPlugin[];
942
+ ports?: Partial<PlayerPorts>;
943
+ engines?: EngineFactory[];
944
+ debug: boolean;
945
+ /**
946
+ * The host is already dealing with the failure that just happened, so the card that announces
947
+ * one stays away. A film a peer is converting fails first and plays a moment later: told
948
+ * nothing, the player put "Format not supported — Retry" over the very film being rescued.
949
+ */
950
+ handlingFailure: boolean;
951
+ /** Optional start time (seconds) used for "resume playback". */
952
+ startTimeSec: number | null;
953
+ /** Starts the first source as soon as it is loaded. WebViews and desktop shells do not block it like browsers do. */
954
+ autoplayOnInit: boolean;
955
+ /** Increment when the user picks something to play: a new source starts, the current one resumes. */
956
+ playRequest: number;
957
+ canPrev: boolean;
958
+ canNext: boolean;
959
+ previousLabel: string;
960
+ nextLabel: string;
961
+ playLabel: string;
962
+ pauseLabel: string;
963
+ shuffleActive: boolean;
964
+ shuffleLabel: string;
965
+ repeatMode: 'off' | 'one' | 'all';
966
+ repeatLabel: string;
967
+ hasPlaylistControls: boolean;
968
+ /**
969
+ * The three below let a host that already offers something take it off the bar, rather than
970
+ * having the viewer meet the same command twice. Each stays on by default: a player used on
971
+ * its own carries everything.
972
+ *
973
+ * Where to send the picture, when the host asks for it from a button of its own.
974
+ */
975
+ showCastControl: boolean;
976
+ /** The system's own small window, when the host has a smaller window of its own to offer. */
977
+ showPictureInPicture: boolean;
978
+ /** Shuffle and repeat, when the host keeps them with the queue they act on. */
979
+ showPlaylistModes: boolean;
980
+ mediaMode: 'video' | 'audio';
981
+ castEnabled: boolean;
982
+ /** The media plays on a device the app drives (castEnabled): the devices button shows it. */
983
+ castConnected: boolean;
984
+ private airPlayAvailable;
985
+ private airPlayActive;
986
+ /** What the error card says. Left alone it speaks English, like the rest of this library's defaults. */
987
+ overlayLabels: Partial<PlayerOverlayLabels>;
988
+ documentShortcuts: boolean;
989
+ nowPlayingLabel: string;
990
+ nowListeningLabel: string;
991
+ fullscreenHintLabel: string;
992
+ fullscreenLabel: string;
993
+ readyStatusLabel: string;
994
+ playingStatusLabel: string;
995
+ pausedStatusLabel: string;
996
+ bufferingStatusLabel: string;
997
+ loadingStatusLabel: string;
998
+ endedStatusLabel: string;
999
+ errorStatusLabel: string;
1000
+ outputVolume: number | null;
1001
+ outputVolumeLabel: string;
1002
+ outputMuteLabel: string;
1003
+ outputUnmuteLabel: string;
1004
+ timelineDurationSec: number | null;
1005
+ timelineMarkers: ReadonlyArray<NgxspTimelineMarker>;
1006
+ ended: EventEmitter<void>;
1007
+ videoSize: EventEmitter<{
1008
+ width: number;
1009
+ height: number;
1010
+ }>;
1011
+ /**
1012
+ * Whether the player draws its own picture for a sound: a turning disc, the title, and five
1013
+ * bars that pulse while it plays.
1014
+ *
1015
+ * A host that draws its own — a cover of its own and a waveform of its own — mounts this player
1016
+ * for its engine alone, in a box of a pixel. The stage then goes on turning and pulsing inside
1017
+ * it: six animations and a sixth of the page's nodes, clipped away, on every frame and on
1018
+ * whatever battery is running them.
1019
+ */
1020
+ showAudioVisual: boolean;
1021
+ /**
1022
+ * Emits playback position updates, tagged with the media they belong to: a host switching tracks can still receive
1023
+ * a position of the previous one, and must not file it under the new one.
1024
+ */
1025
+ progress: EventEmitter<SmartPlayerProgress>;
1026
+ prev: EventEmitter<void>;
1027
+ next: EventEmitter<void>;
1028
+ toggleShuffle: EventEmitter<void>;
1029
+ cycleRepeat: EventEmitter<void>;
1030
+ /** CC pressed; the vod and edition skins also open their subtitles menu. */
1031
+ /**
1032
+ * The two chips about what is playing — the tracks and the subtitles. Off when the host carries
1033
+ * them itself, so a viewer is not offered the same thing twice in the same bar. `openSubtitlePicker`
1034
+ * stays public for the host that takes them over: loading a sidecar file is part of what it took.
1035
+ */
1036
+ showTrackControls: boolean;
1037
+ subtitles: EventEmitter<void>;
1038
+ /** A subtitle file was read (ok) or could not be (error). */
1039
+ subtitlesLoaded: EventEmitter<{
1040
+ label: string;
1041
+ ok: boolean;
1042
+ error?: string;
1043
+ }>;
1044
+ /** The words of the player's menus and of its subtitles button. */
1045
+ menuLabels: Partial<PlayerMenuLabels>;
1046
+ /** What the cast chip says, state by state. A host that speaks another language replaces the ones it has words for. */
1047
+ castLabels: Partial<CastLabels>;
1048
+ cast: EventEmitter<void>;
1049
+ stateChange: EventEmitter<PlayerState>;
1050
+ playbackToggle: EventEmitter<"play" | "pause">;
1051
+ outputVolumeChange: EventEmitter<number>;
1052
+ videoEl: ElementRef<HTMLVideoElement>;
1053
+ captionsLayer: ElementRef<HTMLElement>;
1054
+ /** Absent in audio mode, which has no subtitles. */
1055
+ subtitleFileInput?: ElementRef<HTMLInputElement>;
1056
+ state: PlayerState | null;
1057
+ duration: number;
1058
+ currentTime: number;
1059
+ volume: number;
1060
+ private lastVolumeBeforeMute;
1061
+ playbackRate: number;
1062
+ bufferAheadSec: number;
1063
+ tracks: MediaTrack[];
1064
+ openMenu: 'tracks' | 'speed' | 'captions' | null;
1065
+ controlsVisible: boolean;
1066
+ surfaceGesture: 'play' | 'pause' | null;
1067
+ castState: 'disconnected' | 'connecting' | 'connected';
1068
+ readonly playbackRates: number[];
1069
+ private facade;
1070
+ private readonly cdr;
1071
+ private sub;
1072
+ private hideControlsTimer;
1073
+ private surfaceClickTimer;
1074
+ private gestureTimer;
1075
+ private remotePlaybackCleanup;
1076
+ private initialized;
1077
+ private loadedSourceSignature;
1078
+ private loadSequence;
1079
+ private loading;
1080
+ private pendingPlay;
1081
+ /** Whether the load in progress was asked to start playback. */
1082
+ private loadingAutoplay;
1083
+ /** Load whose end was already reported; reset when playback starts again (repeat one). */
1084
+ private endedLoadSequence;
1085
+ private pendingSeekSec;
1086
+ get uiSkin(): 'classic' | 'vod' | 'edition';
1087
+ /** Libellé méta du skin édition (genre · format). */
1088
+ get editionMeta(): string;
1089
+ /**
1090
+ * Keeps the controls up while the host has something of its own open over them — a dialog
1091
+ * anchored to one of its buttons goes away with the bar it hangs from, mid-sentence.
1092
+ */
1093
+ holdControls: boolean;
1094
+ /**
1095
+ * The subtitle language chosen once, in the settings, rather than per video: when a media's
1096
+ * tracks arrive, the one that speaks it is shown without being asked for. `null` leaves the
1097
+ * choice to whoever is watching, '' means none at all.
1098
+ */
1099
+ preferredTextLanguage: string | null;
1100
+ /**
1101
+ * How large the subtitles read, as a multiplier of the size the picture's width gives them.
1102
+ * The board offers three: small, medium, large.
1103
+ */
1104
+ captionScale: number;
1105
+ /**
1106
+ * Whether the subtitle files sitting next to the media — the `.srt` a download came with — are
1107
+ * loaded with it. They reach the player as `source.sidecar.subtitles`; off, they are ignored
1108
+ * and only what the media itself carries is offered.
1109
+ */
1110
+ loadSidecarSubtitles: boolean;
1111
+ get uiVisible(): boolean;
1112
+ get displayTitle(): string;
1113
+ get displaySubtitle(): string;
1114
+ get isAudioMode(): boolean;
1115
+ /** Profil de source transmis aux primitives UI (cf. @ngxsp/ui-core). */
1116
+ get sourceProfile(): SourceProfile;
1117
+ get audioTracks(): MediaTrack[];
1118
+ get textTracks(): MediaTrack[];
1119
+ get videoTracks(): MediaTrack[];
1120
+ get selectedAudioTrackId(): string | null;
1121
+ get selectedTextTrackId(): string | null;
1122
+ get selectedVideoTrackId(): string | null;
1123
+ ngOnChanges(changes: SimpleChanges): void;
1124
+ ngOnInit(): void;
1125
+ ngOnDestroy(): void;
1126
+ tryPlay(): void;
1127
+ get debugJson(): string;
1128
+ get currentError(): PlayerError | null;
1129
+ copyDebug(): Promise<void>;
1130
+ downloadDebug(): void;
1131
+ togglePlay(): void;
1132
+ requestPlaybackToggle(): void;
1133
+ seekRel(deltaSec: number): void;
1134
+ seekTo(timeSec: number): void;
1135
+ onScrub(value: number): void;
1136
+ onVolume(value: number): void;
1137
+ toggleMute(): void;
1138
+ setPlaybackRate(rate: number): Promise<void>;
1139
+ reload(): void;
1140
+ onLoadedMetadata(): void;
1141
+ onEnded(): void;
1142
+ toggleFullscreen(): void;
1143
+ toggleMenu(menu: 'tracks' | 'speed' | 'captions'): void;
1144
+ get playerMenuLabels(): PlayerMenuLabels;
1145
+ onCaptionsClick(): void;
1146
+ openSubtitlePicker(): void;
1147
+ onSubtitleFileChosen(event: Event): Promise<void>;
1148
+ /** Reads a SubRip or WebVTT file and shows it over the video. */
1149
+ loadSubtitleFile(file: File): Promise<void>;
1150
+ private controlsObserver?;
1151
+ /** While the controls show, the subtitles sit just above them, however tall they are (a menu makes them taller). */
1152
+ private followControlsHeight;
1153
+ /** Draws the cues of the loaded subtitles (their markup parsed by the browser: italics, bold, no script). */
1154
+ /**
1155
+ * Loads the subtitle files that came with the media. They are added as tracks and none is
1156
+ * shown: what is shown is the preference's business, or the viewer's.
1157
+ */
1158
+ private loadSidecars;
1159
+ /**
1160
+ * Shows the track that speaks the preferred language, once per media. It only ever acts on a
1161
+ * media nobody has chosen a track for: a choice made while watching outlives the preference,
1162
+ * which is a default and not an order.
1163
+ */
1164
+ private applyPreferredTextTrack;
1165
+ /** The media the preference was already applied to, so a choice made since is not overridden. */
1166
+ private preferenceAppliedTo;
1167
+ private drawCaptions;
1168
+ selectTextTrack(trackId: string | null): Promise<void>;
1169
+ selectAudioTrack(trackId: string): Promise<void>;
1170
+ selectVideoTrack(trackId: string | null): Promise<void>;
1171
+ togglePiP(): Promise<void>;
1172
+ isPiPSupported(): boolean;
1173
+ pipLabel(): string;
1174
+ isPiPActive(): boolean;
1175
+ requestCast(): Promise<void>;
1176
+ isCastSupported(): boolean;
1177
+ isCastActive(): boolean;
1178
+ showCastButton(): boolean;
1179
+ /**
1180
+ * AirPlay, as WebKit offers it: the system decides what is reachable and draws the picker
1181
+ * itself. Nothing is discovered here, and nothing is sent — the route belongs to the device.
1182
+ * Everywhere else these stay false and the button never appears.
1183
+ */
1184
+ showAirPlayButton(): boolean;
1185
+ isAirPlayActive(): boolean;
1186
+ airPlayLabel(): string;
1187
+ openAirPlayPicker(): void;
1188
+ /** Wired to the media element whenever one is created, for video and for audio alike. */
1189
+ private watchAirPlay;
1190
+ private get castChipLabels();
1191
+ castLabel(): string;
1192
+ castHintLabel(): string;
1193
+ onCastClick(): void;
1194
+ captionsLabel(): string;
1195
+ volumeLabel(): string;
1196
+ playbackRateLabel(): string;
1197
+ statusLabel(): string;
1198
+ keyboardHintLabel(): string;
1199
+ tracksButtonLabel(): string;
1200
+ onPrimarySurfaceDoubleClick(): void;
1201
+ bufferPercent(): number;
1202
+ /** One implementation, in `formatTime`: five copies of this is how the one on the video
1203
+ * chrome came to print `Infinity:NaN:NaN` while the others did not. */
1204
+ /** The length to show; `playableDurationSec` holds the rule, and is tested where it lives. */
1205
+ private usableDuration;
987
1206
  fmtTime(sec: number): string;
988
- static ɵfac: i0.ɵɵFactoryDeclaration<PlayerControlsVodComponent, never>;
989
- static ɵcmp: i0.ɵɵComponentDeclaration<PlayerControlsVodComponent, "ngxsp-player-controls-vod", never, {
990
- "playing": {
991
- "alias": "playing";
992
- "required": false;
993
- "isSignal": true;
1207
+ noop(): void;
1208
+ /**
1209
+ * Music plays in a real <audio> element: mobile browsers and Android WebViews pause <video> elements as soon as
1210
+ * the page is hidden, which would stop the music when the app goes to the background or the screen turns off.
1211
+ */
1212
+ private mediaElementForMode;
1213
+ onInteraction(persist?: boolean): void;
1214
+ onPointerLeave(): void;
1215
+ onRootClick(event: MouseEvent): void;
1216
+ onEscape(): void;
1217
+ onKeydown(event: KeyboardEvent): void;
1218
+ private loadConfig;
1219
+ private applyStartTime;
1220
+ private applySeek;
1221
+ private safeSeekTime;
1222
+ private sourceSignature;
1223
+ private bindRemotePlaybackState;
1224
+ private syncControlVisibility;
1225
+ private applyVolume;
1226
+ private syncOutputVolumeInput;
1227
+ setOutputVolume(value: number): void;
1228
+ /**
1229
+ * Sends the sound to one of the machine's outputs, by the id the browser gave it.
1230
+ *
1231
+ * Only Chromium browsers have `setSinkId`, which is also what the desktop shell runs; elsewhere
1232
+ * the request is refused here rather than failing somewhere further down, and the host is told so
1233
+ * it can say the sound stays where the system puts it. An empty id means exactly that: the
1234
+ * default output, which is what the element starts on.
1235
+ */
1236
+ setAudioOutput(sinkId: string): Promise<boolean>;
1237
+ /** Whether this browser lets a page choose where the sound comes out at all. */
1238
+ get audioOutputSelectable(): boolean;
1239
+ private setVolume;
1240
+ private normalizeVolume;
1241
+ private clearHideControlsTimer;
1242
+ private queueSurfacePlaybackToggle;
1243
+ private clearSurfaceClickTimer;
1244
+ private playbackToggleIntent;
1245
+ private showSurfaceGesture;
1246
+ private clearGestureTimer;
1247
+ private isInteractiveTarget;
1248
+ emitNext(): void;
1249
+ emitPrev(): void;
1250
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartPlayerComponent, never>;
1251
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartPlayerComponent, "ngx-smart-player", never, {
1252
+ "config": {
1253
+ "alias": "config";
1254
+ "required": true;
994
1255
  };
995
- "isAudioMode": {
996
- "alias": "isAudioMode";
1256
+ "plugins": {
1257
+ "alias": "plugins";
997
1258
  "required": false;
998
- "isSignal": true;
999
1259
  };
1000
- "displayTitle": {
1001
- "alias": "displayTitle";
1260
+ "ports": {
1261
+ "alias": "ports";
1002
1262
  "required": false;
1003
- "isSignal": true;
1004
1263
  };
1005
- "nowPlayingLabel": {
1006
- "alias": "nowPlayingLabel";
1264
+ "engines": {
1265
+ "alias": "engines";
1007
1266
  "required": false;
1008
- "isSignal": true;
1009
1267
  };
1010
- "nowListeningLabel": {
1011
- "alias": "nowListeningLabel";
1268
+ "debug": {
1269
+ "alias": "debug";
1012
1270
  "required": false;
1013
- "isSignal": true;
1014
1271
  };
1015
- "fullscreenHintLabel": {
1016
- "alias": "fullscreenHintLabel";
1272
+ "handlingFailure": {
1273
+ "alias": "handlingFailure";
1017
1274
  "required": false;
1018
- "isSignal": true;
1019
1275
  };
1020
- "statusLabel": {
1021
- "alias": "statusLabel";
1276
+ "startTimeSec": {
1277
+ "alias": "startTimeSec";
1022
1278
  "required": false;
1023
- "isSignal": true;
1024
1279
  };
1025
- "keyboardHint": {
1026
- "alias": "keyboardHint";
1280
+ "autoplayOnInit": {
1281
+ "alias": "autoplayOnInit";
1027
1282
  "required": false;
1028
- "isSignal": true;
1029
1283
  };
1030
- "hasPlaylistControls": {
1031
- "alias": "hasPlaylistControls";
1284
+ "playRequest": {
1285
+ "alias": "playRequest";
1032
1286
  "required": false;
1033
- "isSignal": true;
1034
1287
  };
1035
1288
  "canPrev": {
1036
1289
  "alias": "canPrev";
1037
1290
  "required": false;
1038
- "isSignal": true;
1039
1291
  };
1040
1292
  "canNext": {
1041
1293
  "alias": "canNext";
1042
1294
  "required": false;
1043
- "isSignal": true;
1044
1295
  };
1045
1296
  "previousLabel": {
1046
1297
  "alias": "previousLabel";
1047
1298
  "required": false;
1048
- "isSignal": true;
1049
1299
  };
1050
1300
  "nextLabel": {
1051
1301
  "alias": "nextLabel";
1052
1302
  "required": false;
1053
- "isSignal": true;
1054
1303
  };
1055
1304
  "playLabel": {
1056
1305
  "alias": "playLabel";
1057
1306
  "required": false;
1058
- "isSignal": true;
1059
1307
  };
1060
1308
  "pauseLabel": {
1061
1309
  "alias": "pauseLabel";
1062
1310
  "required": false;
1063
- "isSignal": true;
1064
1311
  };
1065
1312
  "shuffleActive": {
1066
1313
  "alias": "shuffleActive";
1067
1314
  "required": false;
1068
- "isSignal": true;
1069
1315
  };
1070
1316
  "shuffleLabel": {
1071
1317
  "alias": "shuffleLabel";
1072
1318
  "required": false;
1073
- "isSignal": true;
1074
1319
  };
1075
1320
  "repeatMode": {
1076
1321
  "alias": "repeatMode";
1077
1322
  "required": false;
1078
- "isSignal": true;
1079
1323
  };
1080
1324
  "repeatLabel": {
1081
1325
  "alias": "repeatLabel";
1082
1326
  "required": false;
1083
- "isSignal": true;
1084
1327
  };
1085
- "captionsActive": {
1086
- "alias": "captionsActive";
1328
+ "hasPlaylistControls": {
1329
+ "alias": "hasPlaylistControls";
1087
1330
  "required": false;
1088
- "isSignal": true;
1089
1331
  };
1090
- "tracksLabel": {
1091
- "alias": "tracksLabel";
1332
+ "showCastControl": {
1333
+ "alias": "showCastControl";
1092
1334
  "required": false;
1093
- "isSignal": true;
1094
1335
  };
1095
- "captionsLabel": {
1096
- "alias": "captionsLabel";
1336
+ "showPictureInPicture": {
1337
+ "alias": "showPictureInPicture";
1097
1338
  "required": false;
1098
- "isSignal": true;
1099
1339
  };
1100
- "speedLabel": {
1101
- "alias": "speedLabel";
1340
+ "showPlaylistModes": {
1341
+ "alias": "showPlaylistModes";
1102
1342
  "required": false;
1103
- "isSignal": true;
1104
1343
  };
1105
- "volumeLabel": {
1106
- "alias": "volumeLabel";
1344
+ "mediaMode": {
1345
+ "alias": "mediaMode";
1107
1346
  "required": false;
1108
- "isSignal": true;
1109
1347
  };
1110
- "muteLabel": {
1111
- "alias": "muteLabel";
1348
+ "castEnabled": {
1349
+ "alias": "castEnabled";
1112
1350
  "required": false;
1113
- "isSignal": true;
1114
1351
  };
1115
- "unmuteLabel": {
1116
- "alias": "unmuteLabel";
1352
+ "castConnected": {
1353
+ "alias": "castConnected";
1117
1354
  "required": false;
1118
- "isSignal": true;
1119
1355
  };
1120
- "showAirPlay": {
1121
- "alias": "showAirPlay";
1356
+ "overlayLabels": {
1357
+ "alias": "overlayLabels";
1122
1358
  "required": false;
1123
- "isSignal": true;
1124
1359
  };
1125
- "airPlayActive": {
1126
- "alias": "airPlayActive";
1360
+ "documentShortcuts": {
1361
+ "alias": "documentShortcuts";
1127
1362
  "required": false;
1128
- "isSignal": true;
1129
1363
  };
1130
- "airPlayLabel": {
1131
- "alias": "airPlayLabel";
1364
+ "nowPlayingLabel": {
1365
+ "alias": "nowPlayingLabel";
1132
1366
  "required": false;
1133
- "isSignal": true;
1134
1367
  };
1135
- "showCast": {
1136
- "alias": "showCast";
1368
+ "nowListeningLabel": {
1369
+ "alias": "nowListeningLabel";
1137
1370
  "required": false;
1138
- "isSignal": true;
1139
1371
  };
1140
- "castActive": {
1141
- "alias": "castActive";
1372
+ "fullscreenHintLabel": {
1373
+ "alias": "fullscreenHintLabel";
1142
1374
  "required": false;
1143
- "isSignal": true;
1144
1375
  };
1145
- "castLabel": {
1146
- "alias": "castLabel";
1376
+ "fullscreenLabel": {
1377
+ "alias": "fullscreenLabel";
1147
1378
  "required": false;
1148
- "isSignal": true;
1149
1379
  };
1150
- "castHint": {
1151
- "alias": "castHint";
1380
+ "readyStatusLabel": {
1381
+ "alias": "readyStatusLabel";
1152
1382
  "required": false;
1153
- "isSignal": true;
1154
1383
  };
1155
- "pipSupported": {
1156
- "alias": "pipSupported";
1384
+ "playingStatusLabel": {
1385
+ "alias": "playingStatusLabel";
1157
1386
  "required": false;
1158
- "isSignal": true;
1159
1387
  };
1160
- "pipActive": {
1161
- "alias": "pipActive";
1388
+ "pausedStatusLabel": {
1389
+ "alias": "pausedStatusLabel";
1162
1390
  "required": false;
1163
- "isSignal": true;
1164
1391
  };
1165
- "pipLabel": {
1166
- "alias": "pipLabel";
1392
+ "bufferingStatusLabel": {
1393
+ "alias": "bufferingStatusLabel";
1167
1394
  "required": false;
1168
- "isSignal": true;
1169
1395
  };
1170
- "fullscreenLabel": {
1171
- "alias": "fullscreenLabel";
1396
+ "loadingStatusLabel": {
1397
+ "alias": "loadingStatusLabel";
1172
1398
  "required": false;
1173
- "isSignal": true;
1174
1399
  };
1175
- "volume": {
1176
- "alias": "volume";
1400
+ "endedStatusLabel": {
1401
+ "alias": "endedStatusLabel";
1177
1402
  "required": false;
1178
- "isSignal": true;
1179
1403
  };
1180
- "currentTime": {
1181
- "alias": "currentTime";
1404
+ "errorStatusLabel": {
1405
+ "alias": "errorStatusLabel";
1182
1406
  "required": false;
1183
- "isSignal": true;
1184
1407
  };
1185
- "duration": {
1186
- "alias": "duration";
1408
+ "outputVolume": {
1409
+ "alias": "outputVolume";
1187
1410
  "required": false;
1188
- "isSignal": true;
1189
1411
  };
1190
- "buffered": {
1191
- "alias": "buffered";
1412
+ "outputVolumeLabel": {
1413
+ "alias": "outputVolumeLabel";
1192
1414
  "required": false;
1193
- "isSignal": true;
1194
1415
  };
1195
- "bufferPercent": {
1196
- "alias": "bufferPercent";
1416
+ "outputMuteLabel": {
1417
+ "alias": "outputMuteLabel";
1197
1418
  "required": false;
1198
- "isSignal": true;
1199
1419
  };
1200
- "profile": {
1201
- "alias": "profile";
1420
+ "outputUnmuteLabel": {
1421
+ "alias": "outputUnmuteLabel";
1202
1422
  "required": false;
1203
- "isSignal": true;
1204
1423
  };
1205
1424
  "timelineDurationSec": {
1206
1425
  "alias": "timelineDurationSec";
1207
1426
  "required": false;
1208
- "isSignal": true;
1209
1427
  };
1210
1428
  "timelineMarkers": {
1211
1429
  "alias": "timelineMarkers";
1212
1430
  "required": false;
1213
- "isSignal": true;
1431
+ };
1432
+ "showAudioVisual": {
1433
+ "alias": "showAudioVisual";
1434
+ "required": false;
1435
+ };
1436
+ "showTrackControls": {
1437
+ "alias": "showTrackControls";
1438
+ "required": false;
1439
+ };
1440
+ "menuLabels": {
1441
+ "alias": "menuLabels";
1442
+ "required": false;
1443
+ };
1444
+ "castLabels": {
1445
+ "alias": "castLabels";
1446
+ "required": false;
1447
+ };
1448
+ "holdControls": {
1449
+ "alias": "holdControls";
1450
+ "required": false;
1451
+ };
1452
+ "preferredTextLanguage": {
1453
+ "alias": "preferredTextLanguage";
1454
+ "required": false;
1455
+ };
1456
+ "captionScale": {
1457
+ "alias": "captionScale";
1458
+ "required": false;
1459
+ };
1460
+ "loadSidecarSubtitles": {
1461
+ "alias": "loadSidecarSubtitles";
1462
+ "required": false;
1214
1463
  };
1215
1464
  }, {
1216
- "playToggle": "playToggle";
1217
- "seekRelative": "seekRelative";
1465
+ "ended": "ended";
1466
+ "videoSize": "videoSize";
1467
+ "progress": "progress";
1218
1468
  "prev": "prev";
1219
1469
  "next": "next";
1220
1470
  "toggleShuffle": "toggleShuffle";
1221
1471
  "cycleRepeat": "cycleRepeat";
1222
- "openMenu": "openMenu";
1223
- "captions": "captions";
1224
- "airPlay": "airPlay";
1472
+ "subtitles": "subtitles";
1473
+ "subtitlesLoaded": "subtitlesLoaded";
1225
1474
  "cast": "cast";
1226
- "pip": "pip";
1227
- "fullscreen": "fullscreen";
1228
- "mute": "mute";
1229
- "scrub": "scrub";
1230
- "volumeChange": "volumeChange";
1231
- }, never, ["[ngxsp-player-inline-controls]", "ngxsp-player-menu"], true, never>;
1475
+ "stateChange": "stateChange";
1476
+ "playbackToggle": "playbackToggle";
1477
+ "outputVolumeChange": "outputVolumeChange";
1478
+ }, never, ["[ngxsp-player-inline-controls]", "[ngxsp-player-inline-trailing]"], true, never>;
1232
1479
  }
1233
1480
  /**
1234
1481
  * Skin « édition » du lecteur : registre instrument (cf. docs/UX_VISION.md).
@@ -1245,6 +1492,9 @@ export declare class PlayerControlsEditionComponent {
1245
1492
  readonly behindSec: import("@angular/core").InputSignal<number>;
1246
1493
  readonly liveLabel: import("@angular/core").InputSignal<string>;
1247
1494
  readonly captionsActive: import("@angular/core").InputSignal<boolean>;
1495
+ /** Off when the host carries the subtitles and the tracks itself, so they are not offered twice. */
1496
+ readonly showTracks: import("@angular/core").InputSignal<boolean>;
1497
+ readonly showCaptions: import("@angular/core").InputSignal<boolean>;
1248
1498
  readonly speedLabel: import("@angular/core").InputSignal<string>;
1249
1499
  readonly showAirPlay: import("@angular/core").InputSignal<boolean>;
1250
1500
  readonly airPlayActive: import("@angular/core").InputSignal<boolean>;
@@ -1271,6 +1521,8 @@ export declare class PlayerControlsEditionComponent {
1271
1521
  readonly scrub: import("@angular/core").OutputEmitterRef<number>;
1272
1522
  readonly volumeChange: import("@angular/core").OutputEmitterRef<number>;
1273
1523
  readonly goLive: import("@angular/core").OutputEmitterRef<void>;
1524
+ /** One implementation, in `formatTime`: five copies of this is how the one on the video
1525
+ * chrome came to print `Infinity:NaN:NaN` while the others did not. */
1274
1526
  fmtTime(sec: number): string;
1275
1527
  static ɵfac: i0.ɵɵFactoryDeclaration<PlayerControlsEditionComponent, never>;
1276
1528
  static ɵcmp: i0.ɵɵComponentDeclaration<PlayerControlsEditionComponent, "ngxsp-player-controls-edition", never, {
@@ -1314,6 +1566,16 @@ export declare class PlayerControlsEditionComponent {
1314
1566
  "required": false;
1315
1567
  "isSignal": true;
1316
1568
  };
1569
+ "showTracks": {
1570
+ "alias": "showTracks";
1571
+ "required": false;
1572
+ "isSignal": true;
1573
+ };
1574
+ "showCaptions": {
1575
+ "alias": "showCaptions";
1576
+ "required": false;
1577
+ "isSignal": true;
1578
+ };
1317
1579
  "speedLabel": {
1318
1580
  "alias": "speedLabel";
1319
1581
  "required": false;
@@ -1403,6 +1665,30 @@ export declare class PlayerControlsEditionComponent {
1403
1665
  "goLive": "goLive";
1404
1666
  }, never, ["*"], true, never>;
1405
1667
  }
1668
+ /** A way out for the sound: the system's own name for it, when the page is allowed to read it. */
1669
+ export interface SmartAudioOutput {
1670
+ id: string;
1671
+ /** What the system calls it, or nothing at all when the page may not read the names. */
1672
+ label: string;
1673
+ /** The one the system would use on its own, which is where the sound goes until one is chosen. */
1674
+ isDefault: boolean;
1675
+ }
1676
+ /**
1677
+ * The sound outputs this machine offers, as the page can see them.
1678
+ *
1679
+ * A browser hides their names until the viewer has allowed a microphone — that is the privacy rule,
1680
+ * not an oversight — so a label here is often empty, and naming an unnamed one is the caller's
1681
+ * business, in the caller's language. The list is read again whenever the system's own changes:
1682
+ * plugging in a headset is the usual reason.
1683
+ */
1684
+ export declare class SmartAudioOutputsService {
1685
+ readonly outputs: import("@angular/core").WritableSignal<readonly SmartAudioOutput[]>;
1686
+ readonly available: boolean;
1687
+ constructor();
1688
+ refresh(): Promise<void>;
1689
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartAudioOutputsService, never>;
1690
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1691
+ }
1406
1692
  /**
1407
1693
  * Jetons d'injection typés pour les providers de sous-titres / métadonnées.
1408
1694
  * (Remplace les jetons `string` non typés — cf. docs/AUDIT.md, manquement #10.)
@@ -1420,4 +1706,4 @@ export interface SmartPlayerProvidersConfig {
1420
1706
  * À appeler dans le tableau `providers` de `bootstrapApplication()`.
1421
1707
  */
1422
1708
  export declare function provideSmartPlayer(cfg: SmartPlayerProvidersConfig): EnvironmentProviders;
1423
- export type { RepeatMode as PlayerControlsRepeatMode, PlayerMenuKind, PlayerMenuLabels };
1709
+ export type { CastLabels, RepeatMode as PlayerControlsRepeatMode, PlayerMenuKind, PlayerMenuLabels, PlayerOverlayLabels };