@ngxsplayer/ngx-smart-player 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,1423 @@
|
|
|
1
|
+
import { EngineFactory, MediaTrack, MetadataProvider, PlayerConfig, PlayerError, PlayerPlugin, PlayerPorts, PlayerState, SubtitleProvider } from "@ngxsp/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { AfterViewInit, ElementRef, EnvironmentProviders, EventEmitter, InjectionToken, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
4
|
+
import { NgxspTimelineMarker, SourceProfile } from "@ngxsplayer/ngx-smart-player-ui-core";
|
|
5
|
+
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';
|
|
7
|
+
export declare class SmartPlayerIconComponent {
|
|
8
|
+
name: SmartPlayerIconName;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartPlayerIconComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartPlayerIconComponent, "ngxsp-smart-icon", never, {
|
|
11
|
+
"name": {
|
|
12
|
+
"alias": "name";
|
|
13
|
+
"required": true;
|
|
14
|
+
};
|
|
15
|
+
}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
export interface SmartSettingOption {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
/** A line of a list setting, such as a library folder. */
|
|
22
|
+
export interface SmartSettingEntry {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
detail?: string;
|
|
26
|
+
/** An entry the listener always keeps, such as a folder the app owns: it is shown without its remove button. */
|
|
27
|
+
fixed?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface SmartSettingBase {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* One setting. The host owns every value and hears what the listener asks for through the component's outputs:
|
|
36
|
+
* - `switch`: on or off;
|
|
37
|
+
* - `choice`: one of a few options, shown side by side;
|
|
38
|
+
* - `list`: entries the listener can remove one by one, with an optional action for the whole list;
|
|
39
|
+
* - `action`: a button that does something now (scan again, clear a cache);
|
|
40
|
+
* - `secret`: something typed that must not be read over a shoulder, sent when it is submitted
|
|
41
|
+
* and never held afterwards — the field empties itself, and the host is the only one that
|
|
42
|
+
* ever sees what was typed.
|
|
43
|
+
*/
|
|
44
|
+
export type SmartSettingItem = (SmartSettingBase & {
|
|
45
|
+
kind: 'switch';
|
|
46
|
+
value: boolean;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
}) | (SmartSettingBase & {
|
|
49
|
+
kind: 'choice';
|
|
50
|
+
value: string;
|
|
51
|
+
options: SmartSettingOption[];
|
|
52
|
+
}) | (SmartSettingBase & {
|
|
53
|
+
kind: 'list';
|
|
54
|
+
entries: SmartSettingEntry[];
|
|
55
|
+
removeLabel: string;
|
|
56
|
+
emptyLabel?: string;
|
|
57
|
+
actionLabel?: string;
|
|
58
|
+
busy?: boolean;
|
|
59
|
+
}) | (SmartSettingBase & {
|
|
60
|
+
kind: 'action';
|
|
61
|
+
actionLabel: string;
|
|
62
|
+
busy?: boolean;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
}) | (SmartSettingBase & {
|
|
65
|
+
kind: 'secret';
|
|
66
|
+
actionLabel: string;
|
|
67
|
+
placeholder?: string;
|
|
68
|
+
/** A second field, when what is typed has to be given twice — an old code and a new one. */
|
|
69
|
+
secondPlaceholder?: string;
|
|
70
|
+
/** Digits only, which is what a device's own lock screen asks for. */
|
|
71
|
+
digits?: boolean;
|
|
72
|
+
busy?: boolean;
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
});
|
|
75
|
+
export interface SmartSettingsSection {
|
|
76
|
+
id: string;
|
|
77
|
+
title: string;
|
|
78
|
+
items: SmartSettingItem[];
|
|
79
|
+
}
|
|
80
|
+
export interface SmartSettingChange {
|
|
81
|
+
id: string;
|
|
82
|
+
value: boolean | string;
|
|
83
|
+
/** A `secret` setting's second field, when it has one: the old code beside the new one. */
|
|
84
|
+
previous?: string;
|
|
85
|
+
}
|
|
86
|
+
/** An action: a list's own action (no entry), the removal of one of its entries, or an action setting. */
|
|
87
|
+
export interface SmartSettingAction {
|
|
88
|
+
id: string;
|
|
89
|
+
entryId?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The settings of a player, grouped in sections. Colours come from the host through CSS variables
|
|
93
|
+
* (`--ngxsp-settings-surface`, `-text`, `-muted`, `-line`, `-control`, `-accent`, `-accent-text`, `-radius`).
|
|
94
|
+
*/
|
|
95
|
+
export declare class SmartSettingsComponent {
|
|
96
|
+
sections: SmartSettingsSection[];
|
|
97
|
+
settingChange: EventEmitter<SmartSettingChange>;
|
|
98
|
+
settingAction: EventEmitter<SmartSettingAction>;
|
|
99
|
+
/**
|
|
100
|
+
* Sends what was typed and empties the fields at once. Nothing secret stays in the component:
|
|
101
|
+
* the host is the only place it goes, and it does not come back through an input.
|
|
102
|
+
*/
|
|
103
|
+
protected submitSecret(event: Event, id: string): void;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartSettingsComponent, never>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartSettingsComponent, "ngxsp-settings", never, {
|
|
106
|
+
"sections": {
|
|
107
|
+
"alias": "sections";
|
|
108
|
+
"required": false;
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
"settingChange": "settingChange";
|
|
112
|
+
"settingAction": "settingAction";
|
|
113
|
+
}, never, never, true, never>;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* A question the user answers before anything happens (another device asking to send its playback here). The
|
|
117
|
+
* cautious answer has the focus and Escape; the dialog stays until one of the two buttons is pressed. Colours come
|
|
118
|
+
* from the host through CSS variables (`--ngxsp-dialog-surface`, `-text`, `-muted`, `-line`, `-accent`,
|
|
119
|
+
* `-accent-text`, `-radius`).
|
|
120
|
+
*/
|
|
121
|
+
export declare class SmartConfirmDialogComponent implements AfterViewInit {
|
|
122
|
+
title: string;
|
|
123
|
+
message: string;
|
|
124
|
+
confirmLabel: string;
|
|
125
|
+
cancelLabel: string;
|
|
126
|
+
confirmed: EventEmitter<void>;
|
|
127
|
+
cancelled: EventEmitter<void>;
|
|
128
|
+
private cancelButton?;
|
|
129
|
+
protected readonly id: string;
|
|
130
|
+
ngAfterViewInit(): void;
|
|
131
|
+
protected onEscape(event: Event): void;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartConfirmDialogComponent, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartConfirmDialogComponent, "ngxsp-confirm-dialog", never, {
|
|
134
|
+
"title": {
|
|
135
|
+
"alias": "title";
|
|
136
|
+
"required": false;
|
|
137
|
+
};
|
|
138
|
+
"message": {
|
|
139
|
+
"alias": "message";
|
|
140
|
+
"required": false;
|
|
141
|
+
};
|
|
142
|
+
"confirmLabel": {
|
|
143
|
+
"alias": "confirmLabel";
|
|
144
|
+
"required": false;
|
|
145
|
+
};
|
|
146
|
+
"cancelLabel": {
|
|
147
|
+
"alias": "cancelLabel";
|
|
148
|
+
"required": false;
|
|
149
|
+
};
|
|
150
|
+
}, {
|
|
151
|
+
"confirmed": "confirmed";
|
|
152
|
+
"cancelled": "cancelled";
|
|
153
|
+
}, never, never, true, never>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* How much of a desktop player window shows: all of it, a small floating player (`mini`), or a strip along the
|
|
157
|
+
* bottom of the screen (`bar`, audio only: a video needs a picture). The host resizes the window; the UIs lay the
|
|
158
|
+
* player out to match.
|
|
159
|
+
*/
|
|
160
|
+
export type SmartCompactMode = 'full' | 'mini' | 'bar';
|
|
161
|
+
type PlayerMenuKind$1 = 'tracks' | 'speed' | 'captions' | null;
|
|
162
|
+
/** The words of the player's menus; English by default. */
|
|
163
|
+
interface PlayerMenuLabels {
|
|
164
|
+
captions: string;
|
|
165
|
+
off: string;
|
|
166
|
+
audio: string;
|
|
167
|
+
singleAudio: string;
|
|
168
|
+
quality: string;
|
|
169
|
+
auto: string;
|
|
170
|
+
singleQuality: string;
|
|
171
|
+
speed: string;
|
|
172
|
+
/** Title of the subtitles menu, and of its button. */
|
|
173
|
+
subtitles: string;
|
|
174
|
+
/** Before the name of the subtitles shown now. */
|
|
175
|
+
current: string;
|
|
176
|
+
noSubtitles: string;
|
|
177
|
+
loadSubtitles: string;
|
|
178
|
+
tracks: string;
|
|
179
|
+
media: string;
|
|
180
|
+
/** Locale for the names of languages ("fr" becomes "French"); the device's by default. */
|
|
181
|
+
locale?: string;
|
|
182
|
+
}
|
|
183
|
+
export declare const DEFAULT_PLAYER_MENU_LABELS: PlayerMenuLabels;
|
|
184
|
+
/**
|
|
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.
|
|
188
|
+
*/
|
|
189
|
+
declare class PlayerMenuComponent {
|
|
190
|
+
readonly openMenu: import("@angular/core").InputSignal<PlayerMenuKind$1>;
|
|
191
|
+
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";
|
|
216
|
+
"required": false;
|
|
217
|
+
"isSignal": true;
|
|
218
|
+
};
|
|
219
|
+
"isAudioMode": {
|
|
220
|
+
"alias": "isAudioMode";
|
|
221
|
+
"required": false;
|
|
222
|
+
"isSignal": true;
|
|
223
|
+
};
|
|
224
|
+
"textTracks": {
|
|
225
|
+
"alias": "textTracks";
|
|
226
|
+
"required": false;
|
|
227
|
+
"isSignal": true;
|
|
228
|
+
};
|
|
229
|
+
"audioTracks": {
|
|
230
|
+
"alias": "audioTracks";
|
|
231
|
+
"required": false;
|
|
232
|
+
"isSignal": true;
|
|
233
|
+
};
|
|
234
|
+
"videoTracks": {
|
|
235
|
+
"alias": "videoTracks";
|
|
236
|
+
"required": false;
|
|
237
|
+
"isSignal": true;
|
|
238
|
+
};
|
|
239
|
+
"selectedTextTrackId": {
|
|
240
|
+
"alias": "selectedTextTrackId";
|
|
241
|
+
"required": false;
|
|
242
|
+
"isSignal": true;
|
|
243
|
+
};
|
|
244
|
+
"selectedAudioTrackId": {
|
|
245
|
+
"alias": "selectedAudioTrackId";
|
|
246
|
+
"required": false;
|
|
247
|
+
"isSignal": true;
|
|
248
|
+
};
|
|
249
|
+
"selectedVideoTrackId": {
|
|
250
|
+
"alias": "selectedVideoTrackId";
|
|
251
|
+
"required": false;
|
|
252
|
+
"isSignal": true;
|
|
253
|
+
};
|
|
254
|
+
"playbackRates": {
|
|
255
|
+
"alias": "playbackRates";
|
|
256
|
+
"required": false;
|
|
257
|
+
"isSignal": true;
|
|
258
|
+
};
|
|
259
|
+
"playbackRate": {
|
|
260
|
+
"alias": "playbackRate";
|
|
261
|
+
"required": false;
|
|
262
|
+
"isSignal": true;
|
|
263
|
+
};
|
|
264
|
+
"labels": {
|
|
265
|
+
"alias": "labels";
|
|
266
|
+
"required": false;
|
|
267
|
+
"isSignal": true;
|
|
268
|
+
};
|
|
269
|
+
}, {
|
|
270
|
+
"selectText": "selectText";
|
|
271
|
+
"selectAudio": "selectAudio";
|
|
272
|
+
"selectVideo": "selectVideo";
|
|
273
|
+
"selectRate": "selectRate";
|
|
274
|
+
"loadSubtitles": "loadSubtitles";
|
|
275
|
+
}, never, never, true, never>;
|
|
276
|
+
}
|
|
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;
|
|
283
|
+
}
|
|
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;
|
|
451
|
+
/**
|
|
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.
|
|
455
|
+
*/
|
|
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;
|
|
473
|
+
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;
|
|
511
|
+
};
|
|
512
|
+
"plugins": {
|
|
513
|
+
"alias": "plugins";
|
|
514
|
+
"required": false;
|
|
515
|
+
};
|
|
516
|
+
"ports": {
|
|
517
|
+
"alias": "ports";
|
|
518
|
+
"required": false;
|
|
519
|
+
};
|
|
520
|
+
"engines": {
|
|
521
|
+
"alias": "engines";
|
|
522
|
+
"required": false;
|
|
523
|
+
};
|
|
524
|
+
"debug": {
|
|
525
|
+
"alias": "debug";
|
|
526
|
+
"required": false;
|
|
527
|
+
};
|
|
528
|
+
"startTimeSec": {
|
|
529
|
+
"alias": "startTimeSec";
|
|
530
|
+
"required": false;
|
|
531
|
+
};
|
|
532
|
+
"autoplayOnInit": {
|
|
533
|
+
"alias": "autoplayOnInit";
|
|
534
|
+
"required": false;
|
|
535
|
+
};
|
|
536
|
+
"playRequest": {
|
|
537
|
+
"alias": "playRequest";
|
|
538
|
+
"required": false;
|
|
539
|
+
};
|
|
540
|
+
"canPrev": {
|
|
541
|
+
"alias": "canPrev";
|
|
542
|
+
"required": false;
|
|
543
|
+
};
|
|
544
|
+
"canNext": {
|
|
545
|
+
"alias": "canNext";
|
|
546
|
+
"required": false;
|
|
547
|
+
};
|
|
548
|
+
"previousLabel": {
|
|
549
|
+
"alias": "previousLabel";
|
|
550
|
+
"required": false;
|
|
551
|
+
};
|
|
552
|
+
"nextLabel": {
|
|
553
|
+
"alias": "nextLabel";
|
|
554
|
+
"required": false;
|
|
555
|
+
};
|
|
556
|
+
"playLabel": {
|
|
557
|
+
"alias": "playLabel";
|
|
558
|
+
"required": false;
|
|
559
|
+
};
|
|
560
|
+
"pauseLabel": {
|
|
561
|
+
"alias": "pauseLabel";
|
|
562
|
+
"required": false;
|
|
563
|
+
};
|
|
564
|
+
"shuffleActive": {
|
|
565
|
+
"alias": "shuffleActive";
|
|
566
|
+
"required": false;
|
|
567
|
+
};
|
|
568
|
+
"shuffleLabel": {
|
|
569
|
+
"alias": "shuffleLabel";
|
|
570
|
+
"required": false;
|
|
571
|
+
};
|
|
572
|
+
"repeatMode": {
|
|
573
|
+
"alias": "repeatMode";
|
|
574
|
+
"required": false;
|
|
575
|
+
};
|
|
576
|
+
"repeatLabel": {
|
|
577
|
+
"alias": "repeatLabel";
|
|
578
|
+
"required": false;
|
|
579
|
+
};
|
|
580
|
+
"hasPlaylistControls": {
|
|
581
|
+
"alias": "hasPlaylistControls";
|
|
582
|
+
"required": false;
|
|
583
|
+
};
|
|
584
|
+
"mediaMode": {
|
|
585
|
+
"alias": "mediaMode";
|
|
586
|
+
"required": false;
|
|
587
|
+
};
|
|
588
|
+
"castEnabled": {
|
|
589
|
+
"alias": "castEnabled";
|
|
590
|
+
"required": false;
|
|
591
|
+
};
|
|
592
|
+
"castConnected": {
|
|
593
|
+
"alias": "castConnected";
|
|
594
|
+
"required": false;
|
|
595
|
+
};
|
|
596
|
+
"documentShortcuts": {
|
|
597
|
+
"alias": "documentShortcuts";
|
|
598
|
+
"required": false;
|
|
599
|
+
};
|
|
600
|
+
"nowPlayingLabel": {
|
|
601
|
+
"alias": "nowPlayingLabel";
|
|
602
|
+
"required": false;
|
|
603
|
+
};
|
|
604
|
+
"nowListeningLabel": {
|
|
605
|
+
"alias": "nowListeningLabel";
|
|
606
|
+
"required": false;
|
|
607
|
+
};
|
|
608
|
+
"fullscreenHintLabel": {
|
|
609
|
+
"alias": "fullscreenHintLabel";
|
|
610
|
+
"required": false;
|
|
611
|
+
};
|
|
612
|
+
"fullscreenLabel": {
|
|
613
|
+
"alias": "fullscreenLabel";
|
|
614
|
+
"required": false;
|
|
615
|
+
};
|
|
616
|
+
"readyStatusLabel": {
|
|
617
|
+
"alias": "readyStatusLabel";
|
|
618
|
+
"required": false;
|
|
619
|
+
};
|
|
620
|
+
"playingStatusLabel": {
|
|
621
|
+
"alias": "playingStatusLabel";
|
|
622
|
+
"required": false;
|
|
623
|
+
};
|
|
624
|
+
"pausedStatusLabel": {
|
|
625
|
+
"alias": "pausedStatusLabel";
|
|
626
|
+
"required": false;
|
|
627
|
+
};
|
|
628
|
+
"bufferingStatusLabel": {
|
|
629
|
+
"alias": "bufferingStatusLabel";
|
|
630
|
+
"required": false;
|
|
631
|
+
};
|
|
632
|
+
"loadingStatusLabel": {
|
|
633
|
+
"alias": "loadingStatusLabel";
|
|
634
|
+
"required": false;
|
|
635
|
+
};
|
|
636
|
+
"endedStatusLabel": {
|
|
637
|
+
"alias": "endedStatusLabel";
|
|
638
|
+
"required": false;
|
|
639
|
+
};
|
|
640
|
+
"errorStatusLabel": {
|
|
641
|
+
"alias": "errorStatusLabel";
|
|
642
|
+
"required": false;
|
|
643
|
+
};
|
|
644
|
+
"outputVolume": {
|
|
645
|
+
"alias": "outputVolume";
|
|
646
|
+
"required": false;
|
|
647
|
+
};
|
|
648
|
+
"outputVolumeLabel": {
|
|
649
|
+
"alias": "outputVolumeLabel";
|
|
650
|
+
"required": false;
|
|
651
|
+
};
|
|
652
|
+
"outputMuteLabel": {
|
|
653
|
+
"alias": "outputMuteLabel";
|
|
654
|
+
"required": false;
|
|
655
|
+
};
|
|
656
|
+
"outputUnmuteLabel": {
|
|
657
|
+
"alias": "outputUnmuteLabel";
|
|
658
|
+
"required": false;
|
|
659
|
+
};
|
|
660
|
+
"timelineDurationSec": {
|
|
661
|
+
"alias": "timelineDurationSec";
|
|
662
|
+
"required": false;
|
|
663
|
+
};
|
|
664
|
+
"timelineMarkers": {
|
|
665
|
+
"alias": "timelineMarkers";
|
|
666
|
+
"required": false;
|
|
667
|
+
};
|
|
668
|
+
"menuLabels": {
|
|
669
|
+
"alias": "menuLabels";
|
|
670
|
+
"required": false;
|
|
671
|
+
};
|
|
672
|
+
}, {
|
|
673
|
+
"ended": "ended";
|
|
674
|
+
"videoSize": "videoSize";
|
|
675
|
+
"progress": "progress";
|
|
676
|
+
"prev": "prev";
|
|
677
|
+
"next": "next";
|
|
678
|
+
"toggleShuffle": "toggleShuffle";
|
|
679
|
+
"cycleRepeat": "cycleRepeat";
|
|
680
|
+
"subtitles": "subtitles";
|
|
681
|
+
"subtitlesLoaded": "subtitlesLoaded";
|
|
682
|
+
"cast": "cast";
|
|
683
|
+
"stateChange": "stateChange";
|
|
684
|
+
"playbackToggle": "playbackToggle";
|
|
685
|
+
"outputVolumeChange": "outputVolumeChange";
|
|
686
|
+
}, never, ["[ngxsp-player-inline-controls]"], true, never>;
|
|
687
|
+
}
|
|
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>;
|
|
916
|
+
}
|
|
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>;
|
|
987
|
+
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;
|
|
994
|
+
};
|
|
995
|
+
"isAudioMode": {
|
|
996
|
+
"alias": "isAudioMode";
|
|
997
|
+
"required": false;
|
|
998
|
+
"isSignal": true;
|
|
999
|
+
};
|
|
1000
|
+
"displayTitle": {
|
|
1001
|
+
"alias": "displayTitle";
|
|
1002
|
+
"required": false;
|
|
1003
|
+
"isSignal": true;
|
|
1004
|
+
};
|
|
1005
|
+
"nowPlayingLabel": {
|
|
1006
|
+
"alias": "nowPlayingLabel";
|
|
1007
|
+
"required": false;
|
|
1008
|
+
"isSignal": true;
|
|
1009
|
+
};
|
|
1010
|
+
"nowListeningLabel": {
|
|
1011
|
+
"alias": "nowListeningLabel";
|
|
1012
|
+
"required": false;
|
|
1013
|
+
"isSignal": true;
|
|
1014
|
+
};
|
|
1015
|
+
"fullscreenHintLabel": {
|
|
1016
|
+
"alias": "fullscreenHintLabel";
|
|
1017
|
+
"required": false;
|
|
1018
|
+
"isSignal": true;
|
|
1019
|
+
};
|
|
1020
|
+
"statusLabel": {
|
|
1021
|
+
"alias": "statusLabel";
|
|
1022
|
+
"required": false;
|
|
1023
|
+
"isSignal": true;
|
|
1024
|
+
};
|
|
1025
|
+
"keyboardHint": {
|
|
1026
|
+
"alias": "keyboardHint";
|
|
1027
|
+
"required": false;
|
|
1028
|
+
"isSignal": true;
|
|
1029
|
+
};
|
|
1030
|
+
"hasPlaylistControls": {
|
|
1031
|
+
"alias": "hasPlaylistControls";
|
|
1032
|
+
"required": false;
|
|
1033
|
+
"isSignal": true;
|
|
1034
|
+
};
|
|
1035
|
+
"canPrev": {
|
|
1036
|
+
"alias": "canPrev";
|
|
1037
|
+
"required": false;
|
|
1038
|
+
"isSignal": true;
|
|
1039
|
+
};
|
|
1040
|
+
"canNext": {
|
|
1041
|
+
"alias": "canNext";
|
|
1042
|
+
"required": false;
|
|
1043
|
+
"isSignal": true;
|
|
1044
|
+
};
|
|
1045
|
+
"previousLabel": {
|
|
1046
|
+
"alias": "previousLabel";
|
|
1047
|
+
"required": false;
|
|
1048
|
+
"isSignal": true;
|
|
1049
|
+
};
|
|
1050
|
+
"nextLabel": {
|
|
1051
|
+
"alias": "nextLabel";
|
|
1052
|
+
"required": false;
|
|
1053
|
+
"isSignal": true;
|
|
1054
|
+
};
|
|
1055
|
+
"playLabel": {
|
|
1056
|
+
"alias": "playLabel";
|
|
1057
|
+
"required": false;
|
|
1058
|
+
"isSignal": true;
|
|
1059
|
+
};
|
|
1060
|
+
"pauseLabel": {
|
|
1061
|
+
"alias": "pauseLabel";
|
|
1062
|
+
"required": false;
|
|
1063
|
+
"isSignal": true;
|
|
1064
|
+
};
|
|
1065
|
+
"shuffleActive": {
|
|
1066
|
+
"alias": "shuffleActive";
|
|
1067
|
+
"required": false;
|
|
1068
|
+
"isSignal": true;
|
|
1069
|
+
};
|
|
1070
|
+
"shuffleLabel": {
|
|
1071
|
+
"alias": "shuffleLabel";
|
|
1072
|
+
"required": false;
|
|
1073
|
+
"isSignal": true;
|
|
1074
|
+
};
|
|
1075
|
+
"repeatMode": {
|
|
1076
|
+
"alias": "repeatMode";
|
|
1077
|
+
"required": false;
|
|
1078
|
+
"isSignal": true;
|
|
1079
|
+
};
|
|
1080
|
+
"repeatLabel": {
|
|
1081
|
+
"alias": "repeatLabel";
|
|
1082
|
+
"required": false;
|
|
1083
|
+
"isSignal": true;
|
|
1084
|
+
};
|
|
1085
|
+
"captionsActive": {
|
|
1086
|
+
"alias": "captionsActive";
|
|
1087
|
+
"required": false;
|
|
1088
|
+
"isSignal": true;
|
|
1089
|
+
};
|
|
1090
|
+
"tracksLabel": {
|
|
1091
|
+
"alias": "tracksLabel";
|
|
1092
|
+
"required": false;
|
|
1093
|
+
"isSignal": true;
|
|
1094
|
+
};
|
|
1095
|
+
"captionsLabel": {
|
|
1096
|
+
"alias": "captionsLabel";
|
|
1097
|
+
"required": false;
|
|
1098
|
+
"isSignal": true;
|
|
1099
|
+
};
|
|
1100
|
+
"speedLabel": {
|
|
1101
|
+
"alias": "speedLabel";
|
|
1102
|
+
"required": false;
|
|
1103
|
+
"isSignal": true;
|
|
1104
|
+
};
|
|
1105
|
+
"volumeLabel": {
|
|
1106
|
+
"alias": "volumeLabel";
|
|
1107
|
+
"required": false;
|
|
1108
|
+
"isSignal": true;
|
|
1109
|
+
};
|
|
1110
|
+
"muteLabel": {
|
|
1111
|
+
"alias": "muteLabel";
|
|
1112
|
+
"required": false;
|
|
1113
|
+
"isSignal": true;
|
|
1114
|
+
};
|
|
1115
|
+
"unmuteLabel": {
|
|
1116
|
+
"alias": "unmuteLabel";
|
|
1117
|
+
"required": false;
|
|
1118
|
+
"isSignal": true;
|
|
1119
|
+
};
|
|
1120
|
+
"showAirPlay": {
|
|
1121
|
+
"alias": "showAirPlay";
|
|
1122
|
+
"required": false;
|
|
1123
|
+
"isSignal": true;
|
|
1124
|
+
};
|
|
1125
|
+
"airPlayActive": {
|
|
1126
|
+
"alias": "airPlayActive";
|
|
1127
|
+
"required": false;
|
|
1128
|
+
"isSignal": true;
|
|
1129
|
+
};
|
|
1130
|
+
"airPlayLabel": {
|
|
1131
|
+
"alias": "airPlayLabel";
|
|
1132
|
+
"required": false;
|
|
1133
|
+
"isSignal": true;
|
|
1134
|
+
};
|
|
1135
|
+
"showCast": {
|
|
1136
|
+
"alias": "showCast";
|
|
1137
|
+
"required": false;
|
|
1138
|
+
"isSignal": true;
|
|
1139
|
+
};
|
|
1140
|
+
"castActive": {
|
|
1141
|
+
"alias": "castActive";
|
|
1142
|
+
"required": false;
|
|
1143
|
+
"isSignal": true;
|
|
1144
|
+
};
|
|
1145
|
+
"castLabel": {
|
|
1146
|
+
"alias": "castLabel";
|
|
1147
|
+
"required": false;
|
|
1148
|
+
"isSignal": true;
|
|
1149
|
+
};
|
|
1150
|
+
"castHint": {
|
|
1151
|
+
"alias": "castHint";
|
|
1152
|
+
"required": false;
|
|
1153
|
+
"isSignal": true;
|
|
1154
|
+
};
|
|
1155
|
+
"pipSupported": {
|
|
1156
|
+
"alias": "pipSupported";
|
|
1157
|
+
"required": false;
|
|
1158
|
+
"isSignal": true;
|
|
1159
|
+
};
|
|
1160
|
+
"pipActive": {
|
|
1161
|
+
"alias": "pipActive";
|
|
1162
|
+
"required": false;
|
|
1163
|
+
"isSignal": true;
|
|
1164
|
+
};
|
|
1165
|
+
"pipLabel": {
|
|
1166
|
+
"alias": "pipLabel";
|
|
1167
|
+
"required": false;
|
|
1168
|
+
"isSignal": true;
|
|
1169
|
+
};
|
|
1170
|
+
"fullscreenLabel": {
|
|
1171
|
+
"alias": "fullscreenLabel";
|
|
1172
|
+
"required": false;
|
|
1173
|
+
"isSignal": true;
|
|
1174
|
+
};
|
|
1175
|
+
"volume": {
|
|
1176
|
+
"alias": "volume";
|
|
1177
|
+
"required": false;
|
|
1178
|
+
"isSignal": true;
|
|
1179
|
+
};
|
|
1180
|
+
"currentTime": {
|
|
1181
|
+
"alias": "currentTime";
|
|
1182
|
+
"required": false;
|
|
1183
|
+
"isSignal": true;
|
|
1184
|
+
};
|
|
1185
|
+
"duration": {
|
|
1186
|
+
"alias": "duration";
|
|
1187
|
+
"required": false;
|
|
1188
|
+
"isSignal": true;
|
|
1189
|
+
};
|
|
1190
|
+
"buffered": {
|
|
1191
|
+
"alias": "buffered";
|
|
1192
|
+
"required": false;
|
|
1193
|
+
"isSignal": true;
|
|
1194
|
+
};
|
|
1195
|
+
"bufferPercent": {
|
|
1196
|
+
"alias": "bufferPercent";
|
|
1197
|
+
"required": false;
|
|
1198
|
+
"isSignal": true;
|
|
1199
|
+
};
|
|
1200
|
+
"profile": {
|
|
1201
|
+
"alias": "profile";
|
|
1202
|
+
"required": false;
|
|
1203
|
+
"isSignal": true;
|
|
1204
|
+
};
|
|
1205
|
+
"timelineDurationSec": {
|
|
1206
|
+
"alias": "timelineDurationSec";
|
|
1207
|
+
"required": false;
|
|
1208
|
+
"isSignal": true;
|
|
1209
|
+
};
|
|
1210
|
+
"timelineMarkers": {
|
|
1211
|
+
"alias": "timelineMarkers";
|
|
1212
|
+
"required": false;
|
|
1213
|
+
"isSignal": true;
|
|
1214
|
+
};
|
|
1215
|
+
}, {
|
|
1216
|
+
"playToggle": "playToggle";
|
|
1217
|
+
"seekRelative": "seekRelative";
|
|
1218
|
+
"prev": "prev";
|
|
1219
|
+
"next": "next";
|
|
1220
|
+
"toggleShuffle": "toggleShuffle";
|
|
1221
|
+
"cycleRepeat": "cycleRepeat";
|
|
1222
|
+
"openMenu": "openMenu";
|
|
1223
|
+
"captions": "captions";
|
|
1224
|
+
"airPlay": "airPlay";
|
|
1225
|
+
"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>;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Skin « édition » du lecteur : registre instrument (cf. docs/UX_VISION.md).
|
|
1235
|
+
* Titre display, coins francs, libellés en capitales, accent champagne, et le
|
|
1236
|
+
* traitement direct (NgxspLiveBadge + « Au direct ») en profil `live`.
|
|
1237
|
+
* Compose les primitives de @ngxsp/ui-core. Le menu est projeté via <ng-content>.
|
|
1238
|
+
*/
|
|
1239
|
+
export declare class PlayerControlsEditionComponent {
|
|
1240
|
+
readonly profile: import("@angular/core").InputSignal<SourceProfile>;
|
|
1241
|
+
readonly playing: import("@angular/core").InputSignal<boolean>;
|
|
1242
|
+
readonly displayTitle: import("@angular/core").InputSignal<string>;
|
|
1243
|
+
readonly metaLabel: import("@angular/core").InputSignal<string>;
|
|
1244
|
+
readonly statusLabel: import("@angular/core").InputSignal<string>;
|
|
1245
|
+
readonly behindSec: import("@angular/core").InputSignal<number>;
|
|
1246
|
+
readonly liveLabel: import("@angular/core").InputSignal<string>;
|
|
1247
|
+
readonly captionsActive: import("@angular/core").InputSignal<boolean>;
|
|
1248
|
+
readonly speedLabel: import("@angular/core").InputSignal<string>;
|
|
1249
|
+
readonly showAirPlay: import("@angular/core").InputSignal<boolean>;
|
|
1250
|
+
readonly airPlayActive: import("@angular/core").InputSignal<boolean>;
|
|
1251
|
+
readonly airPlayLabel: import("@angular/core").InputSignal<string>;
|
|
1252
|
+
readonly showCast: import("@angular/core").InputSignal<boolean>;
|
|
1253
|
+
readonly castActive: import("@angular/core").InputSignal<boolean>;
|
|
1254
|
+
readonly pipSupported: import("@angular/core").InputSignal<boolean>;
|
|
1255
|
+
readonly pipActive: import("@angular/core").InputSignal<boolean>;
|
|
1256
|
+
readonly volume: import("@angular/core").InputSignal<number>;
|
|
1257
|
+
readonly volumeLabel: import("@angular/core").InputSignal<string>;
|
|
1258
|
+
readonly muteLabel: import("@angular/core").InputSignal<string>;
|
|
1259
|
+
readonly unmuteLabel: import("@angular/core").InputSignal<string>;
|
|
1260
|
+
readonly currentTime: import("@angular/core").InputSignal<number>;
|
|
1261
|
+
readonly duration: import("@angular/core").InputSignal<number>;
|
|
1262
|
+
readonly buffered: import("@angular/core").InputSignal<number>;
|
|
1263
|
+
readonly playToggle: import("@angular/core").OutputEmitterRef<void>;
|
|
1264
|
+
readonly seekRelative: import("@angular/core").OutputEmitterRef<number>;
|
|
1265
|
+
readonly openMenu: import("@angular/core").OutputEmitterRef<PlayerMenuKind>;
|
|
1266
|
+
readonly captions: import("@angular/core").OutputEmitterRef<void>;
|
|
1267
|
+
readonly airPlay: import("@angular/core").OutputEmitterRef<void>;
|
|
1268
|
+
readonly cast: import("@angular/core").OutputEmitterRef<void>;
|
|
1269
|
+
readonly pip: import("@angular/core").OutputEmitterRef<void>;
|
|
1270
|
+
readonly mute: import("@angular/core").OutputEmitterRef<void>;
|
|
1271
|
+
readonly scrub: import("@angular/core").OutputEmitterRef<number>;
|
|
1272
|
+
readonly volumeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
1273
|
+
readonly goLive: import("@angular/core").OutputEmitterRef<void>;
|
|
1274
|
+
fmtTime(sec: number): string;
|
|
1275
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlayerControlsEditionComponent, never>;
|
|
1276
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlayerControlsEditionComponent, "ngxsp-player-controls-edition", never, {
|
|
1277
|
+
"profile": {
|
|
1278
|
+
"alias": "profile";
|
|
1279
|
+
"required": false;
|
|
1280
|
+
"isSignal": true;
|
|
1281
|
+
};
|
|
1282
|
+
"playing": {
|
|
1283
|
+
"alias": "playing";
|
|
1284
|
+
"required": false;
|
|
1285
|
+
"isSignal": true;
|
|
1286
|
+
};
|
|
1287
|
+
"displayTitle": {
|
|
1288
|
+
"alias": "displayTitle";
|
|
1289
|
+
"required": false;
|
|
1290
|
+
"isSignal": true;
|
|
1291
|
+
};
|
|
1292
|
+
"metaLabel": {
|
|
1293
|
+
"alias": "metaLabel";
|
|
1294
|
+
"required": false;
|
|
1295
|
+
"isSignal": true;
|
|
1296
|
+
};
|
|
1297
|
+
"statusLabel": {
|
|
1298
|
+
"alias": "statusLabel";
|
|
1299
|
+
"required": false;
|
|
1300
|
+
"isSignal": true;
|
|
1301
|
+
};
|
|
1302
|
+
"behindSec": {
|
|
1303
|
+
"alias": "behindSec";
|
|
1304
|
+
"required": false;
|
|
1305
|
+
"isSignal": true;
|
|
1306
|
+
};
|
|
1307
|
+
"liveLabel": {
|
|
1308
|
+
"alias": "liveLabel";
|
|
1309
|
+
"required": false;
|
|
1310
|
+
"isSignal": true;
|
|
1311
|
+
};
|
|
1312
|
+
"captionsActive": {
|
|
1313
|
+
"alias": "captionsActive";
|
|
1314
|
+
"required": false;
|
|
1315
|
+
"isSignal": true;
|
|
1316
|
+
};
|
|
1317
|
+
"speedLabel": {
|
|
1318
|
+
"alias": "speedLabel";
|
|
1319
|
+
"required": false;
|
|
1320
|
+
"isSignal": true;
|
|
1321
|
+
};
|
|
1322
|
+
"showAirPlay": {
|
|
1323
|
+
"alias": "showAirPlay";
|
|
1324
|
+
"required": false;
|
|
1325
|
+
"isSignal": true;
|
|
1326
|
+
};
|
|
1327
|
+
"airPlayActive": {
|
|
1328
|
+
"alias": "airPlayActive";
|
|
1329
|
+
"required": false;
|
|
1330
|
+
"isSignal": true;
|
|
1331
|
+
};
|
|
1332
|
+
"airPlayLabel": {
|
|
1333
|
+
"alias": "airPlayLabel";
|
|
1334
|
+
"required": false;
|
|
1335
|
+
"isSignal": true;
|
|
1336
|
+
};
|
|
1337
|
+
"showCast": {
|
|
1338
|
+
"alias": "showCast";
|
|
1339
|
+
"required": false;
|
|
1340
|
+
"isSignal": true;
|
|
1341
|
+
};
|
|
1342
|
+
"castActive": {
|
|
1343
|
+
"alias": "castActive";
|
|
1344
|
+
"required": false;
|
|
1345
|
+
"isSignal": true;
|
|
1346
|
+
};
|
|
1347
|
+
"pipSupported": {
|
|
1348
|
+
"alias": "pipSupported";
|
|
1349
|
+
"required": false;
|
|
1350
|
+
"isSignal": true;
|
|
1351
|
+
};
|
|
1352
|
+
"pipActive": {
|
|
1353
|
+
"alias": "pipActive";
|
|
1354
|
+
"required": false;
|
|
1355
|
+
"isSignal": true;
|
|
1356
|
+
};
|
|
1357
|
+
"volume": {
|
|
1358
|
+
"alias": "volume";
|
|
1359
|
+
"required": false;
|
|
1360
|
+
"isSignal": true;
|
|
1361
|
+
};
|
|
1362
|
+
"volumeLabel": {
|
|
1363
|
+
"alias": "volumeLabel";
|
|
1364
|
+
"required": false;
|
|
1365
|
+
"isSignal": true;
|
|
1366
|
+
};
|
|
1367
|
+
"muteLabel": {
|
|
1368
|
+
"alias": "muteLabel";
|
|
1369
|
+
"required": false;
|
|
1370
|
+
"isSignal": true;
|
|
1371
|
+
};
|
|
1372
|
+
"unmuteLabel": {
|
|
1373
|
+
"alias": "unmuteLabel";
|
|
1374
|
+
"required": false;
|
|
1375
|
+
"isSignal": true;
|
|
1376
|
+
};
|
|
1377
|
+
"currentTime": {
|
|
1378
|
+
"alias": "currentTime";
|
|
1379
|
+
"required": false;
|
|
1380
|
+
"isSignal": true;
|
|
1381
|
+
};
|
|
1382
|
+
"duration": {
|
|
1383
|
+
"alias": "duration";
|
|
1384
|
+
"required": false;
|
|
1385
|
+
"isSignal": true;
|
|
1386
|
+
};
|
|
1387
|
+
"buffered": {
|
|
1388
|
+
"alias": "buffered";
|
|
1389
|
+
"required": false;
|
|
1390
|
+
"isSignal": true;
|
|
1391
|
+
};
|
|
1392
|
+
}, {
|
|
1393
|
+
"playToggle": "playToggle";
|
|
1394
|
+
"seekRelative": "seekRelative";
|
|
1395
|
+
"openMenu": "openMenu";
|
|
1396
|
+
"captions": "captions";
|
|
1397
|
+
"airPlay": "airPlay";
|
|
1398
|
+
"cast": "cast";
|
|
1399
|
+
"pip": "pip";
|
|
1400
|
+
"mute": "mute";
|
|
1401
|
+
"scrub": "scrub";
|
|
1402
|
+
"volumeChange": "volumeChange";
|
|
1403
|
+
"goLive": "goLive";
|
|
1404
|
+
}, never, ["*"], true, never>;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Jetons d'injection typés pour les providers de sous-titres / métadonnées.
|
|
1408
|
+
* (Remplace les jetons `string` non typés — cf. docs/AUDIT.md, manquement #10.)
|
|
1409
|
+
* Un consommateur peut les injecter directement :
|
|
1410
|
+
* `inject(SMART_PLAYER_SUBTITLE_PROVIDERS)`.
|
|
1411
|
+
*/
|
|
1412
|
+
export declare const SMART_PLAYER_SUBTITLE_PROVIDERS: InjectionToken<SubtitleProvider[]>;
|
|
1413
|
+
export declare const SMART_PLAYER_METADATA_PROVIDERS: InjectionToken<MetadataProvider[]>;
|
|
1414
|
+
export interface SmartPlayerProvidersConfig {
|
|
1415
|
+
subtitleProviders?: SubtitleProvider[];
|
|
1416
|
+
metadataProviders?: MetadataProvider[];
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Enregistre les implémentations de providers (sous-titres / métadonnées).
|
|
1420
|
+
* À appeler dans le tableau `providers` de `bootstrapApplication()`.
|
|
1421
|
+
*/
|
|
1422
|
+
export declare function provideSmartPlayer(cfg: SmartPlayerProvidersConfig): EnvironmentProviders;
|
|
1423
|
+
export type { RepeatMode as PlayerControlsRepeatMode, PlayerMenuKind, PlayerMenuLabels };
|