seamless-vid-player 1.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 WebDevSimplified
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,132 @@
1
+ # seamless-vid-player 📺
2
+
3
+ A highly polished, seamless, and fully responsive video player component for Next.js and React. Built with precision to replicate the premium animations, layout, and UX of high-end video platforms.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/seamless-vid-player.svg)](https://www.npmjs.com/package/seamless-vid-player)
6
+
7
+ ## ✨ Features
8
+
9
+ - **Seamless UI**: Butter-smooth animations and transitions.
10
+ - **Adaptive Bitrate Streaming**: Built-in support for **HLS (`.m3u8`)** and **DASH (`.mpd`)** via `hls.js` and `dashjs`.
11
+ - **Dynamic Quality Selector**: Automatic resolution detection and manual quality switching menu.
12
+ - **Efficient Scrubbing**: High-performance timeline scrubbing using **WebVTT Sprite Sheets**.
13
+ - **Keyboard Mastery**: Standard shortcuts out of the box (Space, K, M, F, J, L, C, etc.).
14
+ - **Next.js & SSR Ready**: Fully optimized for Next.js 13/14 App Router.
15
+
16
+ ## 🚀 Installation
17
+
18
+ ```bash
19
+ npm install seamless-vid-player lucide-react hls.js dashjs
20
+ ```
21
+
22
+ ## 🛠 Usage
23
+
24
+ ### 1. Implementation
25
+ Import the global styles and the component into your page:
26
+
27
+ ```tsx
28
+ import 'seamless-vid-player/dist/index.css';
29
+ import { YouTubePlayer } from 'seamless-vid-player';
30
+
31
+ export default function VideoPage() {
32
+ return (
33
+ <div className="max-w-5xl mx-auto p-4">
34
+ <YouTubePlayer
35
+ src="https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8"
36
+ title="Video Demo"
37
+ eyebrow="Streaming Test"
38
+ description="Experience seamless playback with dynamic quality switching."
39
+ badges={["4K", "HLS"]}
40
+ defaultTheaterMode
41
+ />
42
+ </div>
43
+ );
44
+ }
45
+ ```
46
+
47
+ ### 2. Controlled Theater Mode
48
+
49
+ ```tsx
50
+ import { useState } from "react";
51
+ import "seamless-vid-player/dist/index.css";
52
+ import { YouTubePlayer } from "seamless-vid-player";
53
+
54
+ export default function VideoPage() {
55
+ const [isTheaterMode, setIsTheaterMode] = useState(false);
56
+
57
+ return (
58
+ <YouTubePlayer
59
+ src="/video.mp4"
60
+ title="Programmable Theater Mode"
61
+ theaterMode={isTheaterMode}
62
+ onTheaterModeChange={setIsTheaterMode}
63
+ />
64
+ );
65
+ }
66
+ ```
67
+
68
+ export default function VideoPage() {
69
+ return (
70
+ <div className="max-w-5xl mx-auto p-4">
71
+ <YouTubePlayer
72
+ src="https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8"
73
+ title="Big Buck Bunny - HLS Demo"
74
+ eyebrow="Streaming Test"
75
+ description="Experience seamless HLS playback with dynamic quality switching."
76
+ badges={["4K", "HLS", "Live"]}
77
+ thumbnailTrackSrc="/assets/thumbnails.vtt"
78
+ captionsSrc="/assets/subtitles.vtt"
79
+ />
80
+ </div>
81
+ );
82
+ }
83
+ ```
84
+
85
+ ---
86
+
87
+ ## 📖 Props
88
+
89
+ | Prop | Type | Required | Description |
90
+ | :--- | :--- | :---: | :--- |
91
+ | `src` | `string` | Yes | Path or URL to the video file (`.mp4`, `.m3u8`, `.mpd`). |
92
+ | `title` | `string` | Yes | The primary title of the video. |
93
+ | `description` | `string` | No | A longer description text shown below the title. |
94
+ | `eyebrow` | `string` | No | Small uppercase text shown above the title. |
95
+ | `badges` | `string[]` | No | Array of tags (e.g. `['HD', 'CC']`) shown next to the title. |
96
+ | `thumbnailTrackSrc`| `string` | No | Path to a `.vtt` file for sprite-sheet based hover previews. |
97
+ | `captionsSrc` | `string` | No | Path to a `.vtt` captions file. |
98
+ | `theaterMode` | `boolean` | No | Controlled theater mode state. When provided, the component becomes externally controlled. |
99
+ | `defaultTheaterMode` | `boolean` | No | Initial theater mode value for uncontrolled usage. |
100
+ | `onTheaterModeChange` | `(isTheaterMode: boolean) => void` | No | Fired whenever theater mode is toggled from keyboard or UI. |
101
+
102
+ ---
103
+
104
+ ## ⌨️ Keyboard Shortcuts
105
+
106
+ | Key | Action |
107
+ | :---: | :--- |
108
+ | `Space` / `K` | Play / Pause |
109
+ | `M` | Mute / Unmute |
110
+ | `F` | Toggle Fullscreen |
111
+ | `T` | Toggle Theater Mode |
112
+ | `C` | Toggle Captions |
113
+ | `J` / `Left Arrow` | Skip Backward 5s |
114
+ | `L` / `Right Arrow` | Skip Forward 5s |
115
+ | `I` | Open Miniplayer (PiP) |
116
+
117
+ ---
118
+
119
+ ## 🖼 Generating Thumbnails (WebVTT)
120
+
121
+ For efficient scrubbing, use the included `process-video.sh` script or your own `ffmpeg` command to generate a sprite sheet and VTT coordinates:
122
+
123
+ ```bash
124
+ # Example ffmpeg command for a 5x5 sprite grid
125
+ ffmpeg -i video.mp4 -vf "fps=1/10,scale=160:90,tile=5x5" sprite.jpg
126
+ ```
127
+
128
+ ---
129
+
130
+ ## 📜 License
131
+
132
+ MIT © [Your Name]
package/dist/index.css ADDED
@@ -0,0 +1,238 @@
1
+ /* components/styles.css */
2
+ :root {
3
+ --youtube-bg: #0f0f0f;
4
+ --youtube-panel: #000000;
5
+ --youtube-text: #f1f1f1;
6
+ --youtube-muted: #aaaaaa;
7
+ --youtube-accent: #ff0000;
8
+ --youtube-accent-soft: rgba(255, 0, 0, 0.2);
9
+ --youtube-track: rgba(255, 255, 255, 0.2);
10
+ }
11
+ .user-inactive {
12
+ cursor: none;
13
+ }
14
+ .user-inactive .video-controls-container {
15
+ opacity: 0;
16
+ }
17
+ .timeline-container {
18
+ touch-action: none;
19
+ }
20
+ .scrubbing .timeline-thumb {
21
+ --thumb-scale: 1;
22
+ }
23
+ .scrubbing .timeline-progress {
24
+ height: 5px;
25
+ }
26
+ .timeline-container:hover .timeline-thumb {
27
+ --thumb-scale: 1;
28
+ }
29
+ .timeline-container:hover .timeline-progress {
30
+ height: 5px;
31
+ }
32
+ .volume-slider {
33
+ --volume-percent: 100%;
34
+ width: 0;
35
+ transform-origin: left;
36
+ transform: scaleX(0);
37
+ opacity: 0;
38
+ -webkit-appearance: none;
39
+ -moz-appearance: none;
40
+ appearance: none;
41
+ border-radius: 999px;
42
+ background:
43
+ linear-gradient(
44
+ to right,
45
+ #ffffff 0%,
46
+ #ffffff var(--volume-percent),
47
+ rgba(255, 255, 255, 0.35) var(--volume-percent),
48
+ rgba(255, 255, 255, 0.35) 100%);
49
+ transition:
50
+ width 180ms ease,
51
+ transform 180ms ease,
52
+ opacity 180ms ease;
53
+ }
54
+ .volume-slider::-webkit-slider-runnable-track {
55
+ height: 4px;
56
+ border-radius: 999px;
57
+ background: transparent;
58
+ }
59
+ .volume-slider::-webkit-slider-thumb {
60
+ -webkit-appearance: none;
61
+ appearance: none;
62
+ width: 10px;
63
+ height: 10px;
64
+ border-radius: 50%;
65
+ border: 0;
66
+ background: #ffffff;
67
+ margin-top: -3px;
68
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
69
+ }
70
+ .volume-slider::-moz-range-track {
71
+ height: 4px;
72
+ border-radius: 999px;
73
+ background: rgba(255, 255, 255, 0.35);
74
+ }
75
+ .volume-slider::-moz-range-progress {
76
+ height: 4px;
77
+ border-radius: 999px;
78
+ background: #ffffff;
79
+ }
80
+ .volume-slider::-moz-range-thumb {
81
+ width: 10px;
82
+ height: 10px;
83
+ border-radius: 50%;
84
+ border: 0;
85
+ background: #ffffff;
86
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
87
+ }
88
+ .volume-container:hover .volume-slider,
89
+ .volume-slider:focus-visible {
90
+ width: 80px;
91
+ transform: scaleX(1);
92
+ opacity: 1;
93
+ }
94
+ .control-btn {
95
+ background: transparent;
96
+ transition:
97
+ background-color 180ms ease,
98
+ transform 180ms ease,
99
+ color 180ms ease,
100
+ opacity 180ms ease;
101
+ }
102
+ .control-icon {
103
+ transition: transform 180ms ease, opacity 180ms ease;
104
+ }
105
+ .control-btn:hover,
106
+ .control-btn:focus-visible {
107
+ background: rgba(255, 255, 255, 0.1);
108
+ }
109
+ .control-btn:hover .control-icon,
110
+ .control-btn:focus-visible .control-icon {
111
+ transform: scale(1.08) translateY(-1px);
112
+ }
113
+ .control-btn:active {
114
+ transform: scale(0.96);
115
+ }
116
+ .control-btn:active .control-icon {
117
+ transform: scale(0.96);
118
+ }
119
+ .settings-panel {
120
+ animation: settings-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
121
+ transform-origin: bottom right;
122
+ }
123
+ .settings-panel-root {
124
+ max-height: none;
125
+ }
126
+ .settings-slider {
127
+ display: flex;
128
+ align-items: flex-start;
129
+ transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
130
+ }
131
+ .settings-view {
132
+ width: calc(100% / 3);
133
+ min-width: calc(100% / 3);
134
+ padding: 0.35rem 0;
135
+ }
136
+ .settings-scroll {
137
+ max-height: min(28rem, calc(100vh - 10rem));
138
+ overflow-y: auto;
139
+ }
140
+ .settings-item,
141
+ .settings-option,
142
+ .settings-back {
143
+ width: 100%;
144
+ border: 0;
145
+ background: transparent;
146
+ color: inherit;
147
+ text-align: left;
148
+ }
149
+ .settings-item,
150
+ .settings-option {
151
+ display: flex;
152
+ align-items: center;
153
+ justify-content: space-between;
154
+ gap: 0.75rem;
155
+ padding: 0.8rem 1rem;
156
+ transition: background-color 160ms ease, color 160ms ease;
157
+ }
158
+ .settings-item:hover,
159
+ .settings-item:focus-visible,
160
+ .settings-option:hover,
161
+ .settings-option:focus-visible,
162
+ .settings-back:hover,
163
+ .settings-back:focus-visible {
164
+ background: rgba(255, 255, 255, 0.08);
165
+ }
166
+ .settings-item:disabled,
167
+ .settings-option:disabled {
168
+ opacity: 0.4;
169
+ cursor: not-allowed;
170
+ }
171
+ .settings-label {
172
+ font-size: 0.83rem;
173
+ color: rgba(255, 255, 255, 0.92);
174
+ }
175
+ .settings-value {
176
+ margin-top: 0.15rem;
177
+ font-size: 0.72rem;
178
+ color: rgba(255, 255, 255, 0.5);
179
+ }
180
+ .settings-back {
181
+ display: flex;
182
+ align-items: center;
183
+ gap: 0.55rem;
184
+ padding: 0.85rem 1rem 0.75rem;
185
+ font-size: 0.82rem;
186
+ color: rgba(255, 255, 255, 0.92);
187
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
188
+ transition: background-color 160ms ease;
189
+ }
190
+ .settings-option {
191
+ font-size: 0.82rem;
192
+ color: rgba(255, 255, 255, 0.8);
193
+ }
194
+ .settings-option-active {
195
+ background: rgba(255, 255, 255, 0.06);
196
+ color: #ffffff;
197
+ font-weight: 600;
198
+ }
199
+ .stats-panel {
200
+ animation: settings-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
201
+ }
202
+ .stats-row {
203
+ display: grid;
204
+ grid-template-columns: 3.8rem minmax(0, 1fr);
205
+ gap: 0.5rem;
206
+ align-items: center;
207
+ }
208
+ .stats-key {
209
+ color: rgba(255, 255, 255, 0.45);
210
+ white-space: nowrap;
211
+ }
212
+ .stats-value-wrap {
213
+ min-width: 0;
214
+ display: flex;
215
+ align-items: center;
216
+ gap: 0.5rem;
217
+ justify-content: space-between;
218
+ }
219
+ .stats-graph {
220
+ width: 6rem;
221
+ flex: 0 0 6rem;
222
+ }
223
+ .stats-graph > div {
224
+ height: 1.35rem;
225
+ padding: 0.1rem 0.2rem;
226
+ background: rgba(255, 255, 255, 0.05);
227
+ }
228
+ @keyframes settings-pop {
229
+ from {
230
+ opacity: 0;
231
+ transform: translateY(8px) scale(0.96);
232
+ }
233
+ to {
234
+ opacity: 1;
235
+ transform: translateY(0) scale(1);
236
+ }
237
+ }
238
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../components/styles.css"],"sourcesContent":[":root {\n --youtube-bg: #0f0f0f;\n --youtube-panel: #000000;\n --youtube-text: #f1f1f1;\n --youtube-muted: #aaaaaa;\n --youtube-accent: #ff0000;\n --youtube-accent-soft: rgba(255, 0, 0, 0.2);\n --youtube-track: rgba(255, 255, 255, 0.2);\n}\n\n.user-inactive {\n cursor: none;\n}\n\n.user-inactive .video-controls-container {\n opacity: 0;\n}\n\n.timeline-container {\n touch-action: none;\n}\n\n.scrubbing .timeline-thumb {\n --thumb-scale: 1;\n}\n\n.scrubbing .timeline-progress {\n height: 5px;\n}\n\n.timeline-container:hover .timeline-thumb {\n --thumb-scale: 1;\n}\n\n.timeline-container:hover .timeline-progress {\n height: 5px;\n}\n\n.volume-slider {\n --volume-percent: 100%;\n width: 0;\n transform-origin: left;\n transform: scaleX(0);\n opacity: 0;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: 999px;\n background: linear-gradient(\n to right,\n #ffffff 0%,\n #ffffff var(--volume-percent),\n rgba(255, 255, 255, 0.35) var(--volume-percent),\n rgba(255, 255, 255, 0.35) 100%\n );\n transition: width 180ms ease, transform 180ms ease, opacity 180ms ease;\n}\n\n.volume-slider::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 999px;\n background: transparent;\n}\n\n.volume-slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n border: 0;\n background: #ffffff;\n margin-top: -3px;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);\n}\n\n.volume-slider::-moz-range-track {\n height: 4px;\n border-radius: 999px;\n background: rgba(255, 255, 255, 0.35);\n}\n\n.volume-slider::-moz-range-progress {\n height: 4px;\n border-radius: 999px;\n background: #ffffff;\n}\n\n.volume-slider::-moz-range-thumb {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n border: 0;\n background: #ffffff;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);\n}\n\n.volume-container:hover .volume-slider,\n.volume-slider:focus-visible {\n width: 80px;\n transform: scaleX(1);\n opacity: 1;\n}\n\n.control-btn {\n background: transparent;\n transition:\n background-color 180ms ease,\n transform 180ms ease,\n color 180ms ease,\n opacity 180ms ease;\n}\n\n.control-icon {\n transition: transform 180ms ease, opacity 180ms ease;\n}\n\n.control-btn:hover,\n.control-btn:focus-visible {\n background: rgba(255, 255, 255, 0.1);\n}\n\n.control-btn:hover .control-icon,\n.control-btn:focus-visible .control-icon {\n transform: scale(1.08) translateY(-1px);\n}\n\n.control-btn:active {\n transform: scale(0.96);\n}\n\n.control-btn:active .control-icon {\n transform: scale(0.96);\n}\n\n.settings-panel {\n animation: settings-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);\n transform-origin: bottom right;\n}\n\n.settings-panel-root {\n max-height: none;\n}\n\n.settings-slider {\n display: flex;\n align-items: flex-start;\n transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n\n.settings-view {\n width: calc(100% / 3);\n min-width: calc(100% / 3);\n padding: 0.35rem 0;\n}\n\n.settings-scroll {\n max-height: min(28rem, calc(100vh - 10rem));\n overflow-y: auto;\n}\n\n.settings-item,\n.settings-option,\n.settings-back {\n width: 100%;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n}\n\n.settings-item,\n.settings-option {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.75rem;\n padding: 0.8rem 1rem;\n transition: background-color 160ms ease, color 160ms ease;\n}\n\n.settings-item:hover,\n.settings-item:focus-visible,\n.settings-option:hover,\n.settings-option:focus-visible,\n.settings-back:hover,\n.settings-back:focus-visible {\n background: rgba(255, 255, 255, 0.08);\n}\n\n.settings-item:disabled,\n.settings-option:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.settings-label {\n font-size: 0.83rem;\n color: rgba(255, 255, 255, 0.92);\n}\n\n.settings-value {\n margin-top: 0.15rem;\n font-size: 0.72rem;\n color: rgba(255, 255, 255, 0.5);\n}\n\n.settings-back {\n display: flex;\n align-items: center;\n gap: 0.55rem;\n padding: 0.85rem 1rem 0.75rem;\n font-size: 0.82rem;\n color: rgba(255, 255, 255, 0.92);\n border-bottom: 1px solid rgba(255, 255, 255, 0.08);\n transition: background-color 160ms ease;\n}\n\n.settings-option {\n font-size: 0.82rem;\n color: rgba(255, 255, 255, 0.8);\n}\n\n.settings-option-active {\n background: rgba(255, 255, 255, 0.06);\n color: #ffffff;\n font-weight: 600;\n}\n\n.stats-panel {\n animation: settings-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n\n.stats-row {\n display: grid;\n grid-template-columns: 3.8rem minmax(0, 1fr);\n gap: 0.5rem;\n align-items: center;\n}\n\n.stats-key {\n color: rgba(255, 255, 255, 0.45);\n white-space: nowrap;\n}\n\n.stats-value-wrap {\n min-width: 0;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n justify-content: space-between;\n}\n\n.stats-graph {\n width: 6rem;\n flex: 0 0 6rem;\n}\n\n.stats-graph > div {\n height: 1.35rem;\n padding: 0.1rem 0.2rem;\n background: rgba(255, 255, 255, 0.05);\n}\n\n@keyframes settings-pop {\n from {\n opacity: 0;\n transform: translateY(8px) scale(0.96);\n }\n\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n"],"mappings":";AAAA;AACE,gBAAc;AACd,mBAAiB;AACjB,kBAAgB;AAChB,mBAAiB;AACjB,oBAAkB;AAClB,yBAAuB,KAAK,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;AACvC,mBAAiB,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AACvC;AAEA,CAAC;AACC,UAAQ;AACV;AAEA,CAJC,cAIc,CAAC;AACd,WAAS;AACX;AAEA,CAAC;AACC,gBAAc;AAChB;AAEA,CAAC,UAAU,CAAC;AACV,iBAAe;AACjB;AAEA,CAJC,UAIU,CAAC;AACV,UAAQ;AACV;AAEA,CAZC,kBAYkB,OAAO,CARd;AASV,iBAAe;AACjB;AAEA,CAhBC,kBAgBkB,OAAO,CARd;AASV,UAAQ;AACV;AAEA,CAAC;AACC,oBAAkB;AAClB,SAAO;AACP,oBAAkB;AAClB,aAAW,OAAO;AAClB,WAAS;AACT,sBAAoB;AACpB,mBAAiB;AACZ,cAAY;AACjB,iBAAe;AACf;AAAA,IAAY;AAAA,MACV,GAAG,KAAK;AAAA,MACR,QAAQ,EAAE;AAAA,MACV,QAAQ,IAAI,iBAAiB;AAAA,MAC7B,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,IAAI,iBAAiB;AAAA,MAC/C,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM;AAE5B;AAAA,IAAY,MAAM,MAAM,IAAI;AAAA,IAAE,UAAU,MAAM,IAAI;AAAA,IAAE,QAAQ,MAAM;AACpE;AAEA,CApBC,aAoBa;AACZ,UAAQ;AACR,iBAAe;AACf,cAAY;AACd;AAEA,CA1BC,aA0Ba;AACZ,sBAAoB;AACpB,cAAY;AACZ,SAAO;AACP,UAAQ;AACR,iBAAe;AACf,UAAQ;AACR,cAAY;AACZ,cAAY;AAC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,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AAChC,SAAO;AACP,eAAa;AACf;AAEA,CAAC;AACC,aAAW,aAAa,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AAC5D;AAEA,CAAC;AACC,WAAS;AACT,yBAAuB,OAAO,OAAO,CAAC,EAAE;AACxC,OAAK;AACL,eAAa;AACf;AAEA,CAAC;AACC,SAAO,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AAC3B,eAAa;AACf;AAEA,CAAC;AACC,aAAW;AACX,WAAS;AACT,eAAa;AACb,OAAK;AACL,mBAAiB;AACnB;AAEA,CAAC;AACC,SAAO;AACP,QAAM,EAAE,EAAE;AACZ;AAEA,CALC,YAKY,EAAE;AACb,UAAQ;AACR,WAAS,OAAO;AAChB,cAAY,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AAClC;AAEA,WAhIa;AAiIX;AACE,aAAS;AACT,eAAW,WAAW,KAAK,MAAM;AACnC;AAEA;AACE,aAAS;AACT,eAAW,WAAW,GAAG,MAAM;AACjC;AACF;","names":[]}
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface PlayerProps {
4
+ src: string;
5
+ title: string;
6
+ description?: string;
7
+ eyebrow?: string;
8
+ badges?: string[];
9
+ captionsSrc?: string;
10
+ thumbnailTrackSrc?: string;
11
+ theaterMode?: boolean;
12
+ defaultTheaterMode?: boolean;
13
+ onTheaterModeChange?: (isTheaterMode: boolean) => void;
14
+ }
15
+ declare function YouTubePlayer({ src, title, description, eyebrow, badges, captionsSrc, thumbnailTrackSrc, theaterMode, defaultTheaterMode, onTheaterModeChange, }: PlayerProps): react_jsx_runtime.JSX.Element;
16
+
17
+ export { YouTubePlayer };
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface PlayerProps {
4
+ src: string;
5
+ title: string;
6
+ description?: string;
7
+ eyebrow?: string;
8
+ badges?: string[];
9
+ captionsSrc?: string;
10
+ thumbnailTrackSrc?: string;
11
+ theaterMode?: boolean;
12
+ defaultTheaterMode?: boolean;
13
+ onTheaterModeChange?: (isTheaterMode: boolean) => void;
14
+ }
15
+ declare function YouTubePlayer({ src, title, description, eyebrow, badges, captionsSrc, thumbnailTrackSrc, theaterMode, defaultTheaterMode, onTheaterModeChange, }: PlayerProps): react_jsx_runtime.JSX.Element;
16
+
17
+ export { YouTubePlayer };