@mux/mux-player 2.2.0 → 2.3.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/dist/index.cjs.js +232 -169
- package/dist/index.mjs +103 -76
- package/dist/mux-player.js +290 -222
- package/dist/mux-player.mjs +290 -222
- package/dist/themes/classic/index.cjs.js +8 -3
- package/dist/themes/classic/index.js +8 -3
- package/dist/themes/classic/index.mjs +8 -3
- package/dist/themes/gerwig/index.cjs.js +43 -26
- package/dist/themes/gerwig/index.js +43 -26
- package/dist/themes/gerwig/index.mjs +43 -26
- package/dist/themes/microvideo/index.cjs.js +4 -0
- package/dist/themes/microvideo/index.js +4 -0
- package/dist/themes/microvideo/index.mjs +4 -0
- package/dist/themes/minimal/index.cjs.js +4 -0
- package/dist/themes/minimal/index.js +4 -0
- package/dist/themes/minimal/index.mjs +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +20 -0
- package/dist/types/template.d.ts +38 -0
- package/dist/types-ts3.4/index.d.ts +17 -0
- package/dist/types-ts3.4/template.d.ts +38 -0
- package/package.json +8 -8
|
@@ -377,7 +377,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
377
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"/>
|
|
378
378
|
</svg>
|
|
379
379
|
</media-rendition-button>
|
|
380
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
380
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
381
381
|
<div slot="header">Quality</div>
|
|
382
382
|
</media-rendition-listbox>
|
|
383
383
|
</media-rendition-selectmenu>
|
|
@@ -391,7 +391,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
391
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"/>
|
|
392
392
|
</svg>
|
|
393
393
|
</media-audio-track-button>
|
|
394
|
-
<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">
|
|
395
395
|
<div slot="header">Audio</div>
|
|
396
396
|
</media-audio-track-listbox>
|
|
397
397
|
</media-audio-track-selectmenu>
|
|
@@ -407,7 +407,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
407
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"/>
|
|
408
408
|
</svg>
|
|
409
409
|
</media-captions-button>
|
|
410
|
-
<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>
|
|
411
411
|
</media-captions-selectmenu>
|
|
412
412
|
</template>
|
|
413
413
|
|
|
@@ -528,6 +528,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
528
528
|
audio="{{audio}}"
|
|
529
529
|
noautoseektolive="{{noautoseektolive}}"
|
|
530
530
|
defaultsubtitles="{{defaultsubtitles}}"
|
|
531
|
+
defaultduration="{{defaultduration ?? false}}"
|
|
531
532
|
exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
|
|
532
533
|
>
|
|
533
534
|
<slot name="media" slot="media"></slot>
|
|
@@ -896,6 +897,7 @@ var MediaUIProps = {
|
|
|
896
897
|
MEDIA_VOLUME_UNAVAILABLE: "mediaVolumeUnavailable",
|
|
897
898
|
MEDIA_IS_PIP: "mediaIsPip",
|
|
898
899
|
MEDIA_IS_CASTING: "mediaIsCasting",
|
|
900
|
+
MEDIA_IS_AIRPLAYING: "mediaIsAirplaying",
|
|
899
901
|
MEDIA_SUBTITLES_LIST: "mediaSubtitlesList",
|
|
900
902
|
MEDIA_SUBTITLES_SHOWING: "mediaSubtitlesShowing",
|
|
901
903
|
MEDIA_IS_FULLSCREEN: "mediaIsFullscreen",
|
|
@@ -1002,6 +1004,9 @@ var globalThisShim2 = {
|
|
|
1002
1004
|
CustomEvent: function CustomEvent2() {
|
|
1003
1005
|
},
|
|
1004
1006
|
getComputedStyle: function() {
|
|
1007
|
+
},
|
|
1008
|
+
navigator: {
|
|
1009
|
+
languages: []
|
|
1005
1010
|
}
|
|
1006
1011
|
};
|
|
1007
1012
|
var isServer2 = typeof window === "undefined" || typeof window.customElements === "undefined";
|
|
@@ -377,7 +377,7 @@ var mediaThemeClassic = (() => {
|
|
|
377
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"/>
|
|
378
378
|
</svg>
|
|
379
379
|
</media-rendition-button>
|
|
380
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
380
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
381
381
|
<div slot="header">Quality</div>
|
|
382
382
|
</media-rendition-listbox>
|
|
383
383
|
</media-rendition-selectmenu>
|
|
@@ -391,7 +391,7 @@ var mediaThemeClassic = (() => {
|
|
|
391
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"/>
|
|
392
392
|
</svg>
|
|
393
393
|
</media-audio-track-button>
|
|
394
|
-
<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">
|
|
395
395
|
<div slot="header">Audio</div>
|
|
396
396
|
</media-audio-track-listbox>
|
|
397
397
|
</media-audio-track-selectmenu>
|
|
@@ -407,7 +407,7 @@ var mediaThemeClassic = (() => {
|
|
|
407
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"/>
|
|
408
408
|
</svg>
|
|
409
409
|
</media-captions-button>
|
|
410
|
-
<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>
|
|
411
411
|
</media-captions-selectmenu>
|
|
412
412
|
</template>
|
|
413
413
|
|
|
@@ -528,6 +528,7 @@ var mediaThemeClassic = (() => {
|
|
|
528
528
|
audio="{{audio}}"
|
|
529
529
|
noautoseektolive="{{noautoseektolive}}"
|
|
530
530
|
defaultsubtitles="{{defaultsubtitles}}"
|
|
531
|
+
defaultduration="{{defaultduration ?? false}}"
|
|
531
532
|
exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
|
|
532
533
|
>
|
|
533
534
|
<slot name="media" slot="media"></slot>
|
|
@@ -896,6 +897,7 @@ var mediaThemeClassic = (() => {
|
|
|
896
897
|
MEDIA_VOLUME_UNAVAILABLE: "mediaVolumeUnavailable",
|
|
897
898
|
MEDIA_IS_PIP: "mediaIsPip",
|
|
898
899
|
MEDIA_IS_CASTING: "mediaIsCasting",
|
|
900
|
+
MEDIA_IS_AIRPLAYING: "mediaIsAirplaying",
|
|
899
901
|
MEDIA_SUBTITLES_LIST: "mediaSubtitlesList",
|
|
900
902
|
MEDIA_SUBTITLES_SHOWING: "mediaSubtitlesShowing",
|
|
901
903
|
MEDIA_IS_FULLSCREEN: "mediaIsFullscreen",
|
|
@@ -1002,6 +1004,9 @@ var mediaThemeClassic = (() => {
|
|
|
1002
1004
|
CustomEvent: function CustomEvent2() {
|
|
1003
1005
|
},
|
|
1004
1006
|
getComputedStyle: function() {
|
|
1007
|
+
},
|
|
1008
|
+
navigator: {
|
|
1009
|
+
languages: []
|
|
1005
1010
|
}
|
|
1006
1011
|
};
|
|
1007
1012
|
var isServer2 = typeof window === "undefined" || typeof window.customElements === "undefined";
|
|
@@ -352,7 +352,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
352
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"/>
|
|
353
353
|
</svg>
|
|
354
354
|
</media-rendition-button>
|
|
355
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
355
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
356
356
|
<div slot="header">Quality</div>
|
|
357
357
|
</media-rendition-listbox>
|
|
358
358
|
</media-rendition-selectmenu>
|
|
@@ -366,7 +366,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
366
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"/>
|
|
367
367
|
</svg>
|
|
368
368
|
</media-audio-track-button>
|
|
369
|
-
<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">
|
|
370
370
|
<div slot="header">Audio</div>
|
|
371
371
|
</media-audio-track-listbox>
|
|
372
372
|
</media-audio-track-selectmenu>
|
|
@@ -382,7 +382,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
382
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"/>
|
|
383
383
|
</svg>
|
|
384
384
|
</media-captions-button>
|
|
385
|
-
<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>
|
|
386
386
|
</media-captions-selectmenu>
|
|
387
387
|
</template>
|
|
388
388
|
|
|
@@ -503,6 +503,7 @@ var classic_default = `<!-- prettier-ignore -->
|
|
|
503
503
|
audio="{{audio}}"
|
|
504
504
|
noautoseektolive="{{noautoseektolive}}"
|
|
505
505
|
defaultsubtitles="{{defaultsubtitles}}"
|
|
506
|
+
defaultduration="{{defaultduration ?? false}}"
|
|
506
507
|
exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
|
|
507
508
|
>
|
|
508
509
|
<slot name="media" slot="media"></slot>
|
|
@@ -871,6 +872,7 @@ var MediaUIProps = {
|
|
|
871
872
|
MEDIA_VOLUME_UNAVAILABLE: "mediaVolumeUnavailable",
|
|
872
873
|
MEDIA_IS_PIP: "mediaIsPip",
|
|
873
874
|
MEDIA_IS_CASTING: "mediaIsCasting",
|
|
875
|
+
MEDIA_IS_AIRPLAYING: "mediaIsAirplaying",
|
|
874
876
|
MEDIA_SUBTITLES_LIST: "mediaSubtitlesList",
|
|
875
877
|
MEDIA_SUBTITLES_SHOWING: "mediaSubtitlesShowing",
|
|
876
878
|
MEDIA_IS_FULLSCREEN: "mediaIsFullscreen",
|
|
@@ -977,6 +979,9 @@ var globalThisShim2 = {
|
|
|
977
979
|
CustomEvent: function CustomEvent2() {
|
|
978
980
|
},
|
|
979
981
|
getComputedStyle: function() {
|
|
982
|
+
},
|
|
983
|
+
navigator: {
|
|
984
|
+
languages: []
|
|
980
985
|
}
|
|
981
986
|
};
|
|
982
987
|
var isServer2 = typeof window === "undefined" || typeof window.customElements === "undefined";
|
|
@@ -86,6 +86,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
:host([audio]) {
|
|
89
|
+
--_secondary-color: var(--media-secondary-color, black);
|
|
89
90
|
--media-preview-time-border-radius: 3px;
|
|
90
91
|
--media-preview-time-margin: 0 0 5px;
|
|
91
92
|
--media-preview-time-text-shadow: none;
|
|
@@ -109,6 +110,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
109
110
|
|
|
110
111
|
:host([audio]) media-control-bar {
|
|
111
112
|
width: 100%;
|
|
113
|
+
background-color: var(--media-control-background);
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
/*
|
|
@@ -116,10 +118,11 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
116
118
|
* Borrowed here, so the captions don't move too fast.
|
|
117
119
|
*/
|
|
118
120
|
media-controller ::slotted([slot='media']) {
|
|
121
|
+
--media-webkit-text-track-transform: translateY(0) scale(0.98);
|
|
119
122
|
--media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;
|
|
120
123
|
}
|
|
121
124
|
media-controller:is([mediapaused], :not([userinactive])) ::slotted([slot='media']) {
|
|
122
|
-
--media-webkit-text-track-transform: translateY(-50px);
|
|
125
|
+
--media-webkit-text-track-transform: translateY(-50px) scale(0.98);
|
|
123
126
|
--media-webkit-text-track-transition: transform 0.15s ease;
|
|
124
127
|
}
|
|
125
128
|
|
|
@@ -438,7 +441,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
438
441
|
opacity: 1;
|
|
439
442
|
}
|
|
440
443
|
|
|
441
|
-
media-loading-indicator[
|
|
444
|
+
media-loading-indicator[medialoading]:not([mediapaused]) ~ div > * {
|
|
442
445
|
opacity: 0;
|
|
443
446
|
transition-delay: 400ms;
|
|
444
447
|
}
|
|
@@ -526,6 +529,19 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
526
529
|
media-mute-button[mediavolumelevel='off'] .muted {
|
|
527
530
|
opacity: 1;
|
|
528
531
|
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Our defaults for these buttons are to hide them at small sizes
|
|
535
|
+
* users can override this with CSS
|
|
536
|
+
*/
|
|
537
|
+
media-controller:not([breakpointsm]):not([audio]) {
|
|
538
|
+
--bottom-play-button: none;
|
|
539
|
+
--bottom-seek-backward-button: none;
|
|
540
|
+
--bottom-seek-forward-button: none;
|
|
541
|
+
--bottom-time-display: none;
|
|
542
|
+
--bottom-playback-rate-selectmenu: none;
|
|
543
|
+
--bottom-pip-button: none;
|
|
544
|
+
}
|
|
529
545
|
</style>
|
|
530
546
|
|
|
531
547
|
<template partial="TitleDisplay">
|
|
@@ -687,7 +703,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
687
703
|
/>
|
|
688
704
|
</svg>
|
|
689
705
|
</media-captions-button>
|
|
690
|
-
<media-captions-listbox slot="listbox" part="bottom captions listbox">
|
|
706
|
+
<media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox">
|
|
691
707
|
<div slot="select-indicator">
|
|
692
708
|
<style>
|
|
693
709
|
.listbox-indicator {
|
|
@@ -766,7 +782,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
766
782
|
d="M16.0072 0H2.0291C0.9185 0 0.0181 0.9003 0.0181 2.011V5.5009C0.357 5.5016 0.6895 5.5275 1.0181 5.5669V2.011C1.0181 1.4536 1.4716 1 2.029 1H16.0072C16.5646 1 17.0181 1.4536 17.0181 2.011V11.9891C17.0181 12.5465 16.5646 13 16.0072 13H8.4358C8.4746 13.3286 8.4999 13.6611 8.4999 13.9999H16.0071C17.1177 13.9999 18.018 13.0996 18.018 11.989V2.011C18.0181 0.9003 17.1178 0 16.0072 0ZM0 6.4999V7.4999C3.584 7.4999 6.5 10.4159 6.5 13.9999H7.5C7.5 9.8642 4.1357 6.4999 0 6.4999ZM0 8.7499V9.7499C2.3433 9.7499 4.25 11.6566 4.25 13.9999H5.25C5.25 11.1049 2.895 8.7499 0 8.7499ZM0.0181 11V14H3.0181C3.0181 12.3431 1.675 11 0.0181 11Z"
|
|
767
783
|
/>
|
|
768
784
|
</svg>
|
|
769
|
-
<svg viewBox="0 0 18 14" aria-hidden="true" slot="
|
|
785
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
|
|
770
786
|
<path
|
|
771
787
|
d="M15.9891 0H2.01103C0.900434 0 3.35947e-05 0.9003 3.35947e-05 2.011V5.5009C0.338934 5.5016 0.671434 5.5275 1.00003 5.5669V2.011C1.00003 1.4536 1.45353 1 2.01093 1H15.9891C16.5465 1 17 1.4536 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H8.41773C8.45653 13.3286 8.48183 13.6611 8.48183 13.9999H15.989C17.0996 13.9999 17.9999 13.0996 17.9999 11.989V2.011C18 0.9003 17.0997 0 15.9891 0ZM-0.0180664 6.4999V7.4999C3.56593 7.4999 6.48193 10.4159 6.48193 13.9999H7.48193C7.48193 9.8642 4.11763 6.4999 -0.0180664 6.4999ZM-0.0180664 8.7499V9.7499C2.32523 9.7499 4.23193 11.6566 4.23193 13.9999H5.23193C5.23193 11.1049 2.87693 8.7499 -0.0180664 8.7499ZM3.35947e-05 11V14H3.00003C3.00003 12.3431 1.65693 11 3.35947e-05 11Z"
|
|
772
788
|
/>
|
|
@@ -783,13 +799,17 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
783
799
|
|
|
784
800
|
<template partial="PlaybackRateSelect">
|
|
785
801
|
<media-playback-rate-selectmenu
|
|
786
|
-
rates="{{playbackrates}}"
|
|
787
802
|
part="bottom playback-rate selectmenu"
|
|
788
803
|
disabled="{{disabled}}"
|
|
789
804
|
aria-disabled="{{disabled}}"
|
|
790
805
|
>
|
|
791
806
|
<media-playback-rate-button slot="button" part="bottom playback-rate button"></media-playback-rate-button>
|
|
792
|
-
<media-playback-rate-listbox
|
|
807
|
+
<media-playback-rate-listbox
|
|
808
|
+
slot="listbox"
|
|
809
|
+
rates="{{playbackrates}}"
|
|
810
|
+
exportparts="option"
|
|
811
|
+
part="bottom playback-rate listbox"
|
|
812
|
+
></media-playback-rate-listbox>
|
|
793
813
|
</media-playback-rate-selectmenu>
|
|
794
814
|
</template>
|
|
795
815
|
|
|
@@ -829,7 +849,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
829
849
|
/>
|
|
830
850
|
</svg>
|
|
831
851
|
</media-audio-track-button>
|
|
832
|
-
<media-audio-track-listbox slot="listbox" part="bottom audio-track listbox">
|
|
852
|
+
<media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
|
|
833
853
|
<div slot="select-indicator">
|
|
834
854
|
<style>
|
|
835
855
|
.listbox-indicator {
|
|
@@ -864,7 +884,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
864
884
|
/>
|
|
865
885
|
</svg>
|
|
866
886
|
</media-rendition-button>
|
|
867
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
887
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
868
888
|
<div slot="select-indicator">
|
|
869
889
|
<style>
|
|
870
890
|
.listbox-indicator {
|
|
@@ -891,6 +911,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
891
911
|
</template>
|
|
892
912
|
|
|
893
913
|
<media-controller
|
|
914
|
+
part="controller"
|
|
894
915
|
defaultstreamtype="{{defaultstreamtype ?? 'on-demand'}}"
|
|
895
916
|
breakpoints="sm:470"
|
|
896
917
|
gesturesdisabled="{{disabled}}"
|
|
@@ -900,13 +921,14 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
900
921
|
audio="{{audio}}"
|
|
901
922
|
noautoseektolive="{{noautoseektolive}}"
|
|
902
923
|
defaultsubtitles="{{defaultsubtitles}}"
|
|
924
|
+
defaultduration="{{defaultduration ?? false}}"
|
|
903
925
|
exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
|
|
904
926
|
style="--_pre-playback-place:{{preplaybackplace ?? 'center'}}"
|
|
905
927
|
>
|
|
906
928
|
<slot name="media" slot="media"></slot>
|
|
907
929
|
<slot name="poster" slot="poster"></slot>
|
|
908
930
|
|
|
909
|
-
<media-loading-indicator slot="centered-chrome"
|
|
931
|
+
<media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
|
|
910
932
|
|
|
911
933
|
<template if="!audio">
|
|
912
934
|
<!-- Pre-playback UI -->
|
|
@@ -955,16 +977,11 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
955
977
|
</template>
|
|
956
978
|
{{>TimeRange}}
|
|
957
979
|
<media-control-bar part="control-bar bottom">
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
</template>
|
|
961
|
-
{{>MuteButton}} {{>VolumeRange}}
|
|
980
|
+
{{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeDisplay}} {{>MuteButton}}
|
|
981
|
+
{{>VolumeRange}}
|
|
962
982
|
<div class="spacer"></div>
|
|
963
|
-
{{>RenditionSelect}}
|
|
964
|
-
|
|
965
|
-
{{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
966
|
-
<template if="breakpointsm"> {{>PipButton}} </template>
|
|
967
|
-
{{>FullscreenButton}}
|
|
983
|
+
{{>RenditionSelect}} {{>PlaybackRateSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}}
|
|
984
|
+
{{>CastButton}} {{>PipButton}} {{>FullscreenButton}}
|
|
968
985
|
</media-control-bar>
|
|
969
986
|
</template>
|
|
970
987
|
|
|
@@ -975,15 +992,12 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
975
992
|
</media-control-bar>
|
|
976
993
|
<template if="targetlivewindow > 0">{{>TimeRange}}</template>
|
|
977
994
|
<media-control-bar part="control-bar bottom">
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
<template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
|
|
981
|
-
</template>
|
|
995
|
+
{{>PlayButton}}
|
|
996
|
+
<template if="targetlivewindow > 0">{{>SeekBackwardButton}} {{>SeekForwardButton}}</template>
|
|
982
997
|
{{>MuteButton}} {{>VolumeRange}}
|
|
983
998
|
<div class="spacer"></div>
|
|
984
999
|
{{>RenditionSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
985
|
-
|
|
986
|
-
{{>FullscreenButton}}
|
|
1000
|
+
{{>PipButton}} {{>FullscreenButton}}
|
|
987
1001
|
</media-control-bar>
|
|
988
1002
|
</template>
|
|
989
1003
|
</template>
|
|
@@ -999,7 +1013,6 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
999
1013
|
{{>MuteButton}}
|
|
1000
1014
|
<template if="breakpointsm">{{>VolumeRange}}</template>
|
|
1001
1015
|
{{>TimeDisplay}} {{>TimeRange}}
|
|
1002
|
-
<div class="spacer"></div>
|
|
1003
1016
|
<template if="breakpointsm">{{>PlaybackRateSelect}}</template>
|
|
1004
1017
|
{{>AirplayButton}} {{>CastButton}}
|
|
1005
1018
|
</media-control-bar>
|
|
@@ -1015,7 +1028,7 @@ var gerwig_default = `<template id="media-theme-gerwig">
|
|
|
1015
1028
|
<template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
|
|
1016
1029
|
</template>
|
|
1017
1030
|
<template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>
|
|
1018
|
-
<div class="spacer"></div>
|
|
1031
|
+
<template if="!targetlivewindow"><div class="spacer"></div></template>
|
|
1019
1032
|
{{>AirplayButton}} {{>CastButton}}
|
|
1020
1033
|
</media-control-bar>
|
|
1021
1034
|
</template>
|
|
@@ -1105,6 +1118,7 @@ var MediaUIProps = {
|
|
|
1105
1118
|
MEDIA_VOLUME_UNAVAILABLE: "mediaVolumeUnavailable",
|
|
1106
1119
|
MEDIA_IS_PIP: "mediaIsPip",
|
|
1107
1120
|
MEDIA_IS_CASTING: "mediaIsCasting",
|
|
1121
|
+
MEDIA_IS_AIRPLAYING: "mediaIsAirplaying",
|
|
1108
1122
|
MEDIA_SUBTITLES_LIST: "mediaSubtitlesList",
|
|
1109
1123
|
MEDIA_SUBTITLES_SHOWING: "mediaSubtitlesShowing",
|
|
1110
1124
|
MEDIA_IS_FULLSCREEN: "mediaIsFullscreen",
|
|
@@ -1211,6 +1225,9 @@ var globalThisShim2 = {
|
|
|
1211
1225
|
CustomEvent: function CustomEvent2() {
|
|
1212
1226
|
},
|
|
1213
1227
|
getComputedStyle: function() {
|
|
1228
|
+
},
|
|
1229
|
+
navigator: {
|
|
1230
|
+
languages: []
|
|
1214
1231
|
}
|
|
1215
1232
|
};
|
|
1216
1233
|
var isServer2 = typeof window === "undefined" || typeof window.customElements === "undefined";
|
|
@@ -86,6 +86,7 @@ var mediaThemeGerwig = (() => {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
:host([audio]) {
|
|
89
|
+
--_secondary-color: var(--media-secondary-color, black);
|
|
89
90
|
--media-preview-time-border-radius: 3px;
|
|
90
91
|
--media-preview-time-margin: 0 0 5px;
|
|
91
92
|
--media-preview-time-text-shadow: none;
|
|
@@ -109,6 +110,7 @@ var mediaThemeGerwig = (() => {
|
|
|
109
110
|
|
|
110
111
|
:host([audio]) media-control-bar {
|
|
111
112
|
width: 100%;
|
|
113
|
+
background-color: var(--media-control-background);
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
/*
|
|
@@ -116,10 +118,11 @@ var mediaThemeGerwig = (() => {
|
|
|
116
118
|
* Borrowed here, so the captions don't move too fast.
|
|
117
119
|
*/
|
|
118
120
|
media-controller ::slotted([slot='media']) {
|
|
121
|
+
--media-webkit-text-track-transform: translateY(0) scale(0.98);
|
|
119
122
|
--media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;
|
|
120
123
|
}
|
|
121
124
|
media-controller:is([mediapaused], :not([userinactive])) ::slotted([slot='media']) {
|
|
122
|
-
--media-webkit-text-track-transform: translateY(-50px);
|
|
125
|
+
--media-webkit-text-track-transform: translateY(-50px) scale(0.98);
|
|
123
126
|
--media-webkit-text-track-transition: transform 0.15s ease;
|
|
124
127
|
}
|
|
125
128
|
|
|
@@ -438,7 +441,7 @@ var mediaThemeGerwig = (() => {
|
|
|
438
441
|
opacity: 1;
|
|
439
442
|
}
|
|
440
443
|
|
|
441
|
-
media-loading-indicator[
|
|
444
|
+
media-loading-indicator[medialoading]:not([mediapaused]) ~ div > * {
|
|
442
445
|
opacity: 0;
|
|
443
446
|
transition-delay: 400ms;
|
|
444
447
|
}
|
|
@@ -526,6 +529,19 @@ var mediaThemeGerwig = (() => {
|
|
|
526
529
|
media-mute-button[mediavolumelevel='off'] .muted {
|
|
527
530
|
opacity: 1;
|
|
528
531
|
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Our defaults for these buttons are to hide them at small sizes
|
|
535
|
+
* users can override this with CSS
|
|
536
|
+
*/
|
|
537
|
+
media-controller:not([breakpointsm]):not([audio]) {
|
|
538
|
+
--bottom-play-button: none;
|
|
539
|
+
--bottom-seek-backward-button: none;
|
|
540
|
+
--bottom-seek-forward-button: none;
|
|
541
|
+
--bottom-time-display: none;
|
|
542
|
+
--bottom-playback-rate-selectmenu: none;
|
|
543
|
+
--bottom-pip-button: none;
|
|
544
|
+
}
|
|
529
545
|
</style>
|
|
530
546
|
|
|
531
547
|
<template partial="TitleDisplay">
|
|
@@ -687,7 +703,7 @@ var mediaThemeGerwig = (() => {
|
|
|
687
703
|
/>
|
|
688
704
|
</svg>
|
|
689
705
|
</media-captions-button>
|
|
690
|
-
<media-captions-listbox slot="listbox" part="bottom captions listbox">
|
|
706
|
+
<media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox">
|
|
691
707
|
<div slot="select-indicator">
|
|
692
708
|
<style>
|
|
693
709
|
.listbox-indicator {
|
|
@@ -766,7 +782,7 @@ var mediaThemeGerwig = (() => {
|
|
|
766
782
|
d="M16.0072 0H2.0291C0.9185 0 0.0181 0.9003 0.0181 2.011V5.5009C0.357 5.5016 0.6895 5.5275 1.0181 5.5669V2.011C1.0181 1.4536 1.4716 1 2.029 1H16.0072C16.5646 1 17.0181 1.4536 17.0181 2.011V11.9891C17.0181 12.5465 16.5646 13 16.0072 13H8.4358C8.4746 13.3286 8.4999 13.6611 8.4999 13.9999H16.0071C17.1177 13.9999 18.018 13.0996 18.018 11.989V2.011C18.0181 0.9003 17.1178 0 16.0072 0ZM0 6.4999V7.4999C3.584 7.4999 6.5 10.4159 6.5 13.9999H7.5C7.5 9.8642 4.1357 6.4999 0 6.4999ZM0 8.7499V9.7499C2.3433 9.7499 4.25 11.6566 4.25 13.9999H5.25C5.25 11.1049 2.895 8.7499 0 8.7499ZM0.0181 11V14H3.0181C3.0181 12.3431 1.675 11 0.0181 11Z"
|
|
767
783
|
/>
|
|
768
784
|
</svg>
|
|
769
|
-
<svg viewBox="0 0 18 14" aria-hidden="true" slot="
|
|
785
|
+
<svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
|
|
770
786
|
<path
|
|
771
787
|
d="M15.9891 0H2.01103C0.900434 0 3.35947e-05 0.9003 3.35947e-05 2.011V5.5009C0.338934 5.5016 0.671434 5.5275 1.00003 5.5669V2.011C1.00003 1.4536 1.45353 1 2.01093 1H15.9891C16.5465 1 17 1.4536 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H8.41773C8.45653 13.3286 8.48183 13.6611 8.48183 13.9999H15.989C17.0996 13.9999 17.9999 13.0996 17.9999 11.989V2.011C18 0.9003 17.0997 0 15.9891 0ZM-0.0180664 6.4999V7.4999C3.56593 7.4999 6.48193 10.4159 6.48193 13.9999H7.48193C7.48193 9.8642 4.11763 6.4999 -0.0180664 6.4999ZM-0.0180664 8.7499V9.7499C2.32523 9.7499 4.23193 11.6566 4.23193 13.9999H5.23193C5.23193 11.1049 2.87693 8.7499 -0.0180664 8.7499ZM3.35947e-05 11V14H3.00003C3.00003 12.3431 1.65693 11 3.35947e-05 11Z"
|
|
772
788
|
/>
|
|
@@ -783,13 +799,17 @@ var mediaThemeGerwig = (() => {
|
|
|
783
799
|
|
|
784
800
|
<template partial="PlaybackRateSelect">
|
|
785
801
|
<media-playback-rate-selectmenu
|
|
786
|
-
rates="{{playbackrates}}"
|
|
787
802
|
part="bottom playback-rate selectmenu"
|
|
788
803
|
disabled="{{disabled}}"
|
|
789
804
|
aria-disabled="{{disabled}}"
|
|
790
805
|
>
|
|
791
806
|
<media-playback-rate-button slot="button" part="bottom playback-rate button"></media-playback-rate-button>
|
|
792
|
-
<media-playback-rate-listbox
|
|
807
|
+
<media-playback-rate-listbox
|
|
808
|
+
slot="listbox"
|
|
809
|
+
rates="{{playbackrates}}"
|
|
810
|
+
exportparts="option"
|
|
811
|
+
part="bottom playback-rate listbox"
|
|
812
|
+
></media-playback-rate-listbox>
|
|
793
813
|
</media-playback-rate-selectmenu>
|
|
794
814
|
</template>
|
|
795
815
|
|
|
@@ -829,7 +849,7 @@ var mediaThemeGerwig = (() => {
|
|
|
829
849
|
/>
|
|
830
850
|
</svg>
|
|
831
851
|
</media-audio-track-button>
|
|
832
|
-
<media-audio-track-listbox slot="listbox" part="bottom audio-track listbox">
|
|
852
|
+
<media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
|
|
833
853
|
<div slot="select-indicator">
|
|
834
854
|
<style>
|
|
835
855
|
.listbox-indicator {
|
|
@@ -864,7 +884,7 @@ var mediaThemeGerwig = (() => {
|
|
|
864
884
|
/>
|
|
865
885
|
</svg>
|
|
866
886
|
</media-rendition-button>
|
|
867
|
-
<media-rendition-listbox slot="listbox" part="bottom rendition listbox">
|
|
887
|
+
<media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
|
|
868
888
|
<div slot="select-indicator">
|
|
869
889
|
<style>
|
|
870
890
|
.listbox-indicator {
|
|
@@ -891,6 +911,7 @@ var mediaThemeGerwig = (() => {
|
|
|
891
911
|
</template>
|
|
892
912
|
|
|
893
913
|
<media-controller
|
|
914
|
+
part="controller"
|
|
894
915
|
defaultstreamtype="{{defaultstreamtype ?? 'on-demand'}}"
|
|
895
916
|
breakpoints="sm:470"
|
|
896
917
|
gesturesdisabled="{{disabled}}"
|
|
@@ -900,13 +921,14 @@ var mediaThemeGerwig = (() => {
|
|
|
900
921
|
audio="{{audio}}"
|
|
901
922
|
noautoseektolive="{{noautoseektolive}}"
|
|
902
923
|
defaultsubtitles="{{defaultsubtitles}}"
|
|
924
|
+
defaultduration="{{defaultduration ?? false}}"
|
|
903
925
|
exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
|
|
904
926
|
style="--_pre-playback-place:{{preplaybackplace ?? 'center'}}"
|
|
905
927
|
>
|
|
906
928
|
<slot name="media" slot="media"></slot>
|
|
907
929
|
<slot name="poster" slot="poster"></slot>
|
|
908
930
|
|
|
909
|
-
<media-loading-indicator slot="centered-chrome"
|
|
931
|
+
<media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
|
|
910
932
|
|
|
911
933
|
<template if="!audio">
|
|
912
934
|
<!-- Pre-playback UI -->
|
|
@@ -955,16 +977,11 @@ var mediaThemeGerwig = (() => {
|
|
|
955
977
|
</template>
|
|
956
978
|
{{>TimeRange}}
|
|
957
979
|
<media-control-bar part="control-bar bottom">
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
</template>
|
|
961
|
-
{{>MuteButton}} {{>VolumeRange}}
|
|
980
|
+
{{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeDisplay}} {{>MuteButton}}
|
|
981
|
+
{{>VolumeRange}}
|
|
962
982
|
<div class="spacer"></div>
|
|
963
|
-
{{>RenditionSelect}}
|
|
964
|
-
|
|
965
|
-
{{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
966
|
-
<template if="breakpointsm"> {{>PipButton}} </template>
|
|
967
|
-
{{>FullscreenButton}}
|
|
983
|
+
{{>RenditionSelect}} {{>PlaybackRateSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}}
|
|
984
|
+
{{>CastButton}} {{>PipButton}} {{>FullscreenButton}}
|
|
968
985
|
</media-control-bar>
|
|
969
986
|
</template>
|
|
970
987
|
|
|
@@ -975,15 +992,12 @@ var mediaThemeGerwig = (() => {
|
|
|
975
992
|
</media-control-bar>
|
|
976
993
|
<template if="targetlivewindow > 0">{{>TimeRange}}</template>
|
|
977
994
|
<media-control-bar part="control-bar bottom">
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
<template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
|
|
981
|
-
</template>
|
|
995
|
+
{{>PlayButton}}
|
|
996
|
+
<template if="targetlivewindow > 0">{{>SeekBackwardButton}} {{>SeekForwardButton}}</template>
|
|
982
997
|
{{>MuteButton}} {{>VolumeRange}}
|
|
983
998
|
<div class="spacer"></div>
|
|
984
999
|
{{>RenditionSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
985
|
-
|
|
986
|
-
{{>FullscreenButton}}
|
|
1000
|
+
{{>PipButton}} {{>FullscreenButton}}
|
|
987
1001
|
</media-control-bar>
|
|
988
1002
|
</template>
|
|
989
1003
|
</template>
|
|
@@ -999,7 +1013,6 @@ var mediaThemeGerwig = (() => {
|
|
|
999
1013
|
{{>MuteButton}}
|
|
1000
1014
|
<template if="breakpointsm">{{>VolumeRange}}</template>
|
|
1001
1015
|
{{>TimeDisplay}} {{>TimeRange}}
|
|
1002
|
-
<div class="spacer"></div>
|
|
1003
1016
|
<template if="breakpointsm">{{>PlaybackRateSelect}}</template>
|
|
1004
1017
|
{{>AirplayButton}} {{>CastButton}}
|
|
1005
1018
|
</media-control-bar>
|
|
@@ -1015,7 +1028,7 @@ var mediaThemeGerwig = (() => {
|
|
|
1015
1028
|
<template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
|
|
1016
1029
|
</template>
|
|
1017
1030
|
<template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>
|
|
1018
|
-
<div class="spacer"></div>
|
|
1031
|
+
<template if="!targetlivewindow"><div class="spacer"></div></template>
|
|
1019
1032
|
{{>AirplayButton}} {{>CastButton}}
|
|
1020
1033
|
</media-control-bar>
|
|
1021
1034
|
</template>
|
|
@@ -1105,6 +1118,7 @@ var mediaThemeGerwig = (() => {
|
|
|
1105
1118
|
MEDIA_VOLUME_UNAVAILABLE: "mediaVolumeUnavailable",
|
|
1106
1119
|
MEDIA_IS_PIP: "mediaIsPip",
|
|
1107
1120
|
MEDIA_IS_CASTING: "mediaIsCasting",
|
|
1121
|
+
MEDIA_IS_AIRPLAYING: "mediaIsAirplaying",
|
|
1108
1122
|
MEDIA_SUBTITLES_LIST: "mediaSubtitlesList",
|
|
1109
1123
|
MEDIA_SUBTITLES_SHOWING: "mediaSubtitlesShowing",
|
|
1110
1124
|
MEDIA_IS_FULLSCREEN: "mediaIsFullscreen",
|
|
@@ -1211,6 +1225,9 @@ var mediaThemeGerwig = (() => {
|
|
|
1211
1225
|
CustomEvent: function CustomEvent2() {
|
|
1212
1226
|
},
|
|
1213
1227
|
getComputedStyle: function() {
|
|
1228
|
+
},
|
|
1229
|
+
navigator: {
|
|
1230
|
+
languages: []
|
|
1214
1231
|
}
|
|
1215
1232
|
};
|
|
1216
1233
|
var isServer2 = typeof window === "undefined" || typeof window.customElements === "undefined";
|