@livepeer-frameworks/player-wc 0.1.9 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/esm/components/controls/fw-fullscreen-button.js +76 -0
  2. package/dist/esm/components/controls/fw-fullscreen-button.js.map +1 -0
  3. package/dist/esm/components/controls/fw-live-badge.js +109 -0
  4. package/dist/esm/components/controls/fw-live-badge.js.map +1 -0
  5. package/dist/esm/components/controls/fw-play-button.js +76 -0
  6. package/dist/esm/components/controls/fw-play-button.js.map +1 -0
  7. package/dist/esm/components/controls/fw-skip-button.js +62 -0
  8. package/dist/esm/components/controls/fw-skip-button.js.map +1 -0
  9. package/dist/esm/components/controls/fw-time-display.js +77 -0
  10. package/dist/esm/components/controls/fw-time-display.js.map +1 -0
  11. package/dist/esm/components/controls/fw-volume-control.js +76 -0
  12. package/dist/esm/components/controls/fw-volume-control.js.map +1 -0
  13. package/dist/esm/components/fw-dev-mode-panel.js +11 -15
  14. package/dist/esm/components/fw-dev-mode-panel.js.map +1 -1
  15. package/dist/esm/components/fw-error-overlay.js +13 -5
  16. package/dist/esm/components/fw-error-overlay.js.map +1 -1
  17. package/dist/esm/components/fw-idle-screen.js +10 -2
  18. package/dist/esm/components/fw-idle-screen.js.map +1 -1
  19. package/dist/esm/components/fw-loading-screen.js +89 -42
  20. package/dist/esm/components/fw-loading-screen.js.map +1 -1
  21. package/dist/esm/components/fw-loading-spinner.js +20 -9
  22. package/dist/esm/components/fw-loading-spinner.js.map +1 -1
  23. package/dist/esm/components/fw-player-controls.js +18 -13
  24. package/dist/esm/components/fw-player-controls.js.map +1 -1
  25. package/dist/esm/components/fw-player.js +165 -59
  26. package/dist/esm/components/fw-player.js.map +1 -1
  27. package/dist/esm/components/fw-settings-menu.js +44 -9
  28. package/dist/esm/components/fw-settings-menu.js.map +1 -1
  29. package/dist/esm/components/fw-stream-state-overlay.js +13 -5
  30. package/dist/esm/components/fw-stream-state-overlay.js.map +1 -1
  31. package/dist/esm/components/fw-toast.js +11 -1
  32. package/dist/esm/components/fw-toast.js.map +1 -1
  33. package/dist/esm/components/fw-volume-control.js +13 -3
  34. package/dist/esm/components/fw-volume-control.js.map +1 -1
  35. package/dist/esm/controllers/player-controller-host.js +14 -1
  36. package/dist/esm/controllers/player-controller-host.js.map +1 -1
  37. package/dist/esm/index.js +6 -0
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/styles/shared-styles.js +401 -304
  40. package/dist/esm/styles/shared-styles.js.map +1 -1
  41. package/dist/fw-player.iife.js +707 -488
  42. package/dist/types/components/controls/fw-fullscreen-button.d.ts +18 -0
  43. package/dist/types/components/controls/fw-live-badge.d.ts +19 -0
  44. package/dist/types/components/controls/fw-play-button.d.ts +18 -0
  45. package/dist/types/components/controls/fw-skip-button.d.ts +17 -0
  46. package/dist/types/components/controls/fw-time-display.d.ts +17 -0
  47. package/dist/types/components/controls/fw-volume-control.d.ts +18 -0
  48. package/dist/types/components/controls/index.d.ts +6 -0
  49. package/dist/types/components/fw-dev-mode-panel.d.ts +1 -1
  50. package/dist/types/components/fw-error-overlay.d.ts +4 -0
  51. package/dist/types/components/fw-idle-screen.d.ts +4 -0
  52. package/dist/types/components/fw-loading-screen.d.ts +5 -1
  53. package/dist/types/components/fw-loading-spinner.d.ts +4 -0
  54. package/dist/types/components/fw-player-controls.d.ts +2 -1
  55. package/dist/types/components/fw-player.d.ts +10 -1
  56. package/dist/types/components/fw-settings-menu.d.ts +3 -1
  57. package/dist/types/components/fw-stream-state-overlay.d.ts +4 -0
  58. package/dist/types/components/fw-toast.d.ts +4 -0
  59. package/dist/types/controllers/player-controller-host.d.ts +7 -1
  60. package/dist/types/index.d.ts +1 -0
  61. package/package.json +10 -13
  62. package/src/components/controls/fw-fullscreen-button.ts +75 -0
  63. package/src/components/controls/fw-live-badge.ts +109 -0
  64. package/src/components/controls/fw-play-button.ts +75 -0
  65. package/src/components/controls/fw-skip-button.ts +59 -0
  66. package/src/components/controls/fw-time-display.ts +74 -0
  67. package/src/components/controls/fw-volume-control.ts +75 -0
  68. package/src/components/controls/index.ts +6 -0
  69. package/src/components/fw-dev-mode-panel.ts +10 -17
  70. package/src/components/fw-error-overlay.ts +13 -5
  71. package/src/components/fw-idle-screen.ts +10 -2
  72. package/src/components/fw-loading-screen.ts +90 -46
  73. package/src/components/fw-loading-spinner.ts +18 -9
  74. package/src/components/fw-player-controls.ts +17 -13
  75. package/src/components/fw-player.ts +166 -64
  76. package/src/components/fw-settings-menu.ts +49 -9
  77. package/src/components/fw-stream-state-overlay.ts +13 -5
  78. package/src/components/fw-toast.ts +11 -1
  79. package/src/components/fw-volume-control.ts +14 -3
  80. package/src/controllers/player-controller-host.ts +18 -0
  81. package/src/index.ts +10 -0
  82. package/src/styles/shared-styles.ts +401 -304
  83. package/dist/cjs/components/fw-context-menu.js +0 -17
  84. package/dist/cjs/components/fw-context-menu.js.map +0 -1
  85. package/dist/cjs/components/fw-dev-mode-panel.js +0 -907
  86. package/dist/cjs/components/fw-dev-mode-panel.js.map +0 -1
  87. package/dist/cjs/components/fw-dvd-logo.js +0 -211
  88. package/dist/cjs/components/fw-dvd-logo.js.map +0 -1
  89. package/dist/cjs/components/fw-error-overlay.js +0 -101
  90. package/dist/cjs/components/fw-error-overlay.js.map +0 -1
  91. package/dist/cjs/components/fw-idle-screen.js +0 -726
  92. package/dist/cjs/components/fw-idle-screen.js.map +0 -1
  93. package/dist/cjs/components/fw-loading-screen.js +0 -513
  94. package/dist/cjs/components/fw-loading-screen.js.map +0 -1
  95. package/dist/cjs/components/fw-loading-spinner.js +0 -62
  96. package/dist/cjs/components/fw-loading-spinner.js.map +0 -1
  97. package/dist/cjs/components/fw-player-controls.js +0 -451
  98. package/dist/cjs/components/fw-player-controls.js.map +0 -1
  99. package/dist/cjs/components/fw-player.js +0 -832
  100. package/dist/cjs/components/fw-player.js.map +0 -1
  101. package/dist/cjs/components/fw-seek-bar.js +0 -383
  102. package/dist/cjs/components/fw-seek-bar.js.map +0 -1
  103. package/dist/cjs/components/fw-settings-menu.js +0 -253
  104. package/dist/cjs/components/fw-settings-menu.js.map +0 -1
  105. package/dist/cjs/components/fw-skip-indicator.js +0 -143
  106. package/dist/cjs/components/fw-skip-indicator.js.map +0 -1
  107. package/dist/cjs/components/fw-speed-indicator.js +0 -61
  108. package/dist/cjs/components/fw-speed-indicator.js.map +0 -1
  109. package/dist/cjs/components/fw-stats-panel.js +0 -205
  110. package/dist/cjs/components/fw-stats-panel.js.map +0 -1
  111. package/dist/cjs/components/fw-stream-state-overlay.js +0 -338
  112. package/dist/cjs/components/fw-stream-state-overlay.js.map +0 -1
  113. package/dist/cjs/components/fw-subtitle-renderer.js +0 -217
  114. package/dist/cjs/components/fw-subtitle-renderer.js.map +0 -1
  115. package/dist/cjs/components/fw-thumbnail-overlay.js +0 -161
  116. package/dist/cjs/components/fw-thumbnail-overlay.js.map +0 -1
  117. package/dist/cjs/components/fw-title-overlay.js +0 -72
  118. package/dist/cjs/components/fw-title-overlay.js.map +0 -1
  119. package/dist/cjs/components/fw-toast.js +0 -74
  120. package/dist/cjs/components/fw-toast.js.map +0 -1
  121. package/dist/cjs/components/fw-volume-control.js +0 -276
  122. package/dist/cjs/components/fw-volume-control.js.map +0 -1
  123. package/dist/cjs/components/shared/hitmarker-audio.js +0 -76
  124. package/dist/cjs/components/shared/hitmarker-audio.js.map +0 -1
  125. package/dist/cjs/constants/media-assets.js +0 -11
  126. package/dist/cjs/constants/media-assets.js.map +0 -1
  127. package/dist/cjs/controllers/player-controller-host.js +0 -364
  128. package/dist/cjs/controllers/player-controller-host.js.map +0 -1
  129. package/dist/cjs/define.js +0 -53
  130. package/dist/cjs/define.js.map +0 -1
  131. package/dist/cjs/icons/index.js +0 -180
  132. package/dist/cjs/icons/index.js.map +0 -1
  133. package/dist/cjs/index.js +0 -108
  134. package/dist/cjs/index.js.map +0 -1
  135. package/dist/cjs/node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js +0 -33
  136. package/dist/cjs/node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js.map +0 -1
  137. package/dist/cjs/styles/shared-styles.js +0 -1985
  138. package/dist/cjs/styles/shared-styles.js.map +0 -1
  139. package/dist/cjs/styles/utility-styles.js +0 -725
  140. package/dist/cjs/styles/utility-styles.js.map +0 -1
@@ -1,364 +0,0 @@
1
- 'use strict';
2
-
3
- var playerCore = require('@livepeer-frameworks/player-core');
4
-
5
- const initialState = {
6
- state: "booting",
7
- streamState: null,
8
- endpoints: null,
9
- metadata: null,
10
- videoElement: null,
11
- currentTime: 0,
12
- duration: NaN,
13
- isPlaying: false,
14
- isPaused: true,
15
- isBuffering: false,
16
- isMuted: true,
17
- volume: 1,
18
- error: null,
19
- errorDetails: null,
20
- isPassiveError: false,
21
- hasPlaybackStarted: false,
22
- isHoldingSpeed: false,
23
- holdSpeed: 2,
24
- isHovering: false,
25
- shouldShowControls: false,
26
- isLoopEnabled: false,
27
- isFullscreen: false,
28
- isPiPActive: false,
29
- isEffectivelyLive: false,
30
- shouldShowIdleScreen: true,
31
- currentPlayerInfo: null,
32
- currentSourceInfo: null,
33
- playbackQuality: null,
34
- subtitlesEnabled: false,
35
- qualities: [],
36
- textTracks: [],
37
- streamInfo: null,
38
- toast: null,
39
- };
40
- class PlayerControllerHost {
41
- constructor(host) {
42
- this.controller = null;
43
- this.unsubs = [];
44
- this.currentConfig = null;
45
- this.s = { ...initialState };
46
- this.host = host;
47
- host.addController(this);
48
- }
49
- // ---- Configuration & Lifecycle ----
50
- configure(config) {
51
- this.currentConfig = config;
52
- }
53
- async attach(container) {
54
- if (!this.currentConfig)
55
- return;
56
- this.teardown();
57
- const controller = new playerCore.PlayerController({
58
- contentId: this.currentConfig.contentId,
59
- contentType: this.currentConfig.contentType,
60
- endpoints: this.currentConfig.endpoints,
61
- gatewayUrl: this.currentConfig.gatewayUrl,
62
- mistUrl: this.currentConfig.mistUrl,
63
- authToken: this.currentConfig.authToken,
64
- autoplay: this.currentConfig.autoplay,
65
- muted: this.currentConfig.muted,
66
- controls: this.currentConfig.controls,
67
- poster: this.currentConfig.poster,
68
- debug: this.currentConfig.debug,
69
- });
70
- this.controller = controller;
71
- this.subscribeToEvents(controller);
72
- this.update({ isLoopEnabled: controller.isLoopEnabled() });
73
- try {
74
- await controller.attach(container);
75
- }
76
- catch (err) {
77
- console.warn("[PlayerControllerHost] Attach failed:", err);
78
- }
79
- }
80
- hostConnected() {
81
- // Controller attachment happens in firstUpdated of the host element
82
- }
83
- hostDisconnected() {
84
- this.teardown();
85
- this.s = { ...initialState };
86
- }
87
- teardown() {
88
- this.unsubs.forEach((fn) => fn());
89
- this.unsubs = [];
90
- this.controller?.destroy();
91
- this.controller = null;
92
- }
93
- // ---- State Updates ----
94
- update(partial) {
95
- Object.assign(this.s, partial);
96
- this.host.requestUpdate();
97
- }
98
- syncState() {
99
- if (!this.controller)
100
- return;
101
- const c = this.controller;
102
- this.update({
103
- isPlaying: c.isPlaying(),
104
- isPaused: c.isPaused(),
105
- isBuffering: c.isBuffering(),
106
- isMuted: c.isMuted(),
107
- volume: c.getVolume(),
108
- hasPlaybackStarted: c.hasPlaybackStarted(),
109
- shouldShowControls: c.shouldShowControls(),
110
- shouldShowIdleScreen: c.shouldShowIdleScreen(),
111
- playbackQuality: c.getPlaybackQuality(),
112
- isLoopEnabled: c.isLoopEnabled(),
113
- subtitlesEnabled: c.isSubtitlesEnabled(),
114
- qualities: c.getQualities(),
115
- textTracks: c.getTextTracks(),
116
- streamInfo: c.getStreamInfo(),
117
- });
118
- }
119
- // ---- Event Subscriptions (mirrors usePlayerController exactly) ----
120
- subscribeToEvents(controller) {
121
- const u = this.unsubs;
122
- u.push(controller.on("stateChange", ({ state }) => {
123
- this.update({ state });
124
- this.dispatchEvent("fw-state-change", { state });
125
- }));
126
- u.push(controller.on("streamStateChange", ({ state: streamState }) => {
127
- this.update({
128
- streamState,
129
- metadata: controller.getMetadata(),
130
- isEffectivelyLive: controller.isEffectivelyLive(),
131
- shouldShowIdleScreen: controller.shouldShowIdleScreen(),
132
- });
133
- this.dispatchEvent("fw-stream-state", { state: streamState });
134
- }));
135
- u.push(controller.on("timeUpdate", ({ currentTime, duration }) => {
136
- const next = {
137
- currentTime,
138
- duration,
139
- shouldShowControls: controller.shouldShowControls(),
140
- };
141
- if (this.s.qualities.length === 0) {
142
- const qualities = controller.getQualities();
143
- if (qualities.length > 0) {
144
- next.qualities = qualities;
145
- }
146
- }
147
- this.update(next);
148
- this.dispatchEvent("fw-time-update", { currentTime, duration });
149
- }));
150
- u.push(controller.on("error", ({ error }) => {
151
- this.update({
152
- error,
153
- isPassiveError: controller.isPassiveError(),
154
- });
155
- this.dispatchEvent("fw-error", { error });
156
- }));
157
- u.push(controller.on("errorCleared", () => {
158
- this.update({ error: null, isPassiveError: false });
159
- }));
160
- u.push(controller.on("ready", ({ videoElement }) => {
161
- this.update({
162
- videoElement,
163
- endpoints: controller.getEndpoints(),
164
- metadata: controller.getMetadata(),
165
- streamInfo: controller.getStreamInfo(),
166
- isEffectivelyLive: controller.isEffectivelyLive(),
167
- shouldShowIdleScreen: controller.shouldShowIdleScreen(),
168
- currentPlayerInfo: controller.getCurrentPlayerInfo(),
169
- currentSourceInfo: controller.getCurrentSourceInfo(),
170
- qualities: controller.getQualities(),
171
- textTracks: controller.getTextTracks(),
172
- });
173
- this.dispatchEvent("fw-ready", { videoElement });
174
- this.syncState();
175
- const handleVideoEvent = () => {
176
- if (this.controller?.shouldSuppressVideoEvents?.())
177
- return;
178
- this.syncState();
179
- };
180
- videoElement.addEventListener("play", handleVideoEvent);
181
- videoElement.addEventListener("pause", handleVideoEvent);
182
- videoElement.addEventListener("waiting", handleVideoEvent);
183
- videoElement.addEventListener("playing", handleVideoEvent);
184
- u.push(() => {
185
- videoElement.removeEventListener("play", handleVideoEvent);
186
- videoElement.removeEventListener("pause", handleVideoEvent);
187
- videoElement.removeEventListener("waiting", handleVideoEvent);
188
- videoElement.removeEventListener("playing", handleVideoEvent);
189
- });
190
- }));
191
- u.push(controller.on("playerSelected", ({ player: _player, source }) => {
192
- this.update({
193
- currentPlayerInfo: controller.getCurrentPlayerInfo(),
194
- currentSourceInfo: { url: source.url, type: source.type },
195
- qualities: controller.getQualities(),
196
- textTracks: controller.getTextTracks(),
197
- });
198
- this.syncState();
199
- }));
200
- u.push(controller.on("volumeChange", ({ volume, muted }) => {
201
- this.update({ volume, isMuted: muted });
202
- this.dispatchEvent("fw-volume-change", { volume, muted });
203
- }));
204
- u.push(controller.on("loopChange", ({ isLoopEnabled }) => {
205
- this.update({ isLoopEnabled });
206
- }));
207
- u.push(controller.on("fullscreenChange", ({ isFullscreen }) => {
208
- this.update({ isFullscreen });
209
- this.dispatchEvent("fw-fullscreen-change", { isFullscreen });
210
- }));
211
- u.push(controller.on("pipChange", ({ isPiP }) => {
212
- this.update({ isPiPActive: isPiP });
213
- this.dispatchEvent("fw-pip-change", { isPiP });
214
- }));
215
- u.push(controller.on("holdSpeedStart", ({ speed }) => {
216
- this.update({ isHoldingSpeed: true, holdSpeed: speed });
217
- }));
218
- u.push(controller.on("holdSpeedEnd", () => {
219
- this.update({ isHoldingSpeed: false });
220
- }));
221
- u.push(controller.on("hoverStart", () => {
222
- this.update({ isHovering: true, shouldShowControls: true });
223
- }));
224
- u.push(controller.on("hoverEnd", () => {
225
- this.update({
226
- isHovering: false,
227
- shouldShowControls: controller.shouldShowControls(),
228
- });
229
- }));
230
- u.push(controller.on("captionsChange", ({ enabled }) => {
231
- this.update({ subtitlesEnabled: enabled, textTracks: controller.getTextTracks() });
232
- }));
233
- u.push(controller.on("protocolSwapped", (data) => {
234
- const message = `Switched to ${data.toProtocol}`;
235
- this.update({ toast: { message, timestamp: Date.now() } });
236
- this.dispatchEvent("fw-protocol-swapped", data);
237
- }));
238
- u.push(controller.on("playbackFailed", (data) => {
239
- this.update({
240
- error: data.message,
241
- errorDetails: data.details ?? null,
242
- isPassiveError: false,
243
- });
244
- this.dispatchEvent("fw-playback-failed", {
245
- code: data.code,
246
- message: data.message,
247
- });
248
- }));
249
- }
250
- // ---- Event Dispatching ----
251
- dispatchEvent(name, detail) {
252
- this.host.dispatchEvent(new CustomEvent(name, { detail, bubbles: true, composed: true }));
253
- }
254
- // ---- Action Methods ----
255
- async play() {
256
- await this.controller?.play();
257
- }
258
- pause() {
259
- this.controller?.pause();
260
- }
261
- togglePlay() {
262
- this.controller?.togglePlay();
263
- }
264
- seek(time) {
265
- this.controller?.seek(time);
266
- }
267
- seekBy(delta) {
268
- this.controller?.seekBy(delta);
269
- }
270
- jumpToLive() {
271
- this.controller?.jumpToLive();
272
- }
273
- setVolume(volume) {
274
- this.controller?.setVolume(volume);
275
- }
276
- toggleMute() {
277
- this.controller?.toggleMute();
278
- }
279
- toggleLoop() {
280
- this.controller?.toggleLoop();
281
- }
282
- async toggleFullscreen() {
283
- await this.controller?.toggleFullscreen();
284
- }
285
- async togglePiP() {
286
- await this.controller?.togglePictureInPicture();
287
- }
288
- toggleSubtitles() {
289
- this.controller?.toggleSubtitles();
290
- }
291
- clearError() {
292
- this.controller?.clearError();
293
- this.update({ error: null, errorDetails: null, isPassiveError: false });
294
- }
295
- dismissToast() {
296
- this.update({ toast: null });
297
- }
298
- async retry() {
299
- await this.controller?.retry();
300
- }
301
- async reload() {
302
- await this.controller?.reload();
303
- }
304
- getQualities() {
305
- return this.controller?.getQualities() ?? [];
306
- }
307
- selectQuality(id) {
308
- this.controller?.selectQuality(id);
309
- }
310
- getTextTracks() {
311
- return this.controller?.getTextTracks() ?? [];
312
- }
313
- selectTextTrack(id) {
314
- this.controller?.selectTextTrack(id);
315
- }
316
- setPlaybackRate(rate) {
317
- this.controller?.setPlaybackRate(rate);
318
- }
319
- getSeekableStart() {
320
- return this.controller?.getSeekableStart() ?? 0;
321
- }
322
- getLiveEdge() {
323
- return this.controller?.getLiveEdge() ?? 0;
324
- }
325
- canSeekStream() {
326
- return this.controller?.canSeekStream() ?? false;
327
- }
328
- getBufferedRanges() {
329
- return this.controller?.getBufferedRanges() ?? null;
330
- }
331
- async getStats() {
332
- return this.controller?.getStats();
333
- }
334
- handleMouseEnter() {
335
- this.controller?.handleMouseEnter();
336
- this.update({ isHovering: true, shouldShowControls: true });
337
- }
338
- handleMouseLeave() {
339
- this.controller?.handleMouseLeave();
340
- this.update({
341
- isHovering: false,
342
- shouldShowControls: this.controller?.shouldShowControls() ?? false,
343
- });
344
- }
345
- handleMouseMove() {
346
- this.controller?.handleMouseMove();
347
- if (this.controller) {
348
- this.update({ shouldShowControls: this.controller.shouldShowControls() });
349
- }
350
- }
351
- handleTouchStart() {
352
- this.controller?.handleTouchStart();
353
- this.update({ shouldShowControls: true });
354
- }
355
- async setDevModeOptions(options) {
356
- await this.controller?.setDevModeOptions(options);
357
- }
358
- getController() {
359
- return this.controller;
360
- }
361
- }
362
-
363
- exports.PlayerControllerHost = PlayerControllerHost;
364
- //# sourceMappingURL=player-controller-host.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"player-controller-host.js","sources":["../../../../src/controllers/player-controller-host.ts"],"sourcesContent":["/**\n * PlayerControllerHost — Lit ReactiveController wrapping the headless PlayerController.\n * Direct port of usePlayerController.ts from player-react.\n */\nimport type { ReactiveController, ReactiveControllerHost } from \"lit\";\nimport {\n PlayerController,\n type PlayerControllerConfig,\n type PlayerState,\n type StreamState,\n type StreamInfo,\n type PlaybackQuality,\n type ContentEndpoints,\n type ContentMetadata,\n type ClassifiedError,\n} from \"@livepeer-frameworks/player-core\";\n\nexport interface PlayerControllerHostState {\n state: PlayerState;\n streamState: StreamState | null;\n endpoints: ContentEndpoints | null;\n metadata: ContentMetadata | null;\n videoElement: HTMLVideoElement | null;\n currentTime: number;\n duration: number;\n isPlaying: boolean;\n isPaused: boolean;\n isBuffering: boolean;\n isMuted: boolean;\n volume: number;\n error: string | null;\n errorDetails: ClassifiedError[\"details\"] | null;\n isPassiveError: boolean;\n hasPlaybackStarted: boolean;\n isHoldingSpeed: boolean;\n holdSpeed: number;\n isHovering: boolean;\n shouldShowControls: boolean;\n isLoopEnabled: boolean;\n isFullscreen: boolean;\n isPiPActive: boolean;\n isEffectivelyLive: boolean;\n shouldShowIdleScreen: boolean;\n currentPlayerInfo: { name: string; shortname: string } | null;\n currentSourceInfo: { url: string; type: string } | null;\n playbackQuality: PlaybackQuality | null;\n subtitlesEnabled: boolean;\n qualities: Array<{\n id: string;\n label: string;\n bitrate?: number;\n width?: number;\n height?: number;\n isAuto?: boolean;\n active?: boolean;\n }>;\n textTracks: Array<{ id: string; label: string; lang?: string; active: boolean }>;\n streamInfo: StreamInfo | null;\n toast: { message: string; timestamp: number } | null;\n}\n\nconst initialState: PlayerControllerHostState = {\n state: \"booting\",\n streamState: null,\n endpoints: null,\n metadata: null,\n videoElement: null,\n currentTime: 0,\n duration: NaN,\n isPlaying: false,\n isPaused: true,\n isBuffering: false,\n isMuted: true,\n volume: 1,\n error: null,\n errorDetails: null,\n isPassiveError: false,\n hasPlaybackStarted: false,\n isHoldingSpeed: false,\n holdSpeed: 2,\n isHovering: false,\n shouldShowControls: false,\n isLoopEnabled: false,\n isFullscreen: false,\n isPiPActive: false,\n isEffectivelyLive: false,\n shouldShowIdleScreen: true,\n currentPlayerInfo: null,\n currentSourceInfo: null,\n playbackQuality: null,\n subtitlesEnabled: false,\n qualities: [],\n textTracks: [],\n streamInfo: null,\n toast: null,\n};\n\ntype HostElement = ReactiveControllerHost & HTMLElement;\n\nexport class PlayerControllerHost implements ReactiveController {\n host: HostElement;\n private controller: PlayerController | null = null;\n private unsubs: Array<() => void> = [];\n private currentConfig: PlayerControllerConfig | null = null;\n\n s: PlayerControllerHostState = { ...initialState };\n\n constructor(host: HostElement) {\n this.host = host;\n host.addController(this);\n }\n\n // ---- Configuration & Lifecycle ----\n\n configure(config: PlayerControllerConfig) {\n this.currentConfig = config;\n }\n\n async attach(container: HTMLDivElement) {\n if (!this.currentConfig) return;\n this.teardown();\n\n const controller = new PlayerController({\n contentId: this.currentConfig.contentId,\n contentType: this.currentConfig.contentType,\n endpoints: this.currentConfig.endpoints,\n gatewayUrl: this.currentConfig.gatewayUrl,\n mistUrl: this.currentConfig.mistUrl,\n authToken: this.currentConfig.authToken,\n autoplay: this.currentConfig.autoplay,\n muted: this.currentConfig.muted,\n controls: this.currentConfig.controls,\n poster: this.currentConfig.poster,\n debug: this.currentConfig.debug,\n });\n\n this.controller = controller;\n this.subscribeToEvents(controller);\n\n this.update({ isLoopEnabled: controller.isLoopEnabled() });\n\n try {\n await controller.attach(container);\n } catch (err) {\n console.warn(\"[PlayerControllerHost] Attach failed:\", err);\n }\n }\n\n hostConnected() {\n // Controller attachment happens in firstUpdated of the host element\n }\n\n hostDisconnected() {\n this.teardown();\n this.s = { ...initialState };\n }\n\n private teardown() {\n this.unsubs.forEach((fn) => fn());\n this.unsubs = [];\n this.controller?.destroy();\n this.controller = null;\n }\n\n // ---- State Updates ----\n\n private update(partial: Partial<PlayerControllerHostState>) {\n Object.assign(this.s, partial);\n this.host.requestUpdate();\n }\n\n private syncState() {\n if (!this.controller) return;\n const c = this.controller;\n this.update({\n isPlaying: c.isPlaying(),\n isPaused: c.isPaused(),\n isBuffering: c.isBuffering(),\n isMuted: c.isMuted(),\n volume: c.getVolume(),\n hasPlaybackStarted: c.hasPlaybackStarted(),\n shouldShowControls: c.shouldShowControls(),\n shouldShowIdleScreen: c.shouldShowIdleScreen(),\n playbackQuality: c.getPlaybackQuality(),\n isLoopEnabled: c.isLoopEnabled(),\n subtitlesEnabled: c.isSubtitlesEnabled(),\n qualities: c.getQualities(),\n textTracks: c.getTextTracks(),\n streamInfo: c.getStreamInfo(),\n });\n }\n\n // ---- Event Subscriptions (mirrors usePlayerController exactly) ----\n\n private subscribeToEvents(controller: PlayerController) {\n const u = this.unsubs;\n\n u.push(\n controller.on(\"stateChange\", ({ state }) => {\n this.update({ state });\n this.dispatchEvent(\"fw-state-change\", { state });\n })\n );\n\n u.push(\n controller.on(\"streamStateChange\", ({ state: streamState }) => {\n this.update({\n streamState,\n metadata: controller.getMetadata(),\n isEffectivelyLive: controller.isEffectivelyLive(),\n shouldShowIdleScreen: controller.shouldShowIdleScreen(),\n });\n this.dispatchEvent(\"fw-stream-state\", { state: streamState });\n })\n );\n\n u.push(\n controller.on(\"timeUpdate\", ({ currentTime, duration }) => {\n const next: Partial<PlayerControllerHostState> = {\n currentTime,\n duration,\n shouldShowControls: controller.shouldShowControls(),\n };\n if (this.s.qualities.length === 0) {\n const qualities = controller.getQualities();\n if (qualities.length > 0) {\n next.qualities = qualities;\n }\n }\n this.update(next);\n this.dispatchEvent(\"fw-time-update\", { currentTime, duration });\n })\n );\n\n u.push(\n controller.on(\"error\", ({ error }) => {\n this.update({\n error,\n isPassiveError: controller.isPassiveError(),\n });\n this.dispatchEvent(\"fw-error\", { error });\n })\n );\n\n u.push(\n controller.on(\"errorCleared\", () => {\n this.update({ error: null, isPassiveError: false });\n })\n );\n\n u.push(\n controller.on(\"ready\", ({ videoElement }) => {\n this.update({\n videoElement,\n endpoints: controller.getEndpoints(),\n metadata: controller.getMetadata(),\n streamInfo: controller.getStreamInfo(),\n isEffectivelyLive: controller.isEffectivelyLive(),\n shouldShowIdleScreen: controller.shouldShowIdleScreen(),\n currentPlayerInfo: controller.getCurrentPlayerInfo(),\n currentSourceInfo: controller.getCurrentSourceInfo(),\n qualities: controller.getQualities(),\n textTracks: controller.getTextTracks(),\n });\n this.dispatchEvent(\"fw-ready\", { videoElement });\n this.syncState();\n\n const handleVideoEvent = () => {\n if (this.controller?.shouldSuppressVideoEvents?.()) return;\n this.syncState();\n };\n videoElement.addEventListener(\"play\", handleVideoEvent);\n videoElement.addEventListener(\"pause\", handleVideoEvent);\n videoElement.addEventListener(\"waiting\", handleVideoEvent);\n videoElement.addEventListener(\"playing\", handleVideoEvent);\n u.push(() => {\n videoElement.removeEventListener(\"play\", handleVideoEvent);\n videoElement.removeEventListener(\"pause\", handleVideoEvent);\n videoElement.removeEventListener(\"waiting\", handleVideoEvent);\n videoElement.removeEventListener(\"playing\", handleVideoEvent);\n });\n })\n );\n\n u.push(\n controller.on(\"playerSelected\", ({ player: _player, source }) => {\n this.update({\n currentPlayerInfo: controller.getCurrentPlayerInfo(),\n currentSourceInfo: { url: source.url, type: source.type },\n qualities: controller.getQualities(),\n textTracks: controller.getTextTracks(),\n });\n this.syncState();\n })\n );\n\n u.push(\n controller.on(\"volumeChange\", ({ volume, muted }) => {\n this.update({ volume, isMuted: muted });\n this.dispatchEvent(\"fw-volume-change\", { volume, muted });\n })\n );\n\n u.push(\n controller.on(\"loopChange\", ({ isLoopEnabled }) => {\n this.update({ isLoopEnabled });\n })\n );\n\n u.push(\n controller.on(\"fullscreenChange\", ({ isFullscreen }) => {\n this.update({ isFullscreen });\n this.dispatchEvent(\"fw-fullscreen-change\", { isFullscreen });\n })\n );\n\n u.push(\n controller.on(\"pipChange\", ({ isPiP }) => {\n this.update({ isPiPActive: isPiP });\n this.dispatchEvent(\"fw-pip-change\", { isPiP });\n })\n );\n\n u.push(\n controller.on(\"holdSpeedStart\", ({ speed }) => {\n this.update({ isHoldingSpeed: true, holdSpeed: speed });\n })\n );\n\n u.push(\n controller.on(\"holdSpeedEnd\", () => {\n this.update({ isHoldingSpeed: false });\n })\n );\n\n u.push(\n controller.on(\"hoverStart\", () => {\n this.update({ isHovering: true, shouldShowControls: true });\n })\n );\n\n u.push(\n controller.on(\"hoverEnd\", () => {\n this.update({\n isHovering: false,\n shouldShowControls: controller.shouldShowControls(),\n });\n })\n );\n\n u.push(\n controller.on(\"captionsChange\", ({ enabled }) => {\n this.update({ subtitlesEnabled: enabled, textTracks: controller.getTextTracks() });\n })\n );\n\n u.push(\n controller.on(\"protocolSwapped\", (data) => {\n const message = `Switched to ${data.toProtocol}`;\n this.update({ toast: { message, timestamp: Date.now() } });\n this.dispatchEvent(\"fw-protocol-swapped\", data);\n })\n );\n\n u.push(\n controller.on(\"playbackFailed\", (data) => {\n this.update({\n error: data.message,\n errorDetails: data.details ?? null,\n isPassiveError: false,\n });\n this.dispatchEvent(\"fw-playback-failed\", {\n code: data.code,\n message: data.message,\n });\n })\n );\n }\n\n // ---- Event Dispatching ----\n\n private dispatchEvent(name: string, detail: unknown) {\n this.host.dispatchEvent(new CustomEvent(name, { detail, bubbles: true, composed: true }));\n }\n\n // ---- Action Methods ----\n\n async play() {\n await this.controller?.play();\n }\n pause() {\n this.controller?.pause();\n }\n togglePlay() {\n this.controller?.togglePlay();\n }\n seek(time: number) {\n this.controller?.seek(time);\n }\n seekBy(delta: number) {\n this.controller?.seekBy(delta);\n }\n jumpToLive() {\n this.controller?.jumpToLive();\n }\n setVolume(volume: number) {\n this.controller?.setVolume(volume);\n }\n toggleMute() {\n this.controller?.toggleMute();\n }\n toggleLoop() {\n this.controller?.toggleLoop();\n }\n async toggleFullscreen() {\n await this.controller?.toggleFullscreen();\n }\n async togglePiP() {\n await this.controller?.togglePictureInPicture();\n }\n toggleSubtitles() {\n this.controller?.toggleSubtitles();\n }\n\n clearError() {\n this.controller?.clearError();\n this.update({ error: null, errorDetails: null, isPassiveError: false });\n }\n\n dismissToast() {\n this.update({ toast: null });\n }\n\n async retry() {\n await this.controller?.retry();\n }\n async reload() {\n await this.controller?.reload();\n }\n\n getQualities() {\n return this.controller?.getQualities() ?? [];\n }\n selectQuality(id: string) {\n this.controller?.selectQuality(id);\n }\n getTextTracks() {\n return this.controller?.getTextTracks() ?? [];\n }\n selectTextTrack(id: string | null) {\n this.controller?.selectTextTrack(id);\n }\n setPlaybackRate(rate: number) {\n this.controller?.setPlaybackRate(rate);\n }\n getSeekableStart() {\n return this.controller?.getSeekableStart() ?? 0;\n }\n getLiveEdge() {\n return this.controller?.getLiveEdge() ?? 0;\n }\n canSeekStream() {\n return this.controller?.canSeekStream() ?? false;\n }\n getBufferedRanges() {\n return this.controller?.getBufferedRanges() ?? null;\n }\n async getStats() {\n return this.controller?.getStats();\n }\n\n handleMouseEnter() {\n this.controller?.handleMouseEnter();\n this.update({ isHovering: true, shouldShowControls: true });\n }\n handleMouseLeave() {\n this.controller?.handleMouseLeave();\n this.update({\n isHovering: false,\n shouldShowControls: this.controller?.shouldShowControls() ?? false,\n });\n }\n handleMouseMove() {\n this.controller?.handleMouseMove();\n if (this.controller) {\n this.update({ shouldShowControls: this.controller.shouldShowControls() });\n }\n }\n handleTouchStart() {\n this.controller?.handleTouchStart();\n this.update({ shouldShowControls: true });\n }\n\n async setDevModeOptions(options: {\n forcePlayer?: string;\n forceType?: string;\n forceSource?: number;\n playbackMode?: \"auto\" | \"low-latency\" | \"quality\" | \"vod\";\n }) {\n await this.controller?.setDevModeOptions(options);\n }\n\n getController(): PlayerController | null {\n return this.controller;\n }\n}\n"],"names":["PlayerController"],"mappings":";;;;AA6DA,MAAM,YAAY,GAA8B;AAC9C,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,QAAQ,EAAE,GAAG;AACb,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,kBAAkB,EAAE,KAAK;AACzB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,kBAAkB,EAAE,KAAK;AACzB,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,YAAY,EAAE,KAAK;AACnB,IA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}
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- var fwPlayer = require('./components/fw-player.js');
4
- var fwPlayerControls = require('./components/fw-player-controls.js');
5
- var fwSeekBar = require('./components/fw-seek-bar.js');
6
- var fwVolumeControl = require('./components/fw-volume-control.js');
7
- var fwSettingsMenu = require('./components/fw-settings-menu.js');
8
- var fwIdleScreen = require('./components/fw-idle-screen.js');
9
- var fwLoadingSpinner = require('./components/fw-loading-spinner.js');
10
- var fwLoadingScreen = require('./components/fw-loading-screen.js');
11
- var fwStreamStateOverlay = require('./components/fw-stream-state-overlay.js');
12
- var fwThumbnailOverlay = require('./components/fw-thumbnail-overlay.js');
13
- var fwDvdLogo = require('./components/fw-dvd-logo.js');
14
- var fwTitleOverlay = require('./components/fw-title-overlay.js');
15
- var fwErrorOverlay = require('./components/fw-error-overlay.js');
16
- var fwToast = require('./components/fw-toast.js');
17
- var fwStatsPanel = require('./components/fw-stats-panel.js');
18
- var fwDevModePanel = require('./components/fw-dev-mode-panel.js');
19
- var fwSubtitleRenderer = require('./components/fw-subtitle-renderer.js');
20
- var fwSkipIndicator = require('./components/fw-skip-indicator.js');
21
- var fwSpeedIndicator = require('./components/fw-speed-indicator.js');
22
- var fwContextMenu = require('./components/fw-context-menu.js');
23
-
24
- /**
25
- * Side-effect import that registers all custom elements.
26
- * Usage: import '@livepeer-frameworks/player-wc/define';
27
- */
28
- function safeDefine(name, ctor) {
29
- if (!customElements.get(name)) {
30
- customElements.define(name, ctor);
31
- }
32
- }
33
- safeDefine("fw-player", fwPlayer.FwPlayer);
34
- safeDefine("fw-player-controls", fwPlayerControls.FwPlayerControls);
35
- safeDefine("fw-seek-bar", fwSeekBar.FwSeekBar);
36
- safeDefine("fw-volume-control", fwVolumeControl.FwVolumeControl);
37
- safeDefine("fw-settings-menu", fwSettingsMenu.FwSettingsMenu);
38
- safeDefine("fw-idle-screen", fwIdleScreen.FwIdleScreen);
39
- safeDefine("fw-loading-spinner", fwLoadingSpinner.FwLoadingSpinner);
40
- safeDefine("fw-loading-screen", fwLoadingScreen.FwLoadingScreen);
41
- safeDefine("fw-stream-state-overlay", fwStreamStateOverlay.FwStreamStateOverlay);
42
- safeDefine("fw-thumbnail-overlay", fwThumbnailOverlay.FwThumbnailOverlay);
43
- safeDefine("fw-dvd-logo", fwDvdLogo.FwDvdLogo);
44
- safeDefine("fw-title-overlay", fwTitleOverlay.FwTitleOverlay);
45
- safeDefine("fw-error-overlay", fwErrorOverlay.FwErrorOverlay);
46
- safeDefine("fw-toast", fwToast.FwToast);
47
- safeDefine("fw-stats-panel", fwStatsPanel.FwStatsPanel);
48
- safeDefine("fw-dev-mode-panel", fwDevModePanel.FwDevModePanel);
49
- safeDefine("fw-subtitle-renderer", fwSubtitleRenderer.FwSubtitleRenderer);
50
- safeDefine("fw-skip-indicator", fwSkipIndicator.FwSkipIndicator);
51
- safeDefine("fw-speed-indicator", fwSpeedIndicator.FwSpeedIndicator);
52
- safeDefine("fw-context-menu", fwContextMenu.FwContextMenu);
53
- //# sourceMappingURL=define.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define.js","sources":["../../../src/define.ts"],"sourcesContent":["/**\n * Side-effect import that registers all custom elements.\n * Usage: import '@livepeer-frameworks/player-wc/define';\n */\nimport { FwPlayer } from \"./components/fw-player.js\";\nimport { FwPlayerControls } from \"./components/fw-player-controls.js\";\nimport { FwSeekBar } from \"./components/fw-seek-bar.js\";\nimport { FwVolumeControl } from \"./components/fw-volume-control.js\";\nimport { FwSettingsMenu } from \"./components/fw-settings-menu.js\";\nimport { FwIdleScreen } from \"./components/fw-idle-screen.js\";\nimport { FwLoadingSpinner } from \"./components/fw-loading-spinner.js\";\nimport { FwLoadingScreen } from \"./components/fw-loading-screen.js\";\nimport { FwStreamStateOverlay } from \"./components/fw-stream-state-overlay.js\";\nimport { FwThumbnailOverlay } from \"./components/fw-thumbnail-overlay.js\";\nimport { FwDvdLogo } from \"./components/fw-dvd-logo.js\";\nimport { FwTitleOverlay } from \"./components/fw-title-overlay.js\";\nimport { FwErrorOverlay } from \"./components/fw-error-overlay.js\";\nimport { FwToast } from \"./components/fw-toast.js\";\nimport { FwStatsPanel } from \"./components/fw-stats-panel.js\";\nimport { FwDevModePanel } from \"./components/fw-dev-mode-panel.js\";\nimport { FwSubtitleRenderer } from \"./components/fw-subtitle-renderer.js\";\nimport { FwSkipIndicator } from \"./components/fw-skip-indicator.js\";\nimport { FwSpeedIndicator } from \"./components/fw-speed-indicator.js\";\nimport { FwContextMenu } from \"./components/fw-context-menu.js\";\n\nfunction safeDefine(name: string, ctor: CustomElementConstructor) {\n if (!customElements.get(name)) {\n customElements.define(name, ctor);\n }\n}\n\nsafeDefine(\"fw-player\", FwPlayer);\nsafeDefine(\"fw-player-controls\", FwPlayerControls);\nsafeDefine(\"fw-seek-bar\", FwSeekBar);\nsafeDefine(\"fw-volume-control\", FwVolumeControl);\nsafeDefine(\"fw-settings-menu\", FwSettingsMenu);\nsafeDefine(\"fw-idle-screen\", FwIdleScreen);\nsafeDefine(\"fw-loading-spinner\", FwLoadingSpinner);\nsafeDefine(\"fw-loading-screen\", FwLoadingScreen);\nsafeDefine(\"fw-stream-state-overlay\", FwStreamStateOverlay);\nsafeDefine(\"fw-thumbnail-overlay\", FwThumbnailOverlay);\nsafeDefine(\"fw-dvd-logo\", FwDvdLogo);\nsafeDefine(\"fw-title-overlay\", FwTitleOverlay);\nsafeDefine(\"fw-error-overlay\", FwErrorOverlay);\nsafeDefine(\"fw-toast\", FwToast);\nsafeDefine(\"fw-stats-panel\", FwStatsPanel);\nsafeDefine(\"fw-dev-mode-panel\", FwDevModePanel);\nsafeDefine(\"fw-subtitle-renderer\", FwSubtitleRenderer);\nsafeDefine(\"fw-skip-indicator\", FwSkipIndicator);\nsafeDefine(\"fw-speed-indicator\", FwSpeedIndicator);\nsafeDefine(\"fw-context-menu\", FwContextMenu);\n"],"names":["FwPlayer","FwPlayerControls","FwSeekBar","FwVolumeControl","FwSettingsMenu","FwIdleScreen","FwLoadingSpinner","FwLoadingScreen","FwStreamStateOverlay","FwThumbnailOverlay","FwDvdLogo","FwTitleOverlay","FwErrorOverlay","FwToast","FwStatsPanel","FwDevModePanel","FwSubtitleRenderer","FwSkipIndicator","FwSpeedIndicator","FwContextMenu"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAsBH,SAAS,UAAU,CAAC,IAAY,EAAE,IAA8B,EAAA;IAC9D,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;AAC7B,QAAA,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC;IACnC;AACF;AAEA,UAAU,CAAC,WAAW,EAAEA,iBAAQ,CAAC;AACjC,UAAU,CAAC,oBAAoB,EAAEC,iCAAgB,CAAC;AAClD,UAAU,CAAC,aAAa,EAAEC,mBAAS,CAAC;AACpC,UAAU,CAAC,mBAAmB,EAAEC,+BAAe,CAAC;AAChD,UAAU,CAAC,kBAAkB,EAAEC,6BAAc,CAAC;AAC9C,UAAU,CAAC,gBAAgB,EAAEC,yBAAY,CAAC;AAC1C,UAAU,CAAC,oBAAoB,EAAEC,iCAAgB,CAAC;AAClD,UAAU,CAAC,mBAAmB,EAAEC,+BAAe,CAAC;AAChD,UAAU,CAAC,yBAAyB,EAAEC,yCAAoB,CAAC;AAC3D,UAAU,CAAC,sBAAsB,EAAEC,qCAAkB,CAAC;AACtD,UAAU,CAAC,aAAa,EAAEC,mBAAS,CAAC;AACpC,UAAU,CAAC,kBAAkB,EAAEC,6BAAc,CAAC;AAC9C,UAAU,CAAC,kBAAkB,EAAEC,6BAAc,CAAC;AAC9C,UAAU,CAAC,UAAU,EAAEC,eAAO,CAAC;AAC/B,UAAU,CAAC,gBAAgB,EAAEC,yBAAY,CAAC;AAC1C,UAAU,CAAC,mBAAmB,EAAEC,6BAAc,CAAC;AAC/C,UAAU,CAAC,sBAAsB,EAAEC,qCAAkB,CAAC;AACtD,UAAU,CAAC,mBAAmB,EAAEC,+BAAe,CAAC;AAChD,UAAU,CAAC,oBAAoB,EAAEC,iCAAgB,CAAC;AAClD,UAAU,CAAC,iBAAiB,EAAEC,2BAAa,CAAC;;"}
@@ -1,180 +0,0 @@
1
- 'use strict';
2
-
3
- var lit = require('lit');
4
-
5
- /**
6
- * SVG icons as Lit html template functions.
7
- * Port of Icons.tsx from player-react.
8
- */
9
- const playIcon = (size = 16, color = "currentColor") => lit.html `
10
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
11
- <path d="M8 5v14l11-7z" fill="${color}" />
12
- </svg>
13
- `;
14
- const pauseIcon = (size = 16, color = "currentColor") => lit.html `
15
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
16
- <rect x="6" y="4" width="4" height="16" fill="${color}" />
17
- <rect x="14" y="4" width="4" height="16" fill="${color}" />
18
- </svg>
19
- `;
20
- const skipBackIcon = (size = 16, color = "currentColor") => lit.html `
21
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
22
- <path
23
- d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"
24
- fill="${color}"
25
- />
26
- ${lit.svg `<text x="12" y="15" font-size="7" font-weight="bold" fill="${color}" text-anchor="middle">10</text>`}
27
- </svg>
28
- `;
29
- const skipForwardIcon = (size = 16, color = "currentColor") => lit.html `
30
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
31
- <path
32
- d="M12 5V1l5 5-5 5V7c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6h2c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8z"
33
- fill="${color}"
34
- />
35
- ${lit.svg `<text x="12" y="15" font-size="7" font-weight="bold" fill="${color}" text-anchor="middle">10</text>`}
36
- </svg>
37
- `;
38
- const volumeUpIcon = (size = 16, color = "currentColor") => lit.html `
39
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
40
- <polygon points="11,5 6,9 2,9 2,15 6,15 11,19" fill="${color}" />
41
- <path
42
- d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"
43
- stroke="${color}"
44
- stroke-width="2"
45
- stroke-linecap="round"
46
- stroke-linejoin="round"
47
- />
48
- </svg>
49
- `;
50
- const volumeOffIcon = (size = 16, color = "currentColor") => lit.html `
51
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
52
- <polygon points="11,5 6,9 2,9 2,15 6,15 11,19" fill="${color}" />
53
- <line
54
- x1="23"
55
- y1="9"
56
- x2="17"
57
- y2="15"
58
- stroke="${color}"
59
- stroke-width="2"
60
- stroke-linecap="round"
61
- />
62
- <line
63
- x1="17"
64
- y1="9"
65
- x2="23"
66
- y2="15"
67
- stroke="${color}"
68
- stroke-width="2"
69
- stroke-linecap="round"
70
- />
71
- </svg>
72
- `;
73
- const fullscreenIcon = (size = 16, color = "currentColor") => lit.html `
74
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
75
- <path
76
- d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3m8 0h3a2 2 0 0 0 2-2v-3"
77
- stroke="${color}"
78
- stroke-width="2"
79
- stroke-linecap="round"
80
- stroke-linejoin="round"
81
- />
82
- </svg>
83
- `;
84
- const fullscreenExitIcon = (size = 16, color = "currentColor") => lit.html `
85
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
86
- <path
87
- d="M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 1 2 2v3M16 21v-3a2 2 0 0 1 2-2h3"
88
- stroke="${color}"
89
- stroke-width="2"
90
- stroke-linecap="round"
91
- stroke-linejoin="round"
92
- />
93
- </svg>
94
- `;
95
- const pictureInPictureIcon = (size = 16, color = "currentColor") => lit.html `
96
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
97
- <rect
98
- x="2"
99
- y="3"
100
- width="20"
101
- height="14"
102
- rx="2"
103
- ry="2"
104
- stroke="${color}"
105
- stroke-width="2"
106
- fill="none"
107
- />
108
- <rect x="8" y="10" width="10" height="6" rx="1" ry="1" fill="${color}" />
109
- </svg>
110
- `;
111
- const settingsIcon = (size = 16, color = "currentColor") => lit.html `
112
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
113
- <path
114
- d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
115
- stroke="${color}"
116
- stroke-width="2"
117
- stroke-linecap="round"
118
- stroke-linejoin="round"
119
- />
120
- <path
121
- d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1Z"
122
- stroke="${color}"
123
- stroke-width="2"
124
- stroke-linecap="round"
125
- stroke-linejoin="round"
126
- />
127
- </svg>
128
- `;
129
- const statsIcon = (size = 16, color = "currentColor") => lit.html `
130
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
131
- <rect x="4" y="13" width="4" height="7" fill="${color}" />
132
- <rect x="10" y="9" width="4" height="11" fill="${color}" />
133
- <rect x="16" y="4" width="4" height="16" fill="${color}" />
134
- </svg>
135
- `;
136
- const seekToLiveIcon = (size = 16, color = "currentColor") => lit.html `
137
- <svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" aria-hidden="true">
138
- <path d="M5 5v14l11-7z" fill="${color}" />
139
- <rect x="17" y="5" width="3" height="14" fill="${color}" />
140
- </svg>
141
- `;
142
- const closeIcon = (size = 12, color = "currentColor") => lit.html `
143
- <svg width="${size}" height="${size}" viewBox="0 0 12 12" fill="none" aria-hidden="true">
144
- <path d="M9 3L3 9M3 3L9 9" stroke="${color}" stroke-width="1.5" stroke-linecap="round" />
145
- </svg>
146
- `;
147
- const loopIcon = (size = 14, color = "currentColor") => lit.html `
148
- <svg
149
- width="${size}"
150
- height="${size}"
151
- viewBox="0 0 24 24"
152
- fill="none"
153
- stroke="${color}"
154
- stroke-width="2"
155
- stroke-linecap="round"
156
- stroke-linejoin="round"
157
- aria-hidden="true"
158
- >
159
- <polyline points="17 1 21 5 17 9"></polyline>
160
- <path d="M3 11V9a4 4 0 0 1 4-4h14"></path>
161
- <polyline points="7 23 3 19 7 15"></polyline>
162
- <path d="M21 13v2a4 4 0 0 1-4 4H3"></path>
163
- </svg>
164
- `;
165
-
166
- exports.closeIcon = closeIcon;
167
- exports.fullscreenExitIcon = fullscreenExitIcon;
168
- exports.fullscreenIcon = fullscreenIcon;
169
- exports.loopIcon = loopIcon;
170
- exports.pauseIcon = pauseIcon;
171
- exports.pictureInPictureIcon = pictureInPictureIcon;
172
- exports.playIcon = playIcon;
173
- exports.seekToLiveIcon = seekToLiveIcon;
174
- exports.settingsIcon = settingsIcon;
175
- exports.skipBackIcon = skipBackIcon;
176
- exports.skipForwardIcon = skipForwardIcon;
177
- exports.statsIcon = statsIcon;
178
- exports.volumeOffIcon = volumeOffIcon;
179
- exports.volumeUpIcon = volumeUpIcon;
180
- //# sourceMappingURL=index.js.map