@mux/mux-player 2.1.0 → 2.2.0-canary.0-4ad76a3
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/CHANGELOG.md +851 -0
- package/dist/cjs.json +1 -0
- package/dist/esm.json +1 -0
- package/dist/iife.json +1 -0
- package/dist/index.cjs.js +352 -256
- package/dist/index.mjs +78 -48
- package/dist/module.json +1 -0
- package/dist/mux-player.js +396 -300
- package/dist/mux-player.mjs +396 -300
- package/dist/themes/classic/index.cjs.js +8 -4
- package/dist/themes/classic/index.js +8 -4
- package/dist/themes/classic/index.mjs +8 -4
- package/dist/themes/gerwig/index.cjs.js +59 -29
- package/dist/themes/gerwig/index.js +59 -29
- package/dist/themes/gerwig/index.mjs +59 -29
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/template.d.ts +38 -0
- package/dist/types-ts3.4/template.d.ts +38 -0
- package/package.json +5 -6
- package/LICENSE +0 -9
|
@@ -125,7 +125,8 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
:host(:not([audio])) media-time-range {
|
|
128
|
-
|
|
128
|
+
/* Adding px is required here for calc() */
|
|
129
|
+
--media-range-padding: 0px;
|
|
129
130
|
background: transparent;
|
|
130
131
|
z-index: 10;
|
|
131
132
|
height: 10px;
|
|
@@ -260,6 +261,9 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
260
261
|
}
|
|
261
262
|
|
|
262
263
|
media-volume-range {
|
|
264
|
+
/* Adding px is required here for calc() */
|
|
265
|
+
--media-range-padding-left: 10px;
|
|
266
|
+
--media-range-padding-right: 10px;
|
|
263
267
|
width: min(100%, 100px);
|
|
264
268
|
}
|
|
265
269
|
|
|
@@ -373,7 +377,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
373
377
|
<path d="M2.25 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/>
|
|
374
378
|
</svg>
|
|
375
379
|
</media-rendition-button>
|
|
376
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
380
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
377
381
|
<div slot="header">Quality</div>
|
|
378
382
|
</media-rendition-listbox>
|
|
379
383
|
</media-rendition-selectmenu>
|
|
@@ -387,7 +391,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
387
391
|
<path d="M7.25 9.75a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 .75-.75Zm3-3a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-1.5 0v-9a.75.75 0 0 1 .75-.75Zm3 2a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Zm3-1a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0v-7a.75.75 0 0 1 .75-.75Z"/>
|
|
388
392
|
</svg>
|
|
389
393
|
</media-audio-track-button>
|
|
390
|
-
<media-audio-track-listbox slot="listbox" part="bottom audio-track listbox">
|
|
394
|
+
<media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
|
|
391
395
|
<div slot="header">Audio</div>
|
|
392
396
|
</media-audio-track-listbox>
|
|
393
397
|
</media-audio-track-selectmenu>
|
|
@@ -403,7 +407,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
403
407
|
<path d="M22.832 5.68a2.58 2.58 0 0 0-2.3-2.5c-1.81-.12-4.67-.18-7.53-.18-2.86 0-5.72.06-7.53.18a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c1.81.12 4.67.18 7.53.18 2.86 0 5.72-.06 7.53-.18a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.137-.21-8.283 0-12.42a1.11 1.11 0 0 1 .91-1.11c1.67-.11 4.43-.18 7.43-.18s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.137.21 8.283 0 12.42ZM10.843 14a1.55 1.55 0 0 1-.76.18 1.57 1.57 0 0 1-.71-.18 1.69 1.69 0 0 1-.57-.42 2.099 2.099 0 0 1-.38-.58 2.47 2.47 0 0 1 0-1.64 2 2 0 0 1 .39-.66 1.73 1.73 0 0 1 .58-.42c.23-.103.479-.158.73-.16.241-.004.48.044.7.14.199.088.373.222.51.39l1.08-.89a2.179 2.179 0 0 0-.47-.44 2.81 2.81 0 0 0-.54-.32 2.91 2.91 0 0 0-.58-.15 2.71 2.71 0 0 0-.56 0 4.08 4.08 0 0 0-1.38.15 3.27 3.27 0 0 0-1.09.67 3.14 3.14 0 0 0-.71 1.06 3.62 3.62 0 0 0-.26 1.39 3.57 3.57 0 0 0 .26 1.38 3 3 0 0 0 .71 1.06c.316.293.687.52 1.09.67.443.16.91.238 1.38.23a3.2 3.2 0 0 0 1.28-.27c.401-.183.747-.47 1-.83l-1.17-.88a1.42 1.42 0 0 1-.53.52Zm6.62 0a1.58 1.58 0 0 1-.76.18 1.54 1.54 0 0 1-.7-.18 1.69 1.69 0 0 1-.57-.42 2.12 2.12 0 0 1-.43-.58 2.29 2.29 0 0 1 .39-2.3 1.84 1.84 0 0 1 1.32-.58c.241-.003.48.045.7.14.199.088.373.222.51.39l1.08-.92a2.43 2.43 0 0 0-.47-.44 3.22 3.22 0 0 0-.53-.29 2.999 2.999 0 0 0-.57-.15 2.87 2.87 0 0 0-.57 0 4.06 4.06 0 0 0-1.36.15 3.17 3.17 0 0 0-1.09.67 3 3 0 0 0-.72 1.06 3.62 3.62 0 0 0-.25 1.39 3.57 3.57 0 0 0 .25 1.38c.16.402.405.764.72 1.06a3.17 3.17 0 0 0 1.09.67c.44.16.904.237 1.37.23.441 0 .877-.092 1.28-.27a2.45 2.45 0 0 0 1-.83l-1.15-.85a1.49 1.49 0 0 1-.54.49Z"/>
|
|
404
408
|
</svg>
|
|
405
409
|
</media-captions-button>
|
|
406
|
-
<media-captions-listbox slot="listbox" part="bottom captions listbox"></media-captions-listbox>
|
|
410
|
+
<media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox"></media-captions-listbox>
|
|
407
411
|
</media-captions-selectmenu>
|
|
408
412
|
</template>
|
|
409
413
|
|
|
@@ -125,7 +125,8 @@ var mediaThemeClassic = (() => {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
:host(:not([audio])) media-time-range {
|
|
128
|
-
|
|
128
|
+
/* Adding px is required here for calc() */
|
|
129
|
+
--media-range-padding: 0px;
|
|
129
130
|
background: transparent;
|
|
130
131
|
z-index: 10;
|
|
131
132
|
height: 10px;
|
|
@@ -260,6 +261,9 @@ var mediaThemeClassic = (() => {
|
|
|
260
261
|
}
|
|
261
262
|
|
|
262
263
|
media-volume-range {
|
|
264
|
+
/* Adding px is required here for calc() */
|
|
265
|
+
--media-range-padding-left: 10px;
|
|
266
|
+
--media-range-padding-right: 10px;
|
|
263
267
|
width: min(100%, 100px);
|
|
264
268
|
}
|
|
265
269
|
|
|
@@ -373,7 +377,7 @@ var mediaThemeClassic = (() => {
|
|
|
373
377
|
<path d="M2.25 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/>
|
|
374
378
|
</svg>
|
|
375
379
|
</media-rendition-button>
|
|
376
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
380
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
377
381
|
<div slot="header">Quality</div>
|
|
378
382
|
</media-rendition-listbox>
|
|
379
383
|
</media-rendition-selectmenu>
|
|
@@ -387,7 +391,7 @@ var mediaThemeClassic = (() => {
|
|
|
387
391
|
<path d="M7.25 9.75a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 .75-.75Zm3-3a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-1.5 0v-9a.75.75 0 0 1 .75-.75Zm3 2a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Zm3-1a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0v-7a.75.75 0 0 1 .75-.75Z"/>
|
|
388
392
|
</svg>
|
|
389
393
|
</media-audio-track-button>
|
|
390
|
-
<media-audio-track-listbox slot="listbox" part="bottom audio-track listbox">
|
|
394
|
+
<media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
|
|
391
395
|
<div slot="header">Audio</div>
|
|
392
396
|
</media-audio-track-listbox>
|
|
393
397
|
</media-audio-track-selectmenu>
|
|
@@ -403,7 +407,7 @@ var mediaThemeClassic = (() => {
|
|
|
403
407
|
<path d="M22.832 5.68a2.58 2.58 0 0 0-2.3-2.5c-1.81-.12-4.67-.18-7.53-.18-2.86 0-5.72.06-7.53.18a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c1.81.12 4.67.18 7.53.18 2.86 0 5.72-.06 7.53-.18a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.137-.21-8.283 0-12.42a1.11 1.11 0 0 1 .91-1.11c1.67-.11 4.43-.18 7.43-.18s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.137.21 8.283 0 12.42ZM10.843 14a1.55 1.55 0 0 1-.76.18 1.57 1.57 0 0 1-.71-.18 1.69 1.69 0 0 1-.57-.42 2.099 2.099 0 0 1-.38-.58 2.47 2.47 0 0 1 0-1.64 2 2 0 0 1 .39-.66 1.73 1.73 0 0 1 .58-.42c.23-.103.479-.158.73-.16.241-.004.48.044.7.14.199.088.373.222.51.39l1.08-.89a2.179 2.179 0 0 0-.47-.44 2.81 2.81 0 0 0-.54-.32 2.91 2.91 0 0 0-.58-.15 2.71 2.71 0 0 0-.56 0 4.08 4.08 0 0 0-1.38.15 3.27 3.27 0 0 0-1.09.67 3.14 3.14 0 0 0-.71 1.06 3.62 3.62 0 0 0-.26 1.39 3.57 3.57 0 0 0 .26 1.38 3 3 0 0 0 .71 1.06c.316.293.687.52 1.09.67.443.16.91.238 1.38.23a3.2 3.2 0 0 0 1.28-.27c.401-.183.747-.47 1-.83l-1.17-.88a1.42 1.42 0 0 1-.53.52Zm6.62 0a1.58 1.58 0 0 1-.76.18 1.54 1.54 0 0 1-.7-.18 1.69 1.69 0 0 1-.57-.42 2.12 2.12 0 0 1-.43-.58 2.29 2.29 0 0 1 .39-2.3 1.84 1.84 0 0 1 1.32-.58c.241-.003.48.045.7.14.199.088.373.222.51.39l1.08-.92a2.43 2.43 0 0 0-.47-.44 3.22 3.22 0 0 0-.53-.29 2.999 2.999 0 0 0-.57-.15 2.87 2.87 0 0 0-.57 0 4.06 4.06 0 0 0-1.36.15 3.17 3.17 0 0 0-1.09.67 3 3 0 0 0-.72 1.06 3.62 3.62 0 0 0-.25 1.39 3.57 3.57 0 0 0 .25 1.38c.16.402.405.764.72 1.06a3.17 3.17 0 0 0 1.09.67c.44.16.904.237 1.37.23.441 0 .877-.092 1.28-.27a2.45 2.45 0 0 0 1-.83l-1.15-.85a1.49 1.49 0 0 1-.54.49Z"/>
|
|
404
408
|
</svg>
|
|
405
409
|
</media-captions-button>
|
|
406
|
-
<media-captions-listbox slot="listbox" part="bottom captions listbox"></media-captions-listbox>
|
|
410
|
+
<media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox"></media-captions-listbox>
|
|
407
411
|
</media-captions-selectmenu>
|
|
408
412
|
</template>
|
|
409
413
|
|
|
@@ -100,7 +100,8 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
:host(:not([audio])) media-time-range {
|
|
103
|
-
|
|
103
|
+
/* Adding px is required here for calc() */
|
|
104
|
+
--media-range-padding: 0px;
|
|
104
105
|
background: transparent;
|
|
105
106
|
z-index: 10;
|
|
106
107
|
height: 10px;
|
|
@@ -235,6 +236,9 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
media-volume-range {
|
|
239
|
+
/* Adding px is required here for calc() */
|
|
240
|
+
--media-range-padding-left: 10px;
|
|
241
|
+
--media-range-padding-right: 10px;
|
|
238
242
|
width: min(100%, 100px);
|
|
239
243
|
}
|
|
240
244
|
|
|
@@ -348,7 +352,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
348
352
|
<path d="M2.25 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/>
|
|
349
353
|
</svg>
|
|
350
354
|
</media-rendition-button>
|
|
351
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
355
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
352
356
|
<div slot="header">Quality</div>
|
|
353
357
|
</media-rendition-listbox>
|
|
354
358
|
</media-rendition-selectmenu>
|
|
@@ -362,7 +366,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
362
366
|
<path d="M7.25 9.75a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 .75-.75Zm3-3a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-1.5 0v-9a.75.75 0 0 1 .75-.75Zm3 2a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Zm3-1a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0v-7a.75.75 0 0 1 .75-.75Z"/>
|
|
363
367
|
</svg>
|
|
364
368
|
</media-audio-track-button>
|
|
365
|
-
<media-audio-track-listbox slot="listbox" part="bottom audio-track listbox">
|
|
369
|
+
<media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
|
|
366
370
|
<div slot="header">Audio</div>
|
|
367
371
|
</media-audio-track-listbox>
|
|
368
372
|
</media-audio-track-selectmenu>
|
|
@@ -378,7 +382,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
378
382
|
<path d="M22.832 5.68a2.58 2.58 0 0 0-2.3-2.5c-1.81-.12-4.67-.18-7.53-.18-2.86 0-5.72.06-7.53.18a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c1.81.12 4.67.18 7.53.18 2.86 0 5.72-.06 7.53-.18a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.137-.21-8.283 0-12.42a1.11 1.11 0 0 1 .91-1.11c1.67-.11 4.43-.18 7.43-.18s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.137.21 8.283 0 12.42ZM10.843 14a1.55 1.55 0 0 1-.76.18 1.57 1.57 0 0 1-.71-.18 1.69 1.69 0 0 1-.57-.42 2.099 2.099 0 0 1-.38-.58 2.47 2.47 0 0 1 0-1.64 2 2 0 0 1 .39-.66 1.73 1.73 0 0 1 .58-.42c.23-.103.479-.158.73-.16.241-.004.48.044.7.14.199.088.373.222.51.39l1.08-.89a2.179 2.179 0 0 0-.47-.44 2.81 2.81 0 0 0-.54-.32 2.91 2.91 0 0 0-.58-.15 2.71 2.71 0 0 0-.56 0 4.08 4.08 0 0 0-1.38.15 3.27 3.27 0 0 0-1.09.67 3.14 3.14 0 0 0-.71 1.06 3.62 3.62 0 0 0-.26 1.39 3.57 3.57 0 0 0 .26 1.38 3 3 0 0 0 .71 1.06c.316.293.687.52 1.09.67.443.16.91.238 1.38.23a3.2 3.2 0 0 0 1.28-.27c.401-.183.747-.47 1-.83l-1.17-.88a1.42 1.42 0 0 1-.53.52Zm6.62 0a1.58 1.58 0 0 1-.76.18 1.54 1.54 0 0 1-.7-.18 1.69 1.69 0 0 1-.57-.42 2.12 2.12 0 0 1-.43-.58 2.29 2.29 0 0 1 .39-2.3 1.84 1.84 0 0 1 1.32-.58c.241-.003.48.045.7.14.199.088.373.222.51.39l1.08-.92a2.43 2.43 0 0 0-.47-.44 3.22 3.22 0 0 0-.53-.29 2.999 2.999 0 0 0-.57-.15 2.87 2.87 0 0 0-.57 0 4.06 4.06 0 0 0-1.36.15 3.17 3.17 0 0 0-1.09.67 3 3 0 0 0-.72 1.06 3.62 3.62 0 0 0-.25 1.39 3.57 3.57 0 0 0 .25 1.38c.16.402.405.764.72 1.06a3.17 3.17 0 0 0 1.09.67c.44.16.904.237 1.37.23.441 0 .877-.092 1.28-.27a2.45 2.45 0 0 0 1-.83l-1.15-.85a1.49 1.49 0 0 1-.54.49Z"/>
|
|
379
383
|
</svg>
|
|
380
384
|
</media-captions-button>
|
|
381
|
-
<media-captions-listbox slot="listbox" part="bottom captions listbox"></media-captions-listbox>
|
|
385
|
+
<media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox"></media-captions-listbox>
|
|
382
386
|
</media-captions-selectmenu>
|
|
383
387
|
</template>
|
|
384
388
|
|
|
@@ -135,9 +135,10 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
135
135
|
var(--_accent-color) 25%,
|
|
136
136
|
var(--_accent-color)
|
|
137
137
|
);
|
|
138
|
-
--media-range-thumb-width:
|
|
139
|
-
--media-range-thumb-height:
|
|
140
|
-
--media-range-thumb-
|
|
138
|
+
--media-range-thumb-width: 12px;
|
|
139
|
+
--media-range-thumb-height: 12px;
|
|
140
|
+
--media-range-thumb-transform: scale(0);
|
|
141
|
+
--media-range-thumb-transition: transform 0.3s;
|
|
141
142
|
--media-range-thumb-opacity: 1;
|
|
142
143
|
--media-preview-thumbnail-background: var(--_primary-color);
|
|
143
144
|
--media-preview-thumbnail-border: 5px solid var(--_primary-color);
|
|
@@ -160,8 +161,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
media-time-range:hover {
|
|
163
|
-
--media-range-thumb-
|
|
164
|
-
--media-range-thumb-height: 12px;
|
|
164
|
+
--media-range-thumb-transform: scale(1);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
media-time-range::part(preview-box)::after {
|
|
@@ -177,32 +177,33 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
177
177
|
transform: translate(-50%, -10px);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
[part~='listbox'] {
|
|
181
|
+
border-radius: 2px;
|
|
182
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
183
|
+
bottom: calc(100% + 16px);
|
|
184
|
+
padding: 2.5px 10px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[part~='listbox']::part(indicator) {
|
|
181
188
|
fill: var(--_accent-color);
|
|
182
189
|
}
|
|
183
190
|
|
|
184
|
-
|
|
191
|
+
[part~='listbox']::part(option) {
|
|
192
|
+
box-sizing: border-box;
|
|
185
193
|
display: flex;
|
|
186
194
|
align-items: center;
|
|
187
|
-
padding:
|
|
195
|
+
padding: 6px 10px;
|
|
196
|
+
min-height: 34px;
|
|
188
197
|
}
|
|
189
198
|
|
|
190
|
-
|
|
199
|
+
[part~='listbox']::part(option-selected) {
|
|
191
200
|
font-weight: 700;
|
|
192
201
|
}
|
|
193
202
|
|
|
194
|
-
media-captions-listbox,
|
|
195
|
-
media-rendition-listbox,
|
|
196
|
-
media-audio-track-listbox {
|
|
197
|
-
border-radius: 2px;
|
|
198
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
199
|
-
bottom: calc(100% + 16px);
|
|
200
|
-
padding: 10px;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
203
|
media-captions-selectmenu,
|
|
204
204
|
media-rendition-selectmenu,
|
|
205
|
-
media-audio-track-selectmenu
|
|
205
|
+
media-audio-track-selectmenu,
|
|
206
|
+
media-playback-rate-listbox[part~='listbox'] {
|
|
206
207
|
--media-listbox-background: var(--_primary-color);
|
|
207
208
|
--media-option-selected-background: transparent;
|
|
208
209
|
--media-option-hover-background: transparent;
|
|
@@ -216,8 +217,29 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
216
217
|
--media-control-height: 16px;
|
|
217
218
|
}
|
|
218
219
|
|
|
220
|
+
media-playback-rate-button {
|
|
221
|
+
--media-control-padding: 6px 3px;
|
|
222
|
+
min-width: 4.4ch;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
media-playback-rate-listbox[part~='listbox'] {
|
|
226
|
+
--media-listbox-layout: row;
|
|
227
|
+
--media-option-selected-background: var(--_accent-color);
|
|
228
|
+
margin-right: 6px;
|
|
229
|
+
padding: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
media-playback-rate-listbox[part~='listbox']::part(option) {
|
|
233
|
+
padding: 6px 4px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
media-playback-rate-listbox[part~='listbox']::part(option-selected) {
|
|
237
|
+
color: #fff;
|
|
238
|
+
}
|
|
239
|
+
|
|
219
240
|
:host(:not([audio])) media-time-range {
|
|
220
|
-
|
|
241
|
+
/* Adding px is required here for calc() */
|
|
242
|
+
--media-range-padding: 0px;
|
|
221
243
|
background: transparent;
|
|
222
244
|
z-index: 10;
|
|
223
245
|
height: 10px;
|
|
@@ -423,6 +445,8 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
423
445
|
|
|
424
446
|
media-volume-range {
|
|
425
447
|
width: min(100%, 100px);
|
|
448
|
+
--media-range-padding-left: 10px;
|
|
449
|
+
--media-range-padding-right: 10px;
|
|
426
450
|
--media-range-thumb-width: 12px;
|
|
427
451
|
--media-range-thumb-height: 12px;
|
|
428
452
|
--media-range-thumb-background: radial-gradient(
|
|
@@ -663,7 +687,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
663
687
|
/>
|
|
664
688
|
</svg>
|
|
665
689
|
</media-captions-button>
|
|
666
|
-
<media-captions-listbox slot="listbox" part="bottom captions listbox">
|
|
690
|
+
<media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox">
|
|
667
691
|
<div slot="select-indicator">
|
|
668
692
|
<style>
|
|
669
693
|
.listbox-indicator {
|
|
@@ -757,14 +781,20 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
757
781
|
</media-live-button>
|
|
758
782
|
</template>
|
|
759
783
|
|
|
760
|
-
<template partial="
|
|
761
|
-
<media-playback-rate-
|
|
784
|
+
<template partial="PlaybackRateSelect">
|
|
785
|
+
<media-playback-rate-selectmenu
|
|
762
786
|
rates="{{playbackrates}}"
|
|
763
|
-
part="bottom playback-rate
|
|
787
|
+
part="bottom playback-rate selectmenu"
|
|
764
788
|
disabled="{{disabled}}"
|
|
765
789
|
aria-disabled="{{disabled}}"
|
|
766
790
|
>
|
|
767
|
-
|
|
791
|
+
<media-playback-rate-button slot="button" part="bottom playback-rate button"></media-playback-rate-button>
|
|
792
|
+
<media-playback-rate-listbox
|
|
793
|
+
slot="listbox"
|
|
794
|
+
exportparts="option"
|
|
795
|
+
part="bottom playback-rate listbox"
|
|
796
|
+
></media-playback-rate-listbox>
|
|
797
|
+
</media-playback-rate-selectmenu>
|
|
768
798
|
</template>
|
|
769
799
|
|
|
770
800
|
<template partial="VolumeRange">
|
|
@@ -803,7 +833,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
803
833
|
/>
|
|
804
834
|
</svg>
|
|
805
835
|
</media-audio-track-button>
|
|
806
|
-
<media-audio-track-listbox slot="listbox" part="bottom audio-track listbox">
|
|
836
|
+
<media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
|
|
807
837
|
<div slot="select-indicator">
|
|
808
838
|
<style>
|
|
809
839
|
.listbox-indicator {
|
|
@@ -838,7 +868,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
838
868
|
/>
|
|
839
869
|
</svg>
|
|
840
870
|
</media-rendition-button>
|
|
841
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
871
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
842
872
|
<div slot="select-indicator">
|
|
843
873
|
<style>
|
|
844
874
|
.listbox-indicator {
|
|
@@ -935,7 +965,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
935
965
|
{{>MuteButton}} {{>VolumeRange}}
|
|
936
966
|
<div class="spacer"></div>
|
|
937
967
|
{{>RenditionSelect}}
|
|
938
|
-
<template if="breakpointsm"> {{>
|
|
968
|
+
<template if="breakpointsm"> {{>PlaybackRateSelect}} </template>
|
|
939
969
|
{{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
940
970
|
<template if="breakpointsm"> {{>PipButton}} </template>
|
|
941
971
|
{{>FullscreenButton}}
|
|
@@ -974,7 +1004,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
974
1004
|
<template if="breakpointsm">{{>VolumeRange}}</template>
|
|
975
1005
|
{{>TimeDisplay}} {{>TimeRange}}
|
|
976
1006
|
<div class="spacer"></div>
|
|
977
|
-
<template if="breakpointsm">{{>
|
|
1007
|
+
<template if="breakpointsm">{{>PlaybackRateSelect}}</template>
|
|
978
1008
|
{{>AirplayButton}} {{>CastButton}}
|
|
979
1009
|
</media-control-bar>
|
|
980
1010
|
</template>
|
|
@@ -135,9 +135,10 @@ var mediaThemeGerwig = (() => {
|
|
|
135
135
|
var(--_accent-color) 25%,
|
|
136
136
|
var(--_accent-color)
|
|
137
137
|
);
|
|
138
|
-
--media-range-thumb-width:
|
|
139
|
-
--media-range-thumb-height:
|
|
140
|
-
--media-range-thumb-
|
|
138
|
+
--media-range-thumb-width: 12px;
|
|
139
|
+
--media-range-thumb-height: 12px;
|
|
140
|
+
--media-range-thumb-transform: scale(0);
|
|
141
|
+
--media-range-thumb-transition: transform 0.3s;
|
|
141
142
|
--media-range-thumb-opacity: 1;
|
|
142
143
|
--media-preview-thumbnail-background: var(--_primary-color);
|
|
143
144
|
--media-preview-thumbnail-border: 5px solid var(--_primary-color);
|
|
@@ -160,8 +161,7 @@ var mediaThemeGerwig = (() => {
|
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
media-time-range:hover {
|
|
163
|
-
--media-range-thumb-
|
|
164
|
-
--media-range-thumb-height: 12px;
|
|
164
|
+
--media-range-thumb-transform: scale(1);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
media-time-range::part(preview-box)::after {
|
|
@@ -177,32 +177,33 @@ var mediaThemeGerwig = (() => {
|
|
|
177
177
|
transform: translate(-50%, -10px);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
[part~='listbox'] {
|
|
181
|
+
border-radius: 2px;
|
|
182
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
183
|
+
bottom: calc(100% + 16px);
|
|
184
|
+
padding: 2.5px 10px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[part~='listbox']::part(indicator) {
|
|
181
188
|
fill: var(--_accent-color);
|
|
182
189
|
}
|
|
183
190
|
|
|
184
|
-
|
|
191
|
+
[part~='listbox']::part(option) {
|
|
192
|
+
box-sizing: border-box;
|
|
185
193
|
display: flex;
|
|
186
194
|
align-items: center;
|
|
187
|
-
padding:
|
|
195
|
+
padding: 6px 10px;
|
|
196
|
+
min-height: 34px;
|
|
188
197
|
}
|
|
189
198
|
|
|
190
|
-
|
|
199
|
+
[part~='listbox']::part(option-selected) {
|
|
191
200
|
font-weight: 700;
|
|
192
201
|
}
|
|
193
202
|
|
|
194
|
-
media-captions-listbox,
|
|
195
|
-
media-rendition-listbox,
|
|
196
|
-
media-audio-track-listbox {
|
|
197
|
-
border-radius: 2px;
|
|
198
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
199
|
-
bottom: calc(100% + 16px);
|
|
200
|
-
padding: 10px;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
203
|
media-captions-selectmenu,
|
|
204
204
|
media-rendition-selectmenu,
|
|
205
|
-
media-audio-track-selectmenu
|
|
205
|
+
media-audio-track-selectmenu,
|
|
206
|
+
media-playback-rate-listbox[part~='listbox'] {
|
|
206
207
|
--media-listbox-background: var(--_primary-color);
|
|
207
208
|
--media-option-selected-background: transparent;
|
|
208
209
|
--media-option-hover-background: transparent;
|
|
@@ -216,8 +217,29 @@ var mediaThemeGerwig = (() => {
|
|
|
216
217
|
--media-control-height: 16px;
|
|
217
218
|
}
|
|
218
219
|
|
|
220
|
+
media-playback-rate-button {
|
|
221
|
+
--media-control-padding: 6px 3px;
|
|
222
|
+
min-width: 4.4ch;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
media-playback-rate-listbox[part~='listbox'] {
|
|
226
|
+
--media-listbox-layout: row;
|
|
227
|
+
--media-option-selected-background: var(--_accent-color);
|
|
228
|
+
margin-right: 6px;
|
|
229
|
+
padding: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
media-playback-rate-listbox[part~='listbox']::part(option) {
|
|
233
|
+
padding: 6px 4px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
media-playback-rate-listbox[part~='listbox']::part(option-selected) {
|
|
237
|
+
color: #fff;
|
|
238
|
+
}
|
|
239
|
+
|
|
219
240
|
:host(:not([audio])) media-time-range {
|
|
220
|
-
|
|
241
|
+
/* Adding px is required here for calc() */
|
|
242
|
+
--media-range-padding: 0px;
|
|
221
243
|
background: transparent;
|
|
222
244
|
z-index: 10;
|
|
223
245
|
height: 10px;
|
|
@@ -423,6 +445,8 @@ var mediaThemeGerwig = (() => {
|
|
|
423
445
|
|
|
424
446
|
media-volume-range {
|
|
425
447
|
width: min(100%, 100px);
|
|
448
|
+
--media-range-padding-left: 10px;
|
|
449
|
+
--media-range-padding-right: 10px;
|
|
426
450
|
--media-range-thumb-width: 12px;
|
|
427
451
|
--media-range-thumb-height: 12px;
|
|
428
452
|
--media-range-thumb-background: radial-gradient(
|
|
@@ -663,7 +687,7 @@ var mediaThemeGerwig = (() => {
|
|
|
663
687
|
/>
|
|
664
688
|
</svg>
|
|
665
689
|
</media-captions-button>
|
|
666
|
-
<media-captions-listbox slot="listbox" part="bottom captions listbox">
|
|
690
|
+
<media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox">
|
|
667
691
|
<div slot="select-indicator">
|
|
668
692
|
<style>
|
|
669
693
|
.listbox-indicator {
|
|
@@ -757,14 +781,20 @@ var mediaThemeGerwig = (() => {
|
|
|
757
781
|
</media-live-button>
|
|
758
782
|
</template>
|
|
759
783
|
|
|
760
|
-
<template partial="
|
|
761
|
-
<media-playback-rate-
|
|
784
|
+
<template partial="PlaybackRateSelect">
|
|
785
|
+
<media-playback-rate-selectmenu
|
|
762
786
|
rates="{{playbackrates}}"
|
|
763
|
-
part="bottom playback-rate
|
|
787
|
+
part="bottom playback-rate selectmenu"
|
|
764
788
|
disabled="{{disabled}}"
|
|
765
789
|
aria-disabled="{{disabled}}"
|
|
766
790
|
>
|
|
767
|
-
|
|
791
|
+
<media-playback-rate-button slot="button" part="bottom playback-rate button"></media-playback-rate-button>
|
|
792
|
+
<media-playback-rate-listbox
|
|
793
|
+
slot="listbox"
|
|
794
|
+
exportparts="option"
|
|
795
|
+
part="bottom playback-rate listbox"
|
|
796
|
+
></media-playback-rate-listbox>
|
|
797
|
+
</media-playback-rate-selectmenu>
|
|
768
798
|
</template>
|
|
769
799
|
|
|
770
800
|
<template partial="VolumeRange">
|
|
@@ -803,7 +833,7 @@ var mediaThemeGerwig = (() => {
|
|
|
803
833
|
/>
|
|
804
834
|
</svg>
|
|
805
835
|
</media-audio-track-button>
|
|
806
|
-
<media-audio-track-listbox slot="listbox" part="bottom audio-track listbox">
|
|
836
|
+
<media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
|
|
807
837
|
<div slot="select-indicator">
|
|
808
838
|
<style>
|
|
809
839
|
.listbox-indicator {
|
|
@@ -838,7 +868,7 @@ var mediaThemeGerwig = (() => {
|
|
|
838
868
|
/>
|
|
839
869
|
</svg>
|
|
840
870
|
</media-rendition-button>
|
|
841
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
871
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
842
872
|
<div slot="select-indicator">
|
|
843
873
|
<style>
|
|
844
874
|
.listbox-indicator {
|
|
@@ -935,7 +965,7 @@ var mediaThemeGerwig = (() => {
|
|
|
935
965
|
{{>MuteButton}} {{>VolumeRange}}
|
|
936
966
|
<div class="spacer"></div>
|
|
937
967
|
{{>RenditionSelect}}
|
|
938
|
-
<template if="breakpointsm"> {{>
|
|
968
|
+
<template if="breakpointsm"> {{>PlaybackRateSelect}} </template>
|
|
939
969
|
{{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
940
970
|
<template if="breakpointsm"> {{>PipButton}} </template>
|
|
941
971
|
{{>FullscreenButton}}
|
|
@@ -974,7 +1004,7 @@ var mediaThemeGerwig = (() => {
|
|
|
974
1004
|
<template if="breakpointsm">{{>VolumeRange}}</template>
|
|
975
1005
|
{{>TimeDisplay}} {{>TimeRange}}
|
|
976
1006
|
<div class="spacer"></div>
|
|
977
|
-
<template if="breakpointsm">{{>
|
|
1007
|
+
<template if="breakpointsm">{{>PlaybackRateSelect}}</template>
|
|
978
1008
|
{{>AirplayButton}} {{>CastButton}}
|
|
979
1009
|
</media-control-bar>
|
|
980
1010
|
</template>
|