tmg-media-player 0.0.90 → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Q6JLSNPT.js → chunk-6DIUFTA7.js} +4 -4
- package/dist/{chunk-XWORO2HK.js → chunk-GTBRQ3GY.js} +24 -24
- package/dist/{chunk-CZOZFNFN.js → chunk-I6VMT5OS.js} +21 -21
- package/dist/{chunk-2Y2W5YQY.js → chunk-MWO5HHBX.js} +28 -28
- package/dist/{chunk-46OWY2AZ.js → chunk-PBIOBKLQ.js} +2 -2
- package/dist/chunk-PBIOBKLQ.js.map +1 -0
- package/dist/{chunk-UTKDWRB7.js → chunk-PS5W73KC.js} +7 -7
- package/dist/{chunk-UQVQ4S5I.js → chunk-R52VUQNX.js} +2 -2
- package/dist/{chunk-GZJTHYZ4.js → chunk-UQJBCOZM.js} +2 -2
- package/dist/chunk-UQJBCOZM.js.map +1 -0
- package/dist/{chunk-6NVKZAG4.js → chunk-VM2YE6RX.js} +26 -26
- package/dist/{chunk-UL3T7PZ2.js → chunk-W3C5T5DS.js} +4 -4
- package/dist/{chunk-ZKDG25G3.js → chunk-WOD7OVJK.js} +4 -4
- package/dist/{chunk-CKHN5TZQ.js → chunk-ZP7T2552.js} +51 -51
- package/dist/components/captionsView.js +2 -2
- package/dist/components/notifiers/z-register.js +8 -8
- package/dist/components/z-register.js +3 -3
- package/dist/plugs/menus/z-register.js +11 -11
- package/dist/plugs/settings/frame/index.cjs +1 -1
- package/dist/plugs/settings/frame/index.cjs.map +1 -1
- package/dist/plugs/settings/frame/index.js +1 -1
- package/dist/plugs/settings/gesture/index.js +2 -2
- package/dist/plugs/settings/gesture/touch.js +2 -2
- package/dist/plugs/settings/gesture/wheel.js +2 -2
- package/dist/plugs/settings/sleepTimer/index.js +1 -1
- package/dist/plugs/settings/time/index.cjs +1 -1
- package/dist/plugs/settings/time/index.cjs.map +1 -1
- package/dist/plugs/settings/time/index.js +1 -1
- package/dist/plugs/z-register.cjs +2 -2
- package/dist/plugs/z-register.cjs.map +1 -1
- package/dist/plugs/z-register.js +18 -18
- package/dist/super/components/index.js +33 -33
- package/dist/super/components/notifiers.js +21 -21
- package/dist/super/plugs/index.cjs +2 -2
- package/dist/super/plugs/index.cjs.map +1 -1
- package/dist/super/plugs/index.js +65 -65
- package/dist/super/plugs/menus.js +30 -30
- package/dist/super/techs.js +8 -8
- package/dist/super.cjs +2 -2
- package/dist/super.cjs.map +1 -1
- package/dist/super.global.js +2 -2
- package/dist/super.global.js.map +1 -1
- package/dist/super.js +61 -61
- package/dist/techs/z-register.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-46OWY2AZ.js.map +0 -1
- package/dist/chunk-GZJTHYZ4.js.map +0 -1
- /package/dist/{chunk-Q6JLSNPT.js.map → chunk-6DIUFTA7.js.map} +0 -0
- /package/dist/{chunk-XWORO2HK.js.map → chunk-GTBRQ3GY.js.map} +0 -0
- /package/dist/{chunk-CZOZFNFN.js.map → chunk-I6VMT5OS.js.map} +0 -0
- /package/dist/{chunk-2Y2W5YQY.js.map → chunk-MWO5HHBX.js.map} +0 -0
- /package/dist/{chunk-UTKDWRB7.js.map → chunk-PS5W73KC.js.map} +0 -0
- /package/dist/{chunk-UQVQ4S5I.js.map → chunk-R52VUQNX.js.map} +0 -0
- /package/dist/{chunk-6NVKZAG4.js.map → chunk-VM2YE6RX.js.map} +0 -0
- /package/dist/{chunk-UL3T7PZ2.js.map → chunk-W3C5T5DS.js.map} +0 -0
- /package/dist/{chunk-ZKDG25G3.js.map → chunk-WOD7OVJK.js.map} +0 -0
- /package/dist/{chunk-CKHN5TZQ.js.map → chunk-ZP7T2552.js.map} +0 -0
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
VimeoTech
|
|
3
|
-
} from "./chunk-TH2NALUW.js";
|
|
4
1
|
import {
|
|
5
2
|
YouTubeTech
|
|
6
3
|
} from "./chunk-ZARKPAOD.js";
|
|
@@ -13,6 +10,9 @@ import {
|
|
|
13
10
|
import {
|
|
14
11
|
ShakaTech
|
|
15
12
|
} from "./chunk-GJHDYEK4.js";
|
|
13
|
+
import {
|
|
14
|
+
VimeoTech
|
|
15
|
+
} from "./chunk-TH2NALUW.js";
|
|
16
16
|
import {
|
|
17
17
|
HTML5Tech
|
|
18
18
|
} from "./chunk-PCYXFMFF.js";
|
|
@@ -31,4 +31,4 @@ for (const Tech of [
|
|
|
31
31
|
VimeoTech
|
|
32
32
|
])
|
|
33
33
|
TechRegistry.register(Tech);
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-6DIUFTA7.js.map
|
|
@@ -5,27 +5,27 @@ import {
|
|
|
5
5
|
VoiceAiPin,
|
|
6
6
|
VoicePlug
|
|
7
7
|
} from "./chunk-HJL5IEF5.js";
|
|
8
|
-
import {
|
|
9
|
-
PosterPlug
|
|
10
|
-
} from "./chunk-TASI3DCL.js";
|
|
11
|
-
import {
|
|
12
|
-
TimePlug
|
|
13
|
-
} from "./chunk-GZJTHYZ4.js";
|
|
14
|
-
import {
|
|
15
|
-
SleepTimerPlug
|
|
16
|
-
} from "./chunk-RUYODXOS.js";
|
|
17
8
|
import {
|
|
18
9
|
TemporalPlug
|
|
19
10
|
} from "./chunk-LVK7I3HZ.js";
|
|
11
|
+
import {
|
|
12
|
+
TimePlug
|
|
13
|
+
} from "./chunk-UQJBCOZM.js";
|
|
20
14
|
import {
|
|
21
15
|
PlaybackRatePlug
|
|
22
16
|
} from "./chunk-6WLTQ66V.js";
|
|
23
17
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
18
|
+
PosterPlug
|
|
19
|
+
} from "./chunk-TASI3DCL.js";
|
|
20
|
+
import {
|
|
21
|
+
SleepTimerPlug
|
|
22
|
+
} from "./chunk-RUYODXOS.js";
|
|
26
23
|
import {
|
|
27
24
|
PanelPlug
|
|
28
25
|
} from "./chunk-UFJ27ZKM.js";
|
|
26
|
+
import {
|
|
27
|
+
OverlayPlug
|
|
28
|
+
} from "./chunk-C6MO2PC7.js";
|
|
29
29
|
import {
|
|
30
30
|
PersistPlug
|
|
31
31
|
} from "./chunk-3OTRLZBT.js";
|
|
@@ -48,20 +48,20 @@ import {
|
|
|
48
48
|
ModesPlug,
|
|
49
49
|
ModesTheaterPin
|
|
50
50
|
} from "./chunk-TTNUUGYZ.js";
|
|
51
|
-
import {
|
|
52
|
-
GesturePlug,
|
|
53
|
-
GestureTouchPin,
|
|
54
|
-
GestureWheelPin
|
|
55
|
-
} from "./chunk-UL3T7PZ2.js";
|
|
56
|
-
import {
|
|
57
|
-
MetadataPlug
|
|
58
|
-
} from "./chunk-WG7ZZVK7.js";
|
|
59
51
|
import {
|
|
60
52
|
KeysPlug
|
|
61
53
|
} from "./chunk-YUSBBARA.js";
|
|
62
54
|
import {
|
|
63
55
|
LockedPlug
|
|
64
56
|
} from "./chunk-MGB2WHJX.js";
|
|
57
|
+
import {
|
|
58
|
+
MetadataPlug
|
|
59
|
+
} from "./chunk-WG7ZZVK7.js";
|
|
60
|
+
import {
|
|
61
|
+
GesturePlug,
|
|
62
|
+
GestureTouchPin,
|
|
63
|
+
GestureWheelPin
|
|
64
|
+
} from "./chunk-W3C5T5DS.js";
|
|
65
65
|
import {
|
|
66
66
|
ErrorsPlug
|
|
67
67
|
} from "./chunk-QLFHINHZ.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
} from "./chunk-OFFHG6T2.js";
|
|
71
71
|
import {
|
|
72
72
|
FramePlug
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PBIOBKLQ.js";
|
|
74
74
|
import {
|
|
75
75
|
ControlPanelDraggablePin,
|
|
76
76
|
ControlPanelPlug
|
|
@@ -87,12 +87,12 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
BrightnessPlug
|
|
89
89
|
} from "./chunk-2X5EFICU.js";
|
|
90
|
-
import {
|
|
91
|
-
SkeletonPlug
|
|
92
|
-
} from "./chunk-Z5LJF2MR.js";
|
|
93
90
|
import {
|
|
94
91
|
AmbiencePlug
|
|
95
92
|
} from "./chunk-AHNVFAJ7.js";
|
|
93
|
+
import {
|
|
94
|
+
SkeletonPlug
|
|
95
|
+
} from "./chunk-Z5LJF2MR.js";
|
|
96
96
|
import {
|
|
97
97
|
DisabledPlug
|
|
98
98
|
} from "./chunk-RF77HQPP.js";
|
|
@@ -164,4 +164,4 @@ for (const Pin of [
|
|
|
164
164
|
VoiceAiPin
|
|
165
165
|
])
|
|
166
166
|
PinRegistry.register(Pin);
|
|
167
|
-
//# sourceMappingURL=chunk-
|
|
167
|
+
//# sourceMappingURL=chunk-GTBRQ3GY.js.map
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TouchBrightnessNotifier
|
|
3
|
+
} from "./chunk-IS47OL33.js";
|
|
4
|
+
import {
|
|
5
|
+
TouchTimelineNotifier
|
|
6
|
+
} from "./chunk-H2NCT6N6.js";
|
|
7
|
+
import {
|
|
8
|
+
TouchVolumeNotifier
|
|
9
|
+
} from "./chunk-ER53GINS.js";
|
|
1
10
|
import {
|
|
2
11
|
VolumeNotifier
|
|
3
12
|
} from "./chunk-M5OXRMCP.js";
|
|
13
|
+
import {
|
|
14
|
+
ChapterNotifier
|
|
15
|
+
} from "./chunk-ZZYJDBYZ.js";
|
|
16
|
+
import {
|
|
17
|
+
FastPlayNotifier
|
|
18
|
+
} from "./chunk-ANKFFAKU.js";
|
|
19
|
+
import {
|
|
20
|
+
FwdBwdNotifier
|
|
21
|
+
} from "./chunk-W63F46GZ.js";
|
|
4
22
|
import {
|
|
5
23
|
ObjectFitNotifier
|
|
6
24
|
} from "./chunk-UJYF3J3U.js";
|
|
@@ -17,14 +35,8 @@ import {
|
|
|
17
35
|
ScrubNotifier
|
|
18
36
|
} from "./chunk-VOWVVN4H.js";
|
|
19
37
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
TouchTimelineNotifier
|
|
24
|
-
} from "./chunk-H2NCT6N6.js";
|
|
25
|
-
import {
|
|
26
|
-
TouchVolumeNotifier
|
|
27
|
-
} from "./chunk-ER53GINS.js";
|
|
38
|
+
AirPlayNotifier
|
|
39
|
+
} from "./chunk-F3LP4GON.js";
|
|
28
40
|
import {
|
|
29
41
|
BrightnessNotifier
|
|
30
42
|
} from "./chunk-P3N6X43J.js";
|
|
@@ -40,18 +52,6 @@ import {
|
|
|
40
52
|
import {
|
|
41
53
|
CastNotifier
|
|
42
54
|
} from "./chunk-YUKTZPQX.js";
|
|
43
|
-
import {
|
|
44
|
-
ChapterNotifier
|
|
45
|
-
} from "./chunk-ZZYJDBYZ.js";
|
|
46
|
-
import {
|
|
47
|
-
FastPlayNotifier
|
|
48
|
-
} from "./chunk-ANKFFAKU.js";
|
|
49
|
-
import {
|
|
50
|
-
FwdBwdNotifier
|
|
51
|
-
} from "./chunk-W63F46GZ.js";
|
|
52
|
-
import {
|
|
53
|
-
AirPlayNotifier
|
|
54
|
-
} from "./chunk-F3LP4GON.js";
|
|
55
55
|
import {
|
|
56
56
|
ComponentRegistry
|
|
57
57
|
} from "./chunk-BQYL5CQH.js";
|
|
@@ -79,4 +79,4 @@ for (const Comp of [
|
|
|
79
79
|
AirPlayNotifier
|
|
80
80
|
])
|
|
81
81
|
ComponentRegistry.register(Comp);
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-I6VMT5OS.js.map
|
|
@@ -1,6 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
volumeLow
|
|
3
|
+
} from "./chunk-4G5GHO4D.js";
|
|
4
|
+
import {
|
|
5
|
+
volumeMuted
|
|
6
|
+
} from "./chunk-M7TD4COA.js";
|
|
7
|
+
import {
|
|
8
|
+
TouchBrightnessNotifier
|
|
9
|
+
} from "./chunk-IS47OL33.js";
|
|
10
|
+
import {
|
|
11
|
+
TouchTimelineNotifier
|
|
12
|
+
} from "./chunk-H2NCT6N6.js";
|
|
13
|
+
import {
|
|
14
|
+
TouchVolumeNotifier
|
|
15
|
+
} from "./chunk-ER53GINS.js";
|
|
1
16
|
import {
|
|
2
17
|
VolumeNotifier
|
|
3
18
|
} from "./chunk-M5OXRMCP.js";
|
|
19
|
+
import {
|
|
20
|
+
ChapterNotifier
|
|
21
|
+
} from "./chunk-ZZYJDBYZ.js";
|
|
22
|
+
import {
|
|
23
|
+
FastPlayNotifier
|
|
24
|
+
} from "./chunk-ANKFFAKU.js";
|
|
25
|
+
import {
|
|
26
|
+
FwdBwdNotifier
|
|
27
|
+
} from "./chunk-W63F46GZ.js";
|
|
4
28
|
import {
|
|
5
29
|
ObjectFitNotifier
|
|
6
30
|
} from "./chunk-UJYF3J3U.js";
|
|
@@ -17,14 +41,8 @@ import {
|
|
|
17
41
|
ScrubNotifier
|
|
18
42
|
} from "./chunk-VOWVVN4H.js";
|
|
19
43
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
TouchTimelineNotifier
|
|
24
|
-
} from "./chunk-H2NCT6N6.js";
|
|
25
|
-
import {
|
|
26
|
-
TouchVolumeNotifier
|
|
27
|
-
} from "./chunk-ER53GINS.js";
|
|
44
|
+
AirPlayNotifier
|
|
45
|
+
} from "./chunk-F3LP4GON.js";
|
|
28
46
|
import {
|
|
29
47
|
BrightnessNotifier
|
|
30
48
|
} from "./chunk-P3N6X43J.js";
|
|
@@ -40,24 +58,6 @@ import {
|
|
|
40
58
|
import {
|
|
41
59
|
CastNotifier
|
|
42
60
|
} from "./chunk-YUKTZPQX.js";
|
|
43
|
-
import {
|
|
44
|
-
ChapterNotifier
|
|
45
|
-
} from "./chunk-ZZYJDBYZ.js";
|
|
46
|
-
import {
|
|
47
|
-
FastPlayNotifier
|
|
48
|
-
} from "./chunk-ANKFFAKU.js";
|
|
49
|
-
import {
|
|
50
|
-
FwdBwdNotifier
|
|
51
|
-
} from "./chunk-W63F46GZ.js";
|
|
52
|
-
import {
|
|
53
|
-
volumeLow
|
|
54
|
-
} from "./chunk-4G5GHO4D.js";
|
|
55
|
-
import {
|
|
56
|
-
volumeMuted
|
|
57
|
-
} from "./chunk-M7TD4COA.js";
|
|
58
|
-
import {
|
|
59
|
-
AirPlayNotifier
|
|
60
|
-
} from "./chunk-F3LP4GON.js";
|
|
61
61
|
import {
|
|
62
62
|
BaseNotifier
|
|
63
63
|
} from "./chunk-3H3QVGC4.js";
|
|
@@ -354,7 +354,7 @@ import {
|
|
|
354
354
|
} from "./chunk-LYDARIOZ.js";
|
|
355
355
|
import {
|
|
356
356
|
CaptionsView
|
|
357
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-WOD7OVJK.js";
|
|
358
358
|
import {
|
|
359
359
|
ScreenLockButton
|
|
360
360
|
} from "./chunk-CJ2RGUO2.js";
|
|
@@ -494,4 +494,4 @@ __export(components_exports, {
|
|
|
494
494
|
export {
|
|
495
495
|
components_exports
|
|
496
496
|
};
|
|
497
|
-
//# sourceMappingURL=chunk-
|
|
497
|
+
//# sourceMappingURL=chunk-MWO5HHBX.js.map
|
|
@@ -76,7 +76,7 @@ var FramePlug = class extends BasePlug {
|
|
|
76
76
|
async capture(display = "", time = safeNum(this.media.state.currentTime)) {
|
|
77
77
|
if (!this.media.features.frameCapture) return;
|
|
78
78
|
this.ctlr.notify?.("capture");
|
|
79
|
-
const toast = this.ctlr.toast, tTxt = formatMediaTime({ time, format: "human", showMs: true }), fTxt = `video frame ${display === "monochrome" ? "in b&w " : ""}at ${tTxt}`, tId = toast?.loading(`Capturing ${fTxt}...`, { delay: parseCSSTime(this.settings.css.
|
|
79
|
+
const toast = this.ctlr.toast, tTxt = formatMediaTime({ time, format: "human", showMs: true }), fTxt = `video frame ${display === "monochrome" ? "in b&w " : ""}at ${tTxt}`, tId = toast?.loading(`Capturing ${fTxt}...`, { delay: parseCSSTime(this.settings.css.notifierAnimationTime), image: window.TMG_MEDIA_ALT_IMG_SRC, tag: `tmg-${this.media.settings.metadata.title ?? "Video"}fcpa${tTxt}${display}`, signal: this.signal, ...this.config.toast }), frame = await this.extract(display, time, false, 0, this.media.element), filename = `${this.media.settings.metadata.title ?? "Video"}_${display === "monochrome" ? `black&white_` : ""}at_${tTxt}.png`.replace(/[\/:*?"<>|\s]+/g, "_");
|
|
80
80
|
const Save = () => {
|
|
81
81
|
toast?.loading(tId, { render: `Saving ${fTxt}`, actions: false });
|
|
82
82
|
createEl("a", { href: frame.url, download: filename })?.click?.();
|
|
@@ -116,4 +116,4 @@ __publicField(FramePlug, "BUILD", FRAME_BUILD);
|
|
|
116
116
|
export {
|
|
117
117
|
FramePlug
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
119
|
+
//# sourceMappingURL=chunk-PBIOBKLQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ts/plugs/settings/frame/index.ts"],"sourcesContent":["import { BasePlug } from \"../../base\";\r\nimport type { FrameConfig } from \"./types\";\r\nimport { FRAME_BUILD } from \"./build\";\r\nimport { getDominantColor, getRGBBri, getRGBSat } from \"@utils/color\";\r\nimport { createEl } from \"@utils/dom\";\r\nimport { clamp, safeNum } from \"@utils/num\";\r\nimport { parseCSSTime } from \"@utils/str\";\r\nimport { formatMediaTime } from \"@utils/time\";\r\nimport { setTimeout } from \"@utils/fn\";\r\nimport { getMediaMin, getMediaMax } from \"@utils/time\";\r\nimport { NIL } from \"sia-reactor\";\r\nimport { withMeta } from \"sia-reactor/utils\";\r\n\r\nexport class FramePlug extends BasePlug<FrameConfig> {\r\n public static readonly plugName = \"frame\";\r\n public static readonly BUILD = FRAME_BUILD;\r\n public exportCanvas: HTMLCanvasElement = createEl(\"canvas\");\r\n public exportCtx: CanvasRenderingContext2D = this.exportCanvas.getContext(\"2d\", { alpha: false })!;\r\n\r\n public override wire(): void {\r\n // Ctlr Media Watchers\r\n this.media.watch(\"tech\", this.syncFeatures, { init: true, signal: this.signal });\r\n // ---- Config --------\r\n this.ctlr.config.watch(\"settings.frame.disabled\", this.syncFeatures, { signal: this.signal });\r\n // Post Wiring\r\n this.ctlr.learn(\"capture\", { fn: (e?: KeyboardEvent) => this.capture(e?.altKey ? \"monochrome\" : \"\") }, this.signal);\r\n this.ctlr.learn(\"timeStepFwd\", { fn: () => this.moveFrame(\"forwards\"), keyboard: { phase: \"keydown\" } }, this.signal);\r\n this.ctlr.learn(\"timeStepBwd\", { fn: () => this.moveFrame(\"backwards\"), keyboard: { phase: \"keydown\" } }, this.signal);\r\n super.wire();\r\n }\r\n\r\n public async extract(display: \"\" | \"monochrome\", time?: number, raw?: false, min?: number, video?: HTMLVideoElement): Promise<{ blob: Blob | null; url: string }>;\r\n public async extract(display: \"\" | \"monochrome\", time?: number, raw?: true, min?: number, video?: HTMLVideoElement): Promise<{ canvas: HTMLCanvasElement; context: CanvasRenderingContext2D }>;\r\n public async extract(display: string = \"\", time = safeNum(this.media.state.currentTime), raw = false, min = 0, video = this.media.pseudoElement as HTMLVideoElement): Promise<any> {\r\n if (!this.media.features.frameCapture) return raw ? { canvas: this.exportCanvas, context: (this.exportCtx.clearRect(0, 0, this.exportCanvas.width, this.exportCanvas.height), this.exportCtx) } : { blob: null, url: \"\" };\r\n if (video !== this.media.element) {\r\n if (this.ctlr.state.frameReadyPromise) await this.ctlr.state.frameReadyPromise; // wait for it to get set by last getter 5 lines below\r\n if (Math.abs(video.currentTime - time) > 0.01 || !video.readyState) {\r\n this.ctlr.state.frameReadyPromise ??= new Promise<null>((res, _, cb = () => (clearTimeout(t), res(null)), t?: any) => ([video.readyState ? \"timeupdate\" : \"loadeddata\", \"error\"].forEach((ev) => video.addEventListener(ev, cb, { once: true, signal: this.signal })), (t = setTimeout(cb, 15000, this.signal)))); // me sef no small, been burned before this\r\n video.currentTime = time; // small epsilon tolerance for video time comparison - 0.01(10ms)\r\n }\r\n this.ctlr.state.frameReadyPromise = await this.ctlr.state.frameReadyPromise;\r\n }\r\n (this.exportCanvas.width = video.videoWidth || min), (this.exportCanvas.height = video.videoHeight || min);\r\n this.exportCtx.filter = `${withMeta({ live: true }, () => this.settings.css.filter as string)}${display === \"monochrome\" ? \" grayscale(100%)\" : \"\"}`;\r\n this.exportCtx.drawImage(video, 0, 0, this.exportCanvas.width, this.exportCanvas.height);\r\n this.exportCtx.filter = \"none\";\r\n if (raw === true) return { canvas: this.exportCanvas, context: this.exportCtx };\r\n let blob: Blob | null | false | 0 = null;\r\n try {\r\n blob = (this.exportCanvas.width || this.exportCanvas.height) && (await new Promise<Blob | null>((res) => this.exportCanvas.toBlob(res)));\r\n } catch (err) {\r\n this.ctlr.log(err, \"error\"); // #LESS: error not worth notifying\r\n }\r\n return { blob: blob || null, url: blob ? URL.createObjectURL(blob) : \"\" };\r\n }\r\n\r\n public async capture(display: \"\" | \"monochrome\" = \"\", time = safeNum(this.media.state.currentTime)): Promise<void> {\r\n if (!this.media.features.frameCapture) return;\r\n this.ctlr.notify?.(\"capture\"); // #STALLING: necessary optimistic distraction\r\n const toast = this.ctlr.toast,\r\n tTxt = formatMediaTime({ time, format: \"human\", showMs: true }),\r\n fTxt = `video frame ${display === \"monochrome\" ? \"in b&w \" : \"\"}at ${tTxt}`,\r\n tId = toast?.loading(`Capturing ${fTxt}...`, { delay: parseCSSTime(this.settings.css.notifierAnimationTime), image: window.TMG_MEDIA_ALT_IMG_SRC, tag: `tmg-${this.media.settings.metadata.title ?? \"Video\"}fcpa${tTxt}${display}`, signal: this.signal, ...this.config.toast }) as string,\r\n frame = await this.extract(display, time, false, 0, this.media.element as HTMLVideoElement),\r\n filename = `${this.media.settings.metadata.title ?? \"Video\"}_${display === \"monochrome\" ? `black&white_` : \"\"}at_${tTxt}.png`.replace(/[\\/:*?\"<>|\\s]+/g, \"_\"); // system filename safe\r\n const Save = () => {\r\n toast?.loading(tId, { render: `Saving ${fTxt}`, actions: false });\r\n createEl(\"a\", { href: frame.url as string, download: filename })?.click?.();\r\n toast?.success(tId, { delay: 1000, render: `Saved ${fTxt}`, actions: false });\r\n };\r\n const Share = () => {\r\n toast?.loading(tId, { render: `Sharing ${fTxt}`, actions: false });\r\n navigator.share?.({ title: this.media.settings.metadata.title ?? \"Video\", text: `Captured ${fTxt}`, files: [new File([frame.blob!], filename, { type: frame.blob!.type })] }).then(\r\n () => toast?.success(tId, { render: `Shared ${fTxt}`, actions: false }),\r\n () => toast?.error(tId, { render: `Failed sharing ${fTxt}`, autoClose: this.config.toast.autoClose, actions: { Save } })\r\n ) || toast?.warn(tId, { delay: 1000, render: `Couldn't share ${fTxt}`, autoClose: this.config.toast.autoClose, actions: { Save } });\r\n };\r\n frame?.url ? toast?.success(tId, { render: `Captured ${fTxt}`, image: frame.url, actions: { Save, Share }, onClose: () => URL.revokeObjectURL(frame.url), autoClose: this.config.toast.autoClose }) : toast?.error(tId, { render: `Failed capturing ${fTxt}` });\r\n }\r\n\r\n public async getGoodTime({ time: t = safeNum(this.media.state.currentTime), searchDuration: s = this.config.main.searchDuration, saturation: sat = this.config.main.minSaturation, brightness: bri = this.config.main.minBrightness } = NIL): Promise<number | undefined> {\r\n const end = clamp(getMediaMin(this.media), t + s, getMediaMax(this.media)),\r\n seq = ++this.findSeq;\r\n for (; t <= end; t += 0.333) {\r\n if (seq !== this.findSeq) return;\r\n const rgb = await getDominantColor((await this.extract(\"\", t, true, 1)).canvas, \"rgb\", true);\r\n if (rgb && getRGBBri(rgb) > bri && getRGBSat(rgb) > sat) return t; // <= FIRST legit content frame\r\n }\r\n return;\r\n }\r\n private findSeq = 0;\r\n\r\n public async getMainColor(time?: number, poster = this.config.main.usePoster || !this.media.features.frameCapture ? this.media.state.poster : \"\", config?: Parameters<typeof this.getGoodTime>[0]): Promise<string | null> {\r\n return getDominantColor(poster ? poster : (await this.extract(\"\", time ?? (await this.getGoodTime(config)), true, 1)).canvas).catch((err) => (this.ctlr.log(err, \"error\"), null)); // #LESS: error not worth notifying\r\n }\r\n\r\n public moveFrame(dir: \"forwards\" | \"backwards\" = \"forwards\"): void {\r\n this.media.state.paused && this.ctlr.throttle(\"frameStepping\", () => (this.media.intent.currentTime = clamp(getMediaMin(this.media), Math.round(this.media.state.currentTime * this.config.fps) + (dir === \"backwards\" ? -1 : 1), Math.floor(getMediaMax(this.media) * this.config.fps)) / this.config.fps), Math.round(1000 / this.config.fps));\r\n }\r\n\r\n public syncFeatures(): void {\r\n this.media.tech.polyfill(\"frameCapture\", this.ctlr.isNativeEl && this.media.type === \"video\", this.config.disabled);\r\n }\r\n} // Video only\r\n\r\nexport type * from \"./types\";\r\nexport * from \"./build\";\r\n\r\ndeclare module \"@defs/registries\" {\r\n interface PlugRegistryMap {\r\n \"settings.frame\": typeof FramePlug;\r\n }\r\n}\r\n\r\ndeclare module \"@defs/config\" {\r\n interface Settings {\r\n frame: FrameConfig;\r\n }\r\n}\r\n\r\ndeclare module \"@defs/contract\" {\r\n interface MediaFeaturesExt {\r\n frameCapture: boolean;\r\n }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,WAAW;AACpB,SAAS,gBAAgB;AAElB,IAAM,YAAN,cAAwB,SAAsB;AAAA,EAA9C;AAAA;AAGL,wBAAO,gBAAkC,SAAS,QAAQ;AAC1D,wBAAO,aAAsC,KAAK,aAAa,WAAW,MAAM,EAAE,OAAO,MAAM,CAAC;AA0EhG,wBAAQ,WAAU;AAAA;AAAA,EAxEF,OAAa;AAE3B,SAAK,MAAM,MAAM,QAAQ,KAAK,cAAc,EAAE,MAAM,MAAM,QAAQ,KAAK,OAAO,CAAC;AAE/E,SAAK,KAAK,OAAO,MAAM,2BAA2B,KAAK,cAAc,EAAE,QAAQ,KAAK,OAAO,CAAC;AAE5F,SAAK,KAAK,MAAM,WAAW,EAAE,IAAI,CAAC,MAAsB,KAAK,QAAQ,GAAG,SAAS,eAAe,EAAE,EAAE,GAAG,KAAK,MAAM;AAClH,SAAK,KAAK,MAAM,eAAe,EAAE,IAAI,MAAM,KAAK,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AAK,OAAO,GAAG,KAAK,QAAQ,cAAc,KAAK,IAAI,KAAK,MAAM,YAAY,KAAK,KAAK,IAAI,KAAK,OAAO,GAAG,CAAC,IAAI,KAAK,OAAO,KAAM,KAAK,MAAM,MAAO,KAAK,OAAO,GAAG,CAAC;AAAA,EACjV;AAAA,EAEO,eAAqB;AAC1B,SAAK,MAAM,KAAK,SAAS,gBAAgB,KAAK,KAAK,cAAc,KAAK,MAAM,SAAS,SAAS,KAAK,OAAO,QAAQ;AAAA,EACpH;AACF;AA1FE,cADW,WACY,YAAW;AAClC,cAFW,WAEY,SAAQ;","names":[]}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
VIMEO_EVENTS,
|
|
3
|
-
VimeoTech
|
|
4
|
-
} from "./chunk-TH2NALUW.js";
|
|
5
1
|
import {
|
|
6
2
|
YouTubeTech
|
|
7
3
|
} from "./chunk-ZARKPAOD.js";
|
|
@@ -11,12 +7,16 @@ import {
|
|
|
11
7
|
import {
|
|
12
8
|
HLSTech
|
|
13
9
|
} from "./chunk-26JGVDTE.js";
|
|
10
|
+
import {
|
|
11
|
+
IMATech
|
|
12
|
+
} from "./chunk-JZPHDTNT.js";
|
|
14
13
|
import {
|
|
15
14
|
ShakaTech
|
|
16
15
|
} from "./chunk-GJHDYEK4.js";
|
|
17
16
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
VIMEO_EVENTS,
|
|
18
|
+
VimeoTech
|
|
19
|
+
} from "./chunk-TH2NALUW.js";
|
|
20
20
|
import {
|
|
21
21
|
HTML5Tech
|
|
22
22
|
} from "./chunk-PCYXFMFF.js";
|
|
@@ -46,4 +46,4 @@ __export(techs_exports, {
|
|
|
46
46
|
export {
|
|
47
47
|
techs_exports
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-PS5W73KC.js.map
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
} from "./chunk-LYDARIOZ.js";
|
|
112
112
|
import {
|
|
113
113
|
CaptionsView
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-WOD7OVJK.js";
|
|
115
115
|
import {
|
|
116
116
|
ScreenLockButton
|
|
117
117
|
} from "./chunk-CJ2RGUO2.js";
|
|
@@ -163,4 +163,4 @@ for (const Comp of [
|
|
|
163
163
|
ErrorPlaceholder
|
|
164
164
|
])
|
|
165
165
|
ComponentRegistry.register(Comp);
|
|
166
|
-
//# sourceMappingURL=chunk-
|
|
166
|
+
//# sourceMappingURL=chunk-R52VUQNX.js.map
|
|
@@ -90,7 +90,7 @@ var TimePlug = class extends BasePlug {
|
|
|
90
90
|
this.skipDuration = 0, this.skipNotifier = null;
|
|
91
91
|
overlay?.[!this.media.state.paused ? "hide" : "show"]();
|
|
92
92
|
},
|
|
93
|
-
parseCSSTime(this.settings.css.
|
|
93
|
+
parseCSSTime(this.settings.css.notifierAnimationTime),
|
|
94
94
|
this.signal
|
|
95
95
|
);
|
|
96
96
|
return void notifier?.setAttribute("data-skip", String(Math.trunc(this.skipDuration)));
|
|
@@ -143,4 +143,4 @@ __publicField(TimePlug, "BUILD", TIME_BUILD);
|
|
|
143
143
|
export {
|
|
144
144
|
TimePlug
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=chunk-
|
|
146
|
+
//# sourceMappingURL=chunk-UQJBCOZM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ts/plugs/settings/time/index.ts"],"sourcesContent":["import { BasePlug } from \"../../base\";\r\nimport type { TimeConfig } from \"./types\";\r\nimport { TIME_BUILD } from \"./build\";\r\nimport { IS_MOBILE } from \"@utils/env\";\r\nimport { setTimeout } from \"@utils/fn\";\r\nimport { parseIfPercent, clamp, safeNum } from \"@utils/num\";\r\nimport { parseCSSTime } from \"@utils/str\";\r\nimport { formatMediaTime, formatUITime } from \"@utils/time\";\r\nimport { NIL, type REvent } from \"sia-reactor\";\r\nimport { CtlrMedia } from \"@defs/contract\";\r\nimport { silence, transaction } from \"sia-reactor/modules\";\r\nimport { getMediaMax, getMediaMin, getMediaTime } from \"@utils/time\";\r\nimport { KeyMod } from \"../keys\";\r\nimport { CtlrConfig } from \"@defs/config\";\r\n\r\nexport class TimePlug extends BasePlug<TimeConfig> {\r\n public static readonly plugName = \"time\";\r\n public static readonly BUILD = TIME_BUILD;\r\n public skipDuration = 0;\r\n public skipNotifier?: HTMLElement | null = null;\r\n protected skipTimeoutId = -1;\r\n\r\n public override wire(): void {\r\n // Variables Assignment\r\n this.actualStart = this.config.start ?? 0;\r\n // Ctlr Media Setters\r\n this.media.set(\"intent.currentTime\", (v) => clamp(this.config.min, v, this.config.max), { signal: this.signal }); // #VALIDATOR: rules enforcement\r\n // --------- Watchers\r\n for (const p of [\"state.currentChapter\", \"settings.metadata.chapterInfo\"] as const) this.media.watch(p, this.syncFeatures, { init: p === \"state.currentChapter\", signal: this.signal });\r\n // ---- Config -------\r\n this.ctlr.config.watch(\"settings.time.start\", () => !this.writing && (this.actualStart = +this.config.start!), { signal: this.signal });\r\n // ---- Media Listeners\r\n this.media.on(\"status.loadedMetadata\", this.handleLoadedMetadataStatus, { signal: this.signal });\r\n this.media.on(\"state.currentTime\", this.handleCurrentTimeState, { init: this.ctlr.flags.wired, signal: this.signal });\r\n this.media.on(\"status.waiting\", this.handleWaitingStatus, { signal: this.signal });\r\n // ---- Config --------\r\n this.ctlr.config.on(\"settings.time.whitelist\", this.handleWhitelist, { init: true, signal: this.signal });\r\n // Post Wiring\r\n this.ctlr.learn(\"timeSkipFwd\", { fn: this.skipFwd, keyboard: { phase: \"keydown\" } }, this.signal);\r\n this.ctlr.learn(\"timeSkipBwd\", { fn: this.skipBwd, keyboard: { phase: \"keydown\" } }, this.signal);\r\n this.ctlr.learn(\"timeEnd\", { fn: () => (this.media.intent.currentTime = this.media.status.duration) }, this.signal);\r\n this.ctlr.learn(\"timePreviousChapter\", { fn: this.previousChapter, keyboard: { phase: \"keydown\" } }, this.signal);\r\n this.ctlr.learn(\"timeNextChapter\", { fn: this.nextChapter, keyboard: { phase: \"keydown\" } }, this.signal);\r\n this.ctlr.learn(\"timeMode\", { fn: this.toggleMode }, this.signal);\r\n this.ctlr.learn(\"timeFormat\", { fn: this.rotateFormat }, this.signal);\r\n for (const n of \"123456789\".split(\"\")) this.ctlr.learn(n, { fn: () => (this.media.intent.currentTime = getMediaTime(this.media, +n / 10)), system: true, label: `Time: Move to ${n}0%` }, this.signal);\r\n super.wire();\r\n }\r\n\r\n protected handleWhitelist({ value: paths = [] }: REvent<CtlrConfig, \"settings.time.whitelist\">): void {\r\n for (const path of paths) this.ctlr[(path.startsWith(\"media\") ? \"media\" : \"config\") as \"config\"].get(path as any, this.timeHook, { signal: this.signal });\r\n }\r\n\r\n protected handleLoadedMetadataStatus({ value }: REvent<CtlrMedia, \"status.loadedMetadata\">): void {\r\n if (value && this.config.start != null && !this.media.status.ads) silence(() => (this.media.intent.currentTime = this.actualStart));\r\n }\r\n\r\n protected handleCurrentTimeState({ value }: REvent<CtlrMedia, \"state.currentTime\">, curr = safeNum(value), { intent: int, state: s, status: st, settings: set } = this.media): void {\r\n if (st.ads) return;\r\n (curr < this.config.min || curr > this.config.max) && silence(() => (s.loop ? (int.currentTime = this.config.min) : (int.paused = true))); // \"Time Clamp Guard\" if transaction\r\n if (st.readyState && curr && this.ctlr.flags.wired) (this.writing = true), (this.config.start = curr > set.minTimePlayed && (st.isLive ? !st.ended : curr < this.actualEnd - set.minTimePlayed) ? curr : this.config.min), (this.writing = false);\r\n }\r\n private writing = false;\r\n\r\n protected handleWaitingStatus({ value }: REvent<CtlrMedia, \"status.waiting\">): void {\r\n IS_MOBILE && value && this.media.once(\"status.waiting\", () => this.ctlr.plug(\"settings.overlay\")?.[this.skipNotifier ? \"hide\" : \"delay\"](), { signal: this.signal });\r\n }\r\n\r\n public skip(duration: number, min = getMediaMin(this.media), max = getMediaMax(this.media), time = this.media.state.currentTime): void {\r\n const overlay = this.ctlr.plug(\"settings.overlay\"),\r\n notifier = this.ctlr.plug(\"settings.notifiers\")?.comp(\"fwdBwdNotifier\")?.[duration > 0 ? \"fwdDiv\" : \"bwdDiv\"];\r\n duration = min >= max ? 0 : safeNum(duration > 0 ? (max - time > duration ? duration : max - time) : duration < 0 ? (time - min > Math.abs(duration) ? duration : -(time - min)) : 0);\r\n duration && min < max && transaction(() => (this.media.intent.currentTime = time + duration), `Time skip of ${formatUITime(duration * 1000)}`); // Apprentice Slider syncs, no CSS hack\r\n const plug = this.ctlr.plug(\"settings.gesture\");\r\n if (plug?.state.skipping) {\r\n if (this.skipNotifier && notifier !== this.skipNotifier) (this.skipDuration = 0), this.skipNotifier.classList.remove(\"tmg-media-control-persist\");\r\n overlay?.show(), (this.skipNotifier = notifier)?.classList.add(\"tmg-media-control-persist\");\r\n (this.skipDuration += duration), clearTimeout(this.skipTimeoutId);\r\n this.skipTimeoutId = setTimeout(\r\n () => {\r\n plug.ceaseSkip(), notifier?.classList.remove(\"tmg-media-control-persist\");\r\n (this.skipDuration = 0), (this.skipNotifier = null);\r\n overlay?.[!this.media.state.paused ? \"hide\" : \"show\"]();\r\n },\r\n parseCSSTime(this.settings.css.notifierAnimationTime),\r\n this.signal\r\n );\r\n return void notifier?.setAttribute(\"data-skip\", String(Math.trunc(this.skipDuration)));\r\n } else this.skipNotifier?.classList.remove(\"tmg-media-control-persist\");\r\n notifier?.setAttribute(\"data-skip\", String(Math.trunc(Math.abs(duration))));\r\n }\r\n\r\n public skipFwd(_?: KeyboardEvent, mod?: KeyMod, offset?: number): void {\r\n this.ctlr.plug(\"settings.gesture\")?.ceaseSkip();\r\n this.skip(offset != null ? Math.abs(offset) : this.ctlr.plug(\"settings.keys\")?.getModded(\"timeSkip\", mod, this.config.skip) ?? this.config.skip);\r\n }\r\n public skipBwd(_?: KeyboardEvent, mod?: KeyMod, offset?: number): void {\r\n this.ctlr.plug(\"settings.gesture\")?.ceaseSkip();\r\n this.skip(offset != null ? -Math.abs(offset) : -(this.ctlr.plug(\"settings.keys\")?.getModded(\"timeSkip\", mod, this.config.skip) ?? this.config.skip));\r\n }\r\n\r\n public previousChapter(): void {\r\n this.media.features.previousChapter && silence(() => (this.media.intent.currentChapter = this.media.state.currentChapter - 1));\r\n }\r\n public nextChapter(): void {\r\n this.media.features.nextChapter && silence(() => (this.media.intent.currentChapter = this.media.state.currentChapter + 1));\r\n }\r\n\r\n public get nextMode(): TimeConfig[\"mode\"] {\r\n return this.config.mode === \"elapsed\" ? \"remaining\" : \"elapsed\";\r\n }\r\n public toggleMode(): void {\r\n this.config.mode = this.nextMode;\r\n }\r\n\r\n public get nextFormat(): TimeConfig[\"format\"] {\r\n return this.config.format === \"digital\" ? \"human\" : this.config.format === \"human\" ? \"human-long\" : \"digital\";\r\n }\r\n public rotateFormat(): void {\r\n this.config.format = this.nextFormat;\r\n }\r\n\r\n public actualStart = 0;\r\n public get actualEnd(): number {\r\n return this.config.end == null ? this.media.status.duration : this.config.end < 0 ? Math.max(0, this.media.status.duration + this.config.end) : this.config.end;\r\n }\r\n public toTimeText(time = this.media.state.currentTime, useMode = false, showMs = false, elapsed = !useMode || this.config.mode !== \"remaining\"): string {\r\n return formatMediaTime({ time: elapsed ? time : this.media.status.duration - time, format: this.config.format, elapsed, showMs });\r\n }\r\n public toTime(value?: any, duration = this.media.status.duration, autoCap = this.config.autoCap): any {\r\n return !duration || value == null ? value : value === \"\" ? undefined : Number(parseIfPercent(value, duration, autoCap));\r\n }\r\n public timeHook = (value?: any, { key = \"\" } = NIL) => this.toTime(value, undefined, /max$/i.test(key) ? 1 : undefined);\r\n\r\n public syncFeatures(): void {\r\n this.media.tech.polyfill(\"previousChapter\", this.media.state.currentChapter > 0);\r\n this.media.tech.polyfill(\"nextChapter\", this.media.state.currentChapter < this.media.settings.metadata.chapterInfo.length - 1);\r\n }\r\n}\r\n\r\ndeclare module \"@defs/registries\" {\r\n interface PlugRegistryMap {\r\n \"settings.time\": typeof TimePlug;\r\n }\r\n}\r\n\r\ndeclare module \"@defs/contract\" {\r\n interface MediaFeaturesExt {\r\n nextChapter: boolean;\r\n previousChapter: boolean;\r\n }\r\n}\r\n\r\ndeclare module \"@defs/config\" {\r\n interface Settings {\r\n time: TimeConfig;\r\n }\r\n}\r\n\r\nexport type * from \"./types\";\r\nexport * from \"./build\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,WAAwB;AAEjC,SAAS,SAAS,mBAAmB;AAK9B,IAAM,WAAN,cAAuB,SAAqB;AAAA,EAA5C;AAAA;AAGL,wBAAO,gBAAe;AACtB,wBAAO,gBAAoC;AAC3C,wBAAU,iBAAgB;AA0C1B,wBAAQ,WAAU;AA4DlB,wBAAO,eAAc;AAUrB,wBAAO,YAAW,CAAC,OAAa,EAAE,MAAM,GAAG,IAAI,QAAQ,KAAK,OAAO,OAAO,QAAW,QAAQ,KAAK,GAAG,IAAI,IAAI,MAAS;AAAA;AAAA,EA9GtG,OAAa;AAE3B,SAAK,cAAc,KAAK,OAAO,SAAS;AAExC,SAAK,MAAM,IAAI,sBAAsB,CAAC,MAAM,MAAM,KAAK,OAAO,KAAK,GAAG,KAAK,OAAO,GAAG,GAAG,EAAE,QAAQ,KAAK,OAAO,CAAC;AAE/G,eAAW,KAAK,CAAC,wBAAwB,+BAA+B,EAAY,MAAK,MAAM,MAAM,GAAG,KAAK,cAAc,EAAE,MAAM,MAAM,wBAAwB,QAAQ,KAAK,OAAO,CAAC;AAEtL,SAAK,KAAK,OAAO,MAAM,uBAAuB,MAAM,CAAC,KAAK,YAAY,KAAK,cAAc,CAAC,KAAK,OAAO,QAAS,EAAE,QAAQ,KAAK,OAAO,CAAC;AAEtI,SAAK,MAAM,GAAG,yBAAyB,KAAK,4BAA4B,EAAE,QAAQ,KAAK,OAAO,CAAC;AAC/F,SAAK,MAAM,GAAG,qBAAqB,KAAK,wBAAwB,EAAE,MAAM,KAAK,KAAK,MAAM,OAAO,QAAQ,KAAK,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AO,SAAS,aAAqB;AACtJ,WAAO,gBAAgB,EAAE,MAAM,UAAU,OAAO,KAAK,MAAM,OAAO,WAAW,MAAM,QAAQ,KAAK,OAAO,QAAQ,SAAS,OAAO,CAAC;AAAA,EAClI;AAAA,EACO,OAAO,OAAa,WAAW,KAAK,MAAM,OAAO,UAAU,UAAU,KAAK,OAAO,SAAc;AACpG,WAAO,CAAC,YAAY,SAAS,OAAO,QAAQ,UAAU,KAAK,SAAY,OAAO,eAAe,OAAO,UAAU,OAAO,CAAC;AAAA,EACxH;AAAA,EAGO,eAAqB;AAC1B,SAAK,MAAM,KAAK,SAAS,mBAAmB,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC/E,SAAK,MAAM,KAAK,SAAS,eAAe,KAAK,MAAM,MAAM,iBAAiB,KAAK,MAAM,SAAS,SAAS,YAAY,SAAS,CAAC;AAAA,EAC/H;AACF;AA1HE,cADW,UACY,YAAW;AAClC,cAFW,UAEY,SAAQ;","names":[]}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getSettingsPlaybackRateMenu
|
|
3
|
-
} from "./chunk-RKHRCEUH.js";
|
|
4
|
-
import {
|
|
5
|
-
getSettingsPosterMenu
|
|
6
|
-
} from "./chunk-UDEM436L.js";
|
|
7
|
-
import {
|
|
8
|
-
getSettingsSleepTimerMenu
|
|
9
|
-
} from "./chunk-QKHFIQIZ.js";
|
|
10
1
|
import {
|
|
11
2
|
getSettingsTimeMenu
|
|
12
3
|
} from "./chunk-OJA33N3I.js";
|
|
@@ -19,15 +10,6 @@ import {
|
|
|
19
10
|
import {
|
|
20
11
|
getSettingsVolumeMenu
|
|
21
12
|
} from "./chunk-YIN5YUCU.js";
|
|
22
|
-
import {
|
|
23
|
-
getSettingsGestureMenu
|
|
24
|
-
} from "./chunk-UJ5CQD5X.js";
|
|
25
|
-
import {
|
|
26
|
-
getSettingsKeysMenu
|
|
27
|
-
} from "./chunk-RFD47UOT.js";
|
|
28
|
-
import {
|
|
29
|
-
getSettingsLockedMenu
|
|
30
|
-
} from "./chunk-JKPCGB2M.js";
|
|
31
13
|
import {
|
|
32
14
|
getSettingsMetadataMenu
|
|
33
15
|
} from "./chunk-ZQIYVKGD.js";
|
|
@@ -44,11 +26,14 @@ import {
|
|
|
44
26
|
getSettingsPersistMenu
|
|
45
27
|
} from "./chunk-V4GZW73F.js";
|
|
46
28
|
import {
|
|
47
|
-
|
|
48
|
-
} from "./chunk-
|
|
29
|
+
getSettingsPlaybackRateMenu
|
|
30
|
+
} from "./chunk-RKHRCEUH.js";
|
|
49
31
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./chunk-
|
|
32
|
+
getSettingsPosterMenu
|
|
33
|
+
} from "./chunk-UDEM436L.js";
|
|
34
|
+
import {
|
|
35
|
+
getSettingsSleepTimerMenu
|
|
36
|
+
} from "./chunk-QKHFIQIZ.js";
|
|
52
37
|
import {
|
|
53
38
|
getSettingsBrightnessMenu
|
|
54
39
|
} from "./chunk-7JQRZTAZ.js";
|
|
@@ -64,18 +49,33 @@ import {
|
|
|
64
49
|
import {
|
|
65
50
|
getSettingsFrameMenu
|
|
66
51
|
} from "./chunk-BPMR44P7.js";
|
|
52
|
+
import {
|
|
53
|
+
getSettingsGestureMenu
|
|
54
|
+
} from "./chunk-UJ5CQD5X.js";
|
|
55
|
+
import {
|
|
56
|
+
getSettingsKeysMenu
|
|
57
|
+
} from "./chunk-RFD47UOT.js";
|
|
58
|
+
import {
|
|
59
|
+
getSettingsLockedMenu
|
|
60
|
+
} from "./chunk-JKPCGB2M.js";
|
|
67
61
|
import {
|
|
68
62
|
getActionsMenu
|
|
69
63
|
} from "./chunk-DLZKABQM.js";
|
|
70
|
-
import {
|
|
71
|
-
getSettingsToastsMenu
|
|
72
|
-
} from "./chunk-EVXB5KO5.js";
|
|
73
64
|
import {
|
|
74
65
|
getMainPlaylistMenu
|
|
75
66
|
} from "./chunk-JABKVDZQ.js";
|
|
76
67
|
import {
|
|
77
68
|
getSkeletonMenu
|
|
78
69
|
} from "./chunk-POPKX4QX.js";
|
|
70
|
+
import {
|
|
71
|
+
getSettingsAmbienceMenu
|
|
72
|
+
} from "./chunk-SCZFYRO2.js";
|
|
73
|
+
import {
|
|
74
|
+
getSettingsAutoMenu
|
|
75
|
+
} from "./chunk-Q4MMAKQX.js";
|
|
76
|
+
import {
|
|
77
|
+
getSettingsToastsMenu
|
|
78
|
+
} from "./chunk-EVXB5KO5.js";
|
|
79
79
|
import {
|
|
80
80
|
MenuRegistry
|
|
81
81
|
} from "./chunk-BQYL5CQH.js";
|
|
@@ -110,4 +110,4 @@ for (const [key, menu] of [
|
|
|
110
110
|
["settings.panel", getSettingspanelMenu]
|
|
111
111
|
])
|
|
112
112
|
MenuRegistry.register(key, menu);
|
|
113
|
-
//# sourceMappingURL=chunk-
|
|
113
|
+
//# sourceMappingURL=chunk-VM2YE6RX.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GestureBasePin
|
|
3
|
+
} from "./chunk-JGDSFHUR.js";
|
|
1
4
|
import {
|
|
2
5
|
GESTURE_BUILD,
|
|
3
6
|
GESTURE_TOUCH_BUILD,
|
|
4
7
|
GESTURE_WHEEL_BUILD
|
|
5
8
|
} from "./chunk-CR4RWWTO.js";
|
|
6
|
-
import {
|
|
7
|
-
GestureBasePin
|
|
8
|
-
} from "./chunk-JGDSFHUR.js";
|
|
9
9
|
import {
|
|
10
10
|
BasePlug
|
|
11
11
|
} from "./chunk-HIEET7JJ.js";
|
|
@@ -292,4 +292,4 @@ export {
|
|
|
292
292
|
GestureWheelPin,
|
|
293
293
|
GesturePlug
|
|
294
294
|
};
|
|
295
|
-
//# sourceMappingURL=chunk-
|
|
295
|
+
//# sourceMappingURL=chunk-W3C5T5DS.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
STYLE_PATHS
|
|
3
|
+
} from "./chunk-IFDIXQ75.js";
|
|
1
4
|
import {
|
|
2
5
|
formatVttLine,
|
|
3
6
|
parseVttText
|
|
4
7
|
} from "./chunk-L2T5HU22.js";
|
|
5
|
-
import {
|
|
6
|
-
STYLE_PATHS
|
|
7
|
-
} from "./chunk-IFDIXQ75.js";
|
|
8
8
|
import {
|
|
9
9
|
clamp,
|
|
10
10
|
parseIfPercent,
|
|
@@ -197,4 +197,4 @@ var sPfx = "--tmg-media-current-captions-";
|
|
|
197
197
|
export {
|
|
198
198
|
CaptionsView
|
|
199
199
|
};
|
|
200
|
-
//# sourceMappingURL=chunk-
|
|
200
|
+
//# sourceMappingURL=chunk-WOD7OVJK.js.map
|