@mattebox/player 0.6.0 → 0.7.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/cdn/mattebox-player.min.js +3 -435
- package/dist/controls/airplay.js +28 -44
- package/dist/controls/airplay.js.map +1 -1
- package/dist/controls/chapters.d.ts +22 -11
- package/dist/controls/chapters.d.ts.map +1 -1
- package/dist/controls/chapters.js +87 -73
- package/dist/controls/chapters.js.map +1 -1
- package/dist/controls/cues.d.ts +0 -22
- package/dist/controls/cues.d.ts.map +1 -1
- package/dist/controls/cues.js +161 -191
- package/dist/controls/cues.js.map +1 -1
- package/dist/controls/fullscreen.js +52 -70
- package/dist/controls/fullscreen.js.map +1 -1
- package/dist/controls/icons.d.ts +1 -1
- package/dist/controls/icons.d.ts.map +1 -1
- package/dist/controls/icons.js +46 -70
- package/dist/controls/icons.js.map +1 -1
- package/dist/controls/menu.d.ts +7 -4
- package/dist/controls/menu.d.ts.map +1 -1
- package/dist/controls/menu.js +241 -223
- package/dist/controls/menu.js.map +1 -1
- package/dist/controls/pip.js +35 -49
- package/dist/controls/pip.js.map +1 -1
- package/dist/controls/ranges.js +42 -37
- package/dist/controls/ranges.js.map +1 -1
- package/dist/controls/session.d.ts +6 -1
- package/dist/controls/session.d.ts.map +1 -1
- package/dist/controls/session.js +41 -26
- package/dist/controls/session.js.map +1 -1
- package/dist/controls/slider.d.ts +2 -2
- package/dist/controls/slider.d.ts.map +1 -1
- package/dist/controls/slider.js +151 -159
- package/dist/controls/slider.js.map +1 -1
- package/dist/controls/time.js +17 -17
- package/dist/controls/time.js.map +1 -1
- package/dist/dom.d.ts +6 -0
- package/dist/dom.d.ts.map +1 -1
- package/dist/dom.js +28 -19
- package/dist/dom.js.map +1 -1
- package/dist/element-entry.js +9 -6
- package/dist/element-entry.js.map +1 -1
- package/dist/element.d.ts +4 -2
- package/dist/element.d.ts.map +1 -1
- package/dist/element.js +384 -443
- package/dist/element.js.map +1 -1
- package/dist/elements/airplay-button.js +51 -53
- package/dist/elements/airplay-button.js.map +1 -1
- package/dist/elements/audio-menu.js +62 -63
- package/dist/elements/audio-menu.js.map +1 -1
- package/dist/elements/chapters-menu.d.ts.map +1 -1
- package/dist/elements/chapters-menu.js +75 -65
- package/dist/elements/chapters-menu.js.map +1 -1
- package/dist/elements/component.d.ts +1 -1
- package/dist/elements/component.d.ts.map +1 -1
- package/dist/elements/component.js +86 -89
- package/dist/elements/component.js.map +1 -1
- package/dist/elements/control-bar.d.ts +18 -5
- package/dist/elements/control-bar.d.ts.map +1 -1
- package/dist/elements/control-bar.js +282 -319
- package/dist/elements/control-bar.js.map +1 -1
- package/dist/elements/current-time.js +26 -25
- package/dist/elements/current-time.js.map +1 -1
- package/dist/elements/drm-badge.d.ts.map +1 -1
- package/dist/elements/drm-badge.js +107 -141
- package/dist/elements/drm-badge.js.map +1 -1
- package/dist/elements/duration.d.ts.map +1 -1
- package/dist/elements/duration.js +24 -21
- package/dist/elements/duration.js.map +1 -1
- package/dist/elements/error-screen.d.ts.map +1 -1
- package/dist/elements/error-screen.js +68 -102
- package/dist/elements/error-screen.js.map +1 -1
- package/dist/elements/fullscreen-button.js +48 -54
- package/dist/elements/fullscreen-button.js.map +1 -1
- package/dist/elements/live-button.d.ts.map +1 -1
- package/dist/elements/live-button.js +67 -94
- package/dist/elements/live-button.js.map +1 -1
- package/dist/elements/menu-element.js +31 -28
- package/dist/elements/menu-element.js.map +1 -1
- package/dist/elements/mute-button.js +58 -59
- package/dist/elements/mute-button.js.map +1 -1
- package/dist/elements/pip-button.js +54 -54
- package/dist/elements/pip-button.js.map +1 -1
- package/dist/elements/play-button.d.ts.map +1 -1
- package/dist/elements/play-button.js +73 -58
- package/dist/elements/play-button.js.map +1 -1
- package/dist/elements/quality-menu.js +66 -69
- package/dist/elements/quality-menu.js.map +1 -1
- package/dist/elements/remaining-time.d.ts.map +1 -1
- package/dist/elements/remaining-time.js +27 -24
- package/dist/elements/remaining-time.js.map +1 -1
- package/dist/elements/scan-button.d.ts +17 -0
- package/dist/elements/scan-button.d.ts.map +1 -0
- package/dist/elements/scan-button.js +117 -0
- package/dist/elements/scan-button.js.map +1 -0
- package/dist/elements/seek-bar.d.ts +93 -14
- package/dist/elements/seek-bar.d.ts.map +1 -1
- package/dist/elements/seek-bar.js +475 -335
- package/dist/elements/seek-bar.js.map +1 -1
- package/dist/elements/shared.d.ts +3 -11
- package/dist/elements/shared.d.ts.map +1 -1
- package/dist/elements/shared.js +44 -144
- package/dist/elements/shared.js.map +1 -1
- package/dist/elements/skip-button.d.ts.map +1 -1
- package/dist/elements/skip-button.js +54 -55
- package/dist/elements/skip-button.js.map +1 -1
- package/dist/elements/spacer.d.ts.map +1 -1
- package/dist/elements/spacer.js +12 -7
- package/dist/elements/spacer.js.map +1 -1
- package/dist/elements/speed-menu.js +60 -55
- package/dist/elements/speed-menu.js.map +1 -1
- package/dist/elements/spinner.d.ts.map +1 -1
- package/dist/elements/spinner.js +52 -78
- package/dist/elements/spinner.js.map +1 -1
- package/dist/elements/start-button.d.ts.map +1 -1
- package/dist/elements/start-button.js +107 -120
- package/dist/elements/start-button.js.map +1 -1
- package/dist/elements/subtitles-menu.js +95 -103
- package/dist/elements/subtitles-menu.js.map +1 -1
- package/dist/elements/time-element.d.ts.map +1 -1
- package/dist/elements/time-element.js +36 -28
- package/dist/elements/time-element.js.map +1 -1
- package/dist/elements/title.d.ts.map +1 -1
- package/dist/elements/title.js +105 -137
- package/dist/elements/title.js.map +1 -1
- package/dist/elements/volume-slider.d.ts.map +1 -1
- package/dist/elements/volume-slider.js +47 -45
- package/dist/elements/volume-slider.js.map +1 -1
- package/dist/elements/volume.d.ts.map +1 -1
- package/dist/elements/volume.js +42 -50
- package/dist/elements/volume.js.map +1 -1
- package/dist/entries/airplay-button.js +7 -7
- package/dist/entries/airplay-button.js.map +1 -1
- package/dist/entries/audio-menu.js +7 -6
- package/dist/entries/audio-menu.js.map +1 -1
- package/dist/entries/chapters-menu.js +7 -7
- package/dist/entries/chapters-menu.js.map +1 -1
- package/dist/entries/control-bar.js +7 -6
- package/dist/entries/control-bar.js.map +1 -1
- package/dist/entries/current-time.js +7 -6
- package/dist/entries/current-time.js.map +1 -1
- package/dist/entries/drm-badge.js +7 -6
- package/dist/entries/drm-badge.js.map +1 -1
- package/dist/entries/duration.js +7 -6
- package/dist/entries/duration.js.map +1 -1
- package/dist/entries/error-screen.js +7 -6
- package/dist/entries/error-screen.js.map +1 -1
- package/dist/entries/fullscreen-button.js +7 -6
- package/dist/entries/fullscreen-button.js.map +1 -1
- package/dist/entries/live-button.js +7 -6
- package/dist/entries/live-button.js.map +1 -1
- package/dist/entries/mute-button.js +7 -6
- package/dist/entries/mute-button.js.map +1 -1
- package/dist/entries/pip-button.js +7 -6
- package/dist/entries/pip-button.js.map +1 -1
- package/dist/entries/play-button.js +7 -6
- package/dist/entries/play-button.js.map +1 -1
- package/dist/entries/quality-menu.js +7 -6
- package/dist/entries/quality-menu.js.map +1 -1
- package/dist/entries/remaining-time.js +7 -7
- package/dist/entries/remaining-time.js.map +1 -1
- package/dist/entries/scan-button.d.ts +5 -0
- package/dist/entries/scan-button.d.ts.map +1 -0
- package/dist/entries/scan-button.js +9 -0
- package/dist/entries/scan-button.js.map +1 -0
- package/dist/entries/seek-bar.js +7 -6
- package/dist/entries/seek-bar.js.map +1 -1
- package/dist/entries/skip-button.js +7 -6
- package/dist/entries/skip-button.js.map +1 -1
- package/dist/entries/spacer.js +7 -6
- package/dist/entries/spacer.js.map +1 -1
- package/dist/entries/speed-menu.js +7 -6
- package/dist/entries/speed-menu.js.map +1 -1
- package/dist/entries/spinner.js +7 -7
- package/dist/entries/spinner.js.map +1 -1
- package/dist/entries/start-button.js +7 -6
- package/dist/entries/start-button.js.map +1 -1
- package/dist/entries/subtitles-menu.js +7 -6
- package/dist/entries/subtitles-menu.js.map +1 -1
- package/dist/entries/title.js +7 -7
- package/dist/entries/title.js.map +1 -1
- package/dist/entries/volume-slider.js +7 -6
- package/dist/entries/volume-slider.js.map +1 -1
- package/dist/entries/volume.js +9 -8
- package/dist/entries/volume.js.map +1 -1
- package/dist/es2015/controls/chapters.js +40 -7
- package/dist/es2015/controls/cues.js +1 -8
- package/dist/es2015/controls/icons.js +3 -1
- package/dist/es2015/controls/menu.js +27 -8
- package/dist/es2015/controls/session.js +16 -4
- package/dist/es2015/controls/slider.js +5 -4
- package/dist/es2015/dom.js +10 -1
- package/dist/es2015/element.js +23 -7
- package/dist/es2015/elements/chapters-menu.js +18 -10
- package/dist/es2015/elements/control-bar.js +41 -35
- package/dist/es2015/elements/drm-badge.js +1 -25
- package/dist/es2015/elements/duration.js +2 -1
- package/dist/es2015/elements/error-screen.js +1 -30
- package/dist/es2015/elements/live-button.js +1 -29
- package/dist/es2015/elements/menu-element.js +2 -2
- package/dist/es2015/elements/play-button.js +10 -3
- package/dist/es2015/elements/remaining-time.js +2 -1
- package/dist/es2015/elements/scan-button.js +118 -0
- package/dist/es2015/elements/seek-bar.js +264 -71
- package/dist/es2015/elements/shared.js +5 -106
- package/dist/es2015/elements/skip-button.js +2 -1
- package/dist/es2015/elements/spacer.js +2 -1
- package/dist/es2015/elements/spinner.js +1 -32
- package/dist/es2015/elements/start-button.js +8 -26
- package/dist/es2015/elements/time-element.js +1 -4
- package/dist/es2015/elements/title.js +1 -45
- package/dist/es2015/elements/volume-slider.js +2 -1
- package/dist/es2015/elements/volume.js +1 -11
- package/dist/es2015/entries/scan-button.js +7 -0
- package/dist/es2015/index.js +3 -1
- package/dist/es2015/style.js +1 -101
- package/dist/es2015/tags.js +2 -1
- package/dist/host.js +19 -17
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -27
- package/dist/labels.js +13 -9
- package/dist/labels.js.map +1 -1
- package/dist/namespaces.d.ts +9 -26
- package/dist/namespaces.d.ts.map +1 -1
- package/dist/namespaces.js +6 -2
- package/dist/namespaces.js.map +1 -1
- package/dist/presets.js +33 -28
- package/dist/presets.js.map +1 -1
- package/dist/style.d.ts +1 -20
- package/dist/style.d.ts.map +1 -1
- package/dist/style.js +4 -100
- package/dist/style.js.map +1 -1
- package/dist/surface.js +25 -21
- package/dist/surface.js.map +1 -1
- package/dist/tags.d.ts +1 -0
- package/dist/tags.d.ts.map +1 -1
- package/dist/tags.js +31 -26
- package/dist/tags.js.map +1 -1
- package/package.json +4 -4
- package/dist/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.js","
|
|
1
|
+
{"version":3,"file":"title.js","names":[],"sources":["../../src/elements/title.ts"],"sourcesContent":["/**\n * <mbx-title>: the heading, the subheading and the artwork of what plays,\n * as a lower third across the picture above the bar: a scrim that fades\n * upward, the artwork in the first column, the two lines in the second,\n * so a heading alone sits on a band and never floats. The content comes\n * from attributes, `heading`,\n * `subheading` and `artwork`, because the stream carries none of it: a page\n * writes what it knows, and a Cast receiver writes what the sender said.\n * With none of the three the element draws nothing.\n *\n * Shown while the video is paused, which includes before the first play,\n * and hidden while it plays. The element carries `playing` for that rule,\n * so a page changes it in CSS: `mattebox-player[started] mbx-title\n * { display: none }` keeps it to the time before the first play, like the\n * poster, and `mattebox-player:hover mbx-title { display: flex }` brings it\n * back on hover. The height of the bar's rows, its box less the fade it\n * pads itself with, goes on the host as `--mbx-bar-rows`, so the text sits\n * just above the seek row while the band runs under the bar to the bottom\n * edge, one ramp with the bar's own fade. The scrim is the page's to\n * override. Placed first among the screens, so the start button, the\n * error screen and the spinner paint over its band.\n */\nimport { el } from '../dom.js';\nimport type { PlayerHost } from '../host.js';\nimport { Component } from './component.js';\nimport { style } from './shared.js';\nimport STYLE from './title.css?inline';\n\nexport class MbxTitle extends Component {\n static get observedAttributes(): readonly string[] {\n return ['heading', 'subheading', 'artwork'];\n }\n\n declare private readonly artwork: HTMLImageElement;\n declare private readonly heading: HTMLElement;\n declare private readonly subheading: HTMLElement;\n /** Watches the player's box: the height of the bar's rows decides where the text sits. */\n declare private resizer: ResizeObserver | null;\n\n constructor() {\n super();\n this.resizer = null;\n const root = this.attachShadow({ mode: 'open' });\n this.artwork = el('img', 'artwork');\n this.artwork.alt = '';\n this.artwork.hidden = true;\n const text = el('div', 'text');\n this.heading = el('div', 'heading');\n this.subheading = el('div', 'subheading');\n text.append(this.heading, this.subheading);\n root.append(style(STYLE), this.artwork, text);\n }\n\n protected override attach(player: PlayerHost): void {\n this.listen(player.video, ['play', 'pause', 'ended', 'emptied'], () => {\n this.state(player);\n });\n if (typeof ResizeObserver !== 'undefined') {\n this.resizer = new ResizeObserver(() => {\n this.fit(player);\n });\n this.resizer.observe(player);\n }\n this.fit(player);\n this.state(player);\n this.render();\n }\n\n protected override detach(): void {\n this.resizer?.disconnect();\n this.resizer = null;\n this.removeAttribute('playing');\n this.style.removeProperty('--mbx-bar-rows');\n }\n\n /** `playing` on the element, for its own stylesheet and the page's. */\n private state(player: PlayerHost): void {\n this.toggleAttribute('playing', !player.video.paused);\n }\n\n /** The height of the bar's rows: its box less the padding above them, which is its fade. Zero without a bar. */\n private fit(player: PlayerHost): void {\n const bar = player.querySelector('mbx-control-bar');\n let rows = 0;\n if (bar !== null) {\n const top = Number.parseFloat(getComputedStyle(bar).paddingTop) || 0;\n rows = Math.max(0, bar.getBoundingClientRect().height - top);\n }\n this.style.setProperty('--mbx-bar-rows', `${rows}px`);\n }\n\n protected override render(): void {\n const heading = this.getAttribute('heading') ?? '';\n const subheading = this.getAttribute('subheading') ?? '';\n const artwork = this.getAttribute('artwork');\n this.heading.textContent = heading;\n this.subheading.textContent = subheading;\n if (artwork === null) {\n this.artwork.removeAttribute('src');\n this.artwork.hidden = true;\n } else {\n this.artwork.src = artwork;\n this.artwork.hidden = false;\n }\n this.toggleAttribute('empty', heading === '' && subheading === '' && artwork === null);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAA,QAAA;AAEA,IAAA,WAAA,cAAA,UAAA;CACA,WAAA,qBAAA;EACA,OAAA;GAAA;GAAA;GAAA;EAAA;CACA;CAQA,cAAA;EACA,MAAA;EACA,KAAA,UAAA;EACA,MAAA,OAAA,KAAA,aAAA,EAAA,MAAA,OAAA,CAAA;EACA,KAAA,UAAA,GAAA,OAAA,SAAA;EACA,KAAA,QAAA,MAAA;EACA,KAAA,QAAA,SAAA;EACA,MAAA,OAAA,GAAA,OAAA,MAAA;EACA,KAAA,UAAA,GAAA,OAAA,SAAA;EACA,KAAA,aAAA,GAAA,OAAA,YAAA;EACA,KAAA,OAAA,KAAA,SAAA,KAAA,UAAA;EACA,KAAA,OAAA,MAAA,KAAA,GAAA,KAAA,SAAA,IAAA;CACA;CAEA,OAAA,QAAA;EACA,KAAA,OAAA,OAAA,OAAA;GAAA;GAAA;GAAA;GAAA;EAAA,SAAA;GACA,KAAA,MAAA,MAAA;EACA,CAAA;EACA,IAAA,OAAA,mBAAA,aAAA;GACA,KAAA,UAAA,IAAA,qBAAA;IACA,KAAA,IAAA,MAAA;GACA,CAAA;GACA,KAAA,QAAA,QAAA,MAAA;EACA;EACA,KAAA,IAAA,MAAA;EACA,KAAA,MAAA,MAAA;EACA,KAAA,OAAA;CACA;CAEA,SAAA;EACA,KAAA,SAAA,WAAA;EACA,KAAA,UAAA;EACA,KAAA,gBAAA,SAAA;EACA,KAAA,MAAA,eAAA,gBAAA;CACA;;CAGA,MAAA,QAAA;EACA,KAAA,gBAAA,WAAA,CAAA,OAAA,MAAA,MAAA;CACA;;CAGA,IAAA,QAAA;EACA,MAAA,MAAA,OAAA,cAAA,iBAAA;EACA,IAAA,OAAA;EACA,IAAA,QAAA,MAAA;GACA,MAAA,MAAA,OAAA,WAAA,iBAAA,GAAA,CAAA,CAAA,UAAA,KAAA;GACA,OAAA,KAAA,IAAA,GAAA,IAAA,sBAAA,CAAA,CAAA,SAAA,GAAA;EACA;EACA,KAAA,MAAA,YAAA,kBAAA,GAAA,KAAA,GAAA;CACA;CAEA,SAAA;EACA,MAAA,UAAA,KAAA,aAAA,SAAA,KAAA;EACA,MAAA,aAAA,KAAA,aAAA,YAAA,KAAA;EACA,MAAA,UAAA,KAAA,aAAA,SAAA;EACA,KAAA,QAAA,cAAA;EACA,KAAA,WAAA,cAAA;EACA,IAAA,YAAA,MAAA;GACA,KAAA,QAAA,gBAAA,KAAA;GACA,KAAA,QAAA,SAAA;EACA,OAAA;GACA,KAAA,QAAA,MAAA;GACA,KAAA,QAAA,SAAA;EACA;EACA,KAAA,gBAAA,SAAA,YAAA,MAAA,eAAA,MAAA,YAAA,IAAA;CACA;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volume-slider.d.ts","sourceRoot":"","sources":["../../src/elements/volume-slider.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"volume-slider.d.ts","sourceRoot":"","sources":["../../src/elements/volume-slider.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAO3C,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,MAAM,KAAK,kBAAkB,IAAI,SAAS,MAAM,EAAE,CAEjD;IAED,iBAAyB,GAAG,CAAS;;cAsBlB,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;cAOhC,MAAM,IAAI,IAAI;CAOlC"}
|
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
import { Component } from "./component.js";
|
|
2
|
+
import { SLIDER_STYLE, number, style } from "./shared.js";
|
|
3
|
+
import { slider } from "../controls/slider.js";
|
|
4
|
+
//#region src/elements/volume-slider.ts
|
|
5
|
+
const VOLUME_SLIDER_CSS = ":host{flex:none;width:80px}";
|
|
6
|
+
const STEP = .05;
|
|
7
|
+
const PAGE = .2;
|
|
8
|
+
var MbxVolumeSlider = class extends Component {
|
|
9
|
+
static get observedAttributes() {
|
|
10
|
+
return ["label"];
|
|
11
|
+
}
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
const root = this.attachShadow({ mode: "open" });
|
|
15
|
+
this.bar = slider({
|
|
16
|
+
step: () => number(this, "step", STEP),
|
|
17
|
+
page: () => number(this, "page", PAGE),
|
|
18
|
+
onInput: (value) => {
|
|
19
|
+
const video = this.player?.video;
|
|
20
|
+
if (video === void 0) return;
|
|
21
|
+
video.volume = value;
|
|
22
|
+
if (value > 0) video.muted = false;
|
|
23
|
+
},
|
|
24
|
+
onDrag: (on) => {
|
|
25
|
+
this.toggleAttribute("dragging", on);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
this.bar.range(0, 1);
|
|
29
|
+
root.append(style(SLIDER_STYLE + VOLUME_SLIDER_CSS), this.bar.root);
|
|
30
|
+
}
|
|
31
|
+
attach(player) {
|
|
32
|
+
this.listen(player.video, ["volumechange", "emptied"], () => {
|
|
33
|
+
this.render();
|
|
34
|
+
});
|
|
35
|
+
this.render();
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
const video = this.player?.video;
|
|
39
|
+
if (video === void 0) return;
|
|
40
|
+
this.bar.label(this.getAttribute("label") ?? "Volume");
|
|
41
|
+
const level = video.muted ? 0 : video.volume;
|
|
42
|
+
this.bar.set(level, `${Math.round(level * 100)}%`);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { MbxVolumeSlider };
|
|
47
|
+
|
|
46
48
|
//# sourceMappingURL=volume-slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volume-slider.js","
|
|
1
|
+
{"version":3,"file":"volume-slider.js","names":[],"sources":["../../src/elements/volume-slider.ts"],"sourcesContent":["/**\n * <mbx-volume-slider>: the volume over the slider primitive. It shows\n * zero while muted, and writing any level above zero unmutes: dragging\n * the volume up is how a viewer says they want to hear it. `step` is\n * what an arrow key moves it by and `page` what Page Up and Page Down\n * do, as fractions of one; the name comes from `label`. While a pointer\n * holds the thumb the element carries `dragging`.\n */\nimport type { Slider } from '../controls/slider.js';\nimport { slider } from '../controls/slider.js';\nimport type { PlayerHost } from '../host.js';\nimport { Component } from './component.js';\nimport { number, SLIDER_STYLE, style } from './shared.js';\nimport VOLUME_SLIDER_CSS from './volume-slider.css?inline';\n\nconst STEP = 0.05;\nconst PAGE = 0.2;\n\nexport class MbxVolumeSlider extends Component {\n static get observedAttributes(): readonly string[] {\n return ['label'];\n }\n\n declare private readonly bar: Slider;\n\n constructor() {\n super();\n const root = this.attachShadow({ mode: 'open' });\n this.bar = slider({\n step: () => number(this, 'step', STEP),\n page: () => number(this, 'page', PAGE),\n onInput: (value) => {\n const video = this.player?.video;\n if (video === undefined) return;\n video.volume = value;\n if (value > 0) video.muted = false;\n },\n onDrag: (on) => {\n this.toggleAttribute('dragging', on);\n },\n });\n this.bar.range(0, 1);\n root.append(style(SLIDER_STYLE + VOLUME_SLIDER_CSS), this.bar.root);\n }\n\n protected override attach(player: PlayerHost): void {\n this.listen(player.video, ['volumechange', 'emptied'], () => {\n this.render();\n });\n this.render();\n }\n\n protected override render(): void {\n const video = this.player?.video;\n if (video === undefined) return;\n this.bar.label(this.getAttribute('label') ?? 'Volume');\n const level = video.muted ? 0 : video.volume;\n this.bar.set(level, `${Math.round(level * 100)}%`);\n }\n}\n"],"mappings":";;;;AAaA,MAAA,oBAAA;AAEA,MAAA,OAAA;AACA,MAAA,OAAA;AAEA,IAAA,kBAAA,cAAA,UAAA;CACA,WAAA,qBAAA;EACA,OAAA,CAAA,OAAA;CACA;CAIA,cAAA;EACA,MAAA;EACA,MAAA,OAAA,KAAA,aAAA,EAAA,MAAA,OAAA,CAAA;EACA,KAAA,MAAA,OAAA;GACA,YAAA,OAAA,MAAA,QAAA,IAAA;GACA,YAAA,OAAA,MAAA,QAAA,IAAA;GACA,UAAA,UAAA;IACA,MAAA,QAAA,KAAA,QAAA;IACA,IAAA,UAAA,KAAA,GAAA;IACA,MAAA,SAAA;IACA,IAAA,QAAA,GAAA,MAAA,QAAA;GACA;GACA,SAAA,OAAA;IACA,KAAA,gBAAA,YAAA,EAAA;GACA;EACA,CAAA;EACA,KAAA,IAAA,MAAA,GAAA,CAAA;EACA,KAAA,OAAA,MAAA,eAAA,iBAAA,GAAA,KAAA,IAAA,IAAA;CACA;CAEA,OAAA,QAAA;EACA,KAAA,OAAA,OAAA,OAAA,CAAA,gBAAA,SAAA,SAAA;GACA,KAAA,OAAA;EACA,CAAA;EACA,KAAA,OAAA;CACA;CAEA,SAAA;EACA,MAAA,QAAA,KAAA,QAAA;EACA,IAAA,UAAA,KAAA,GAAA;EACA,KAAA,IAAA,MAAA,KAAA,aAAA,OAAA,KAAA,QAAA;EACA,MAAA,QAAA,MAAA,QAAA,IAAA,MAAA;EACA,KAAA,IAAA,IAAA,OAAA,GAAA,KAAA,MAAA,QAAA,GAAA,EAAA,EAAA;CACA;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volume.d.ts","sourceRoot":"","sources":["../../src/elements/volume.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"volume.d.ts","sourceRoot":"","sources":["../../src/elements/volume.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAI3C,qBAAa,SAAU,SAAQ,SAAS;;IAMtC,iFAAiF;IACxE,iBAAiB,IAAI,IAAI;cAOf,MAAM,IAAI,IAAI;cASd,MAAM,IAAI,IAAI;CAGlC"}
|
package/dist/elements/volume.js
CHANGED
|
@@ -1,52 +1,44 @@
|
|
|
1
|
+
import { MUTE_BUTTON, VOLUME_SLIDER } from "../tags.js";
|
|
2
|
+
import { Component } from "./component.js";
|
|
3
|
+
import { style } from "./shared.js";
|
|
4
|
+
//#region src/elements/volume.ts
|
|
1
5
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
attach() {
|
|
41
|
-
this.listen(this, ['pointerdown'], () => {
|
|
42
|
-
this.toggleAttribute('pointer', true);
|
|
43
|
-
});
|
|
44
|
-
this.listen(this, ['keydown', 'focusout'], () => {
|
|
45
|
-
this.removeAttribute('pointer');
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
detach() {
|
|
49
|
-
this.removeAttribute('pointer');
|
|
50
|
-
}
|
|
51
|
-
}
|
|
6
|
+
* <mbx-volume>: the mute button with the slider unfolding from it under
|
|
7
|
+
* the pointer or keyboard focus, the way a bar keeps its width for the
|
|
8
|
+
* rest. The two are its children, in light DOM, so the page labels and
|
|
9
|
+
* styles each; a group left empty fills itself with both. The slider
|
|
10
|
+
* folds to nothing otherwise, and a page that wants it always out sets
|
|
11
|
+
* its width on `mbx-volume-slider` itself.
|
|
12
|
+
*
|
|
13
|
+
* Keyboard focus, not any focus: a click leaves focus on the mute button,
|
|
14
|
+
* and a slider that stayed out until something else took it would read as
|
|
15
|
+
* stuck. So the group carries `pointer` from a pointer press until a key
|
|
16
|
+
* is pressed or focus leaves, and focus unfolds the slider only without it.
|
|
17
|
+
*/
|
|
18
|
+
const STYLE = ":host{align-items:center;display:inline-flex}:host([hidden]){display:none}::slotted(mbx-volume-slider){opacity:0;width:0;transition:width .2s,opacity .2s;overflow:hidden}::slotted(mbx-volume-slider[collapsed]){display:none}:host(:hover) ::slotted(mbx-volume-slider),:host(:focus-within:not([pointer])) ::slotted(mbx-volume-slider){opacity:1;width:80px}@media (prefers-reduced-motion:reduce){::slotted(mbx-volume-slider){transition:none}}";
|
|
19
|
+
var MbxVolume = class extends Component {
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
this.attachShadow({ mode: "open" }).append(style(STYLE), document.createElement("slot"));
|
|
23
|
+
}
|
|
24
|
+
/** Both parts, when the page wrote none: a constructor must not add children. */
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
if (this.childElementCount === 0) this.append(document.createElement(MUTE_BUTTON), document.createElement(VOLUME_SLIDER));
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
}
|
|
29
|
+
attach() {
|
|
30
|
+
this.listen(this, ["pointerdown"], () => {
|
|
31
|
+
this.toggleAttribute("pointer", true);
|
|
32
|
+
});
|
|
33
|
+
this.listen(this, ["keydown", "focusout"], () => {
|
|
34
|
+
this.removeAttribute("pointer");
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
detach() {
|
|
38
|
+
this.removeAttribute("pointer");
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { MbxVolume };
|
|
43
|
+
|
|
52
44
|
//# sourceMappingURL=volume.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volume.js","
|
|
1
|
+
{"version":3,"file":"volume.js","names":[],"sources":["../../src/elements/volume.ts"],"sourcesContent":["/**\n * <mbx-volume>: the mute button with the slider unfolding from it under\n * the pointer or keyboard focus, the way a bar keeps its width for the\n * rest. The two are its children, in light DOM, so the page labels and\n * styles each; a group left empty fills itself with both. The slider\n * folds to nothing otherwise, and a page that wants it always out sets\n * its width on `mbx-volume-slider` itself.\n *\n * Keyboard focus, not any focus: a click leaves focus on the mute button,\n * and a slider that stayed out until something else took it would read as\n * stuck. So the group carries `pointer` from a pointer press until a key\n * is pressed or focus leaves, and focus unfolds the slider only without it.\n */\nimport { MUTE_BUTTON, VOLUME_SLIDER } from '../tags.js';\nimport { Component } from './component.js';\nimport { style } from './shared.js';\nimport STYLE from './volume.css?inline';\n\nexport class MbxVolume extends Component {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' }).append(style(STYLE), document.createElement('slot'));\n }\n\n /** Both parts, when the page wrote none: a constructor must not add children. */\n override connectedCallback(): void {\n if (this.childElementCount === 0) {\n this.append(document.createElement(MUTE_BUTTON), document.createElement(VOLUME_SLIDER));\n }\n super.connectedCallback();\n }\n\n protected override attach(): void {\n this.listen(this, ['pointerdown'], () => {\n this.toggleAttribute('pointer', true);\n });\n this.listen(this, ['keydown', 'focusout'], () => {\n this.removeAttribute('pointer');\n });\n }\n\n protected override detach(): void {\n this.removeAttribute('pointer');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAA,QAAA;AAEA,IAAA,YAAA,cAAA,UAAA;CACA,cAAA;EACA,MAAA;EACA,KAAA,aAAA,EAAA,MAAA,OAAA,CAAA,CAAA,CAAA,OAAA,MAAA,KAAA,GAAA,SAAA,cAAA,MAAA,CAAA;CACA;;CAGA,oBAAA;EACA,IAAA,KAAA,sBAAA,GACA,KAAA,OAAA,SAAA,cAAA,WAAA,GAAA,SAAA,cAAA,aAAA,CAAA;EAEA,MAAA,kBAAA;CACA;CAEA,SAAA;EACA,KAAA,OAAA,MAAA,CAAA,aAAA,SAAA;GACA,KAAA,gBAAA,WAAA,IAAA;EACA,CAAA;EACA,KAAA,OAAA,MAAA,CAAA,WAAA,UAAA,SAAA;GACA,KAAA,gBAAA,SAAA;EACA,CAAA;CACA;CAEA,SAAA;EACA,KAAA,gBAAA,SAAA;CACA;AACA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxAirplayButton } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { AIRPLAY_BUTTON } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxAirplayButton } from "../elements/airplay-button.js";
|
|
4
|
+
//#region src/entries/airplay-button.ts
|
|
5
|
+
if (customElements.get("mbx-airplay-button") === void 0) customElements.define(AIRPLAY_BUTTON, MbxAirplayButton);
|
|
6
|
+
//#endregion
|
|
8
7
|
export { MbxAirplayButton };
|
|
8
|
+
|
|
9
9
|
//# sourceMappingURL=airplay-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"airplay-button.js","
|
|
1
|
+
{"version":3,"file":"airplay-button.js","names":[],"sources":["../../src/entries/airplay-button.ts"],"sourcesContent":["/** `@mattebox/player/elements/airplay-button`: registers <mbx-airplay-button>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxAirplayButton } from '../elements/airplay-button.js';\nimport { AIRPLAY_BUTTON } from '../tags.js';\n\nif (customElements.get(AIRPLAY_BUTTON) === undefined) {\n customElements.define(AIRPLAY_BUTTON, MbxAirplayButton);\n}\n\nexport { MbxAirplayButton };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,oBAAkB,MAAM,KAAA,GACzC,eAAe,OAAO,gBAAgB,gBAAgB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxAudioMenu } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { AUDIO_MENU } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxAudioMenu } from "../elements/audio-menu.js";
|
|
4
|
+
//#region src/entries/audio-menu.ts
|
|
5
|
+
if (customElements.get("mbx-audio-menu") === void 0) customElements.define(AUDIO_MENU, MbxAudioMenu);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxAudioMenu };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=audio-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-menu.js","
|
|
1
|
+
{"version":3,"file":"audio-menu.js","names":[],"sources":["../../src/entries/audio-menu.ts"],"sourcesContent":["/** `@mattebox/player/elements/audio-menu`: registers <mbx-audio-menu>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxAudioMenu } from '../elements/audio-menu.js';\nimport { AUDIO_MENU } from '../tags.js';\n\nif (customElements.get(AUDIO_MENU) === undefined) customElements.define(AUDIO_MENU, MbxAudioMenu);\n\nexport { MbxAudioMenu };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,gBAAc,MAAM,KAAA,GAAW,eAAe,OAAO,YAAY,YAAY"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxChaptersMenu } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { CHAPTERS_MENU } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxChaptersMenu } from "../elements/chapters-menu.js";
|
|
4
|
+
//#region src/entries/chapters-menu.ts
|
|
5
|
+
if (customElements.get("mbx-chapters-menu") === void 0) customElements.define(CHAPTERS_MENU, MbxChaptersMenu);
|
|
6
|
+
//#endregion
|
|
8
7
|
export { MbxChaptersMenu };
|
|
8
|
+
|
|
9
9
|
//# sourceMappingURL=chapters-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chapters-menu.js","
|
|
1
|
+
{"version":3,"file":"chapters-menu.js","names":[],"sources":["../../src/entries/chapters-menu.ts"],"sourcesContent":["/** `@mattebox/player/elements/chapters-menu`: registers <mbx-chapters-menu>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxChaptersMenu } from '../elements/chapters-menu.js';\nimport { CHAPTERS_MENU } from '../tags.js';\n\nif (customElements.get(CHAPTERS_MENU) === undefined) {\n customElements.define(CHAPTERS_MENU, MbxChaptersMenu);\n}\n\nexport { MbxChaptersMenu };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,mBAAiB,MAAM,KAAA,GACxC,eAAe,OAAO,eAAe,eAAe"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxControlBar } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { CONTROL_BAR } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxControlBar } from "../elements/control-bar.js";
|
|
4
|
+
//#region src/entries/control-bar.ts
|
|
5
|
+
if (customElements.get("mbx-control-bar") === void 0) customElements.define(CONTROL_BAR, MbxControlBar);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxControlBar };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=control-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-bar.js","
|
|
1
|
+
{"version":3,"file":"control-bar.js","names":[],"sources":["../../src/entries/control-bar.ts"],"sourcesContent":["/** `@mattebox/player/elements/control-bar`: registers <mbx-control-bar>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxControlBar } from '../elements/control-bar.js';\nimport { CONTROL_BAR } from '../tags.js';\n\nif (customElements.get(CONTROL_BAR) === undefined)\n customElements.define(CONTROL_BAR, MbxControlBar);\n\nexport { MbxControlBar };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,iBAAe,MAAM,KAAA,GACtC,eAAe,OAAO,aAAa,aAAa"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxCurrentTime } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { CURRENT_TIME } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxCurrentTime } from "../elements/current-time.js";
|
|
4
|
+
//#region src/entries/current-time.ts
|
|
5
|
+
if (customElements.get("mbx-current-time") === void 0) customElements.define(CURRENT_TIME, MbxCurrentTime);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxCurrentTime };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=current-time.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"current-time.js","
|
|
1
|
+
{"version":3,"file":"current-time.js","names":[],"sources":["../../src/entries/current-time.ts"],"sourcesContent":["/** `@mattebox/player/elements/current-time`: registers <mbx-current-time>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxCurrentTime } from '../elements/current-time.js';\nimport { CURRENT_TIME } from '../tags.js';\n\nif (customElements.get(CURRENT_TIME) === undefined)\n customElements.define(CURRENT_TIME, MbxCurrentTime);\n\nexport { MbxCurrentTime };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,kBAAgB,MAAM,KAAA,GACvC,eAAe,OAAO,cAAc,cAAc"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxDrmBadge } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { DRM_BADGE } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxDrmBadge } from "../elements/drm-badge.js";
|
|
4
|
+
//#region src/entries/drm-badge.ts
|
|
5
|
+
if (customElements.get("mbx-drm-badge") === void 0) customElements.define(DRM_BADGE, MbxDrmBadge);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxDrmBadge };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=drm-badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drm-badge.js","
|
|
1
|
+
{"version":3,"file":"drm-badge.js","names":[],"sources":["../../src/entries/drm-badge.ts"],"sourcesContent":["/** `@mattebox/player/elements/drm-badge`: registers <mbx-drm-badge>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxDrmBadge } from '../elements/drm-badge.js';\nimport { DRM_BADGE } from '../tags.js';\n\nif (customElements.get(DRM_BADGE) === undefined) customElements.define(DRM_BADGE, MbxDrmBadge);\n\nexport { MbxDrmBadge };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,eAAa,MAAM,KAAA,GAAW,eAAe,OAAO,WAAW,WAAW"}
|
package/dist/entries/duration.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxDuration } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { DURATION } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxDuration } from "../elements/duration.js";
|
|
4
|
+
//#region src/entries/duration.ts
|
|
5
|
+
if (customElements.get("mbx-duration") === void 0) customElements.define(DURATION, MbxDuration);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxDuration };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=duration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.js","
|
|
1
|
+
{"version":3,"file":"duration.js","names":[],"sources":["../../src/entries/duration.ts"],"sourcesContent":["/** `@mattebox/player/elements/duration`: registers <mbx-duration>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxDuration } from '../elements/duration.js';\nimport { DURATION } from '../tags.js';\n\nif (customElements.get(DURATION) === undefined) customElements.define(DURATION, MbxDuration);\n\nexport { MbxDuration };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,cAAY,MAAM,KAAA,GAAW,eAAe,OAAO,UAAU,WAAW"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxErrorScreen } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { ERROR_SCREEN } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxErrorScreen } from "../elements/error-screen.js";
|
|
4
|
+
//#region src/entries/error-screen.ts
|
|
5
|
+
if (customElements.get("mbx-error-screen") === void 0) customElements.define(ERROR_SCREEN, MbxErrorScreen);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxErrorScreen };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=error-screen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-screen.js","
|
|
1
|
+
{"version":3,"file":"error-screen.js","names":[],"sources":["../../src/entries/error-screen.ts"],"sourcesContent":["/** `@mattebox/player/elements/error-screen`: registers <mbx-error-screen>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxErrorScreen } from '../elements/error-screen.js';\nimport { ERROR_SCREEN } from '../tags.js';\n\nif (customElements.get(ERROR_SCREEN) === undefined)\n customElements.define(ERROR_SCREEN, MbxErrorScreen);\n\nexport { MbxErrorScreen };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,kBAAgB,MAAM,KAAA,GACvC,eAAe,OAAO,cAAc,cAAc"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxFullscreenButton } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { FULLSCREEN_BUTTON } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxFullscreenButton } from "../elements/fullscreen-button.js";
|
|
4
|
+
//#region src/entries/fullscreen-button.ts
|
|
5
|
+
if (customElements.get("mbx-fullscreen-button") === void 0) customElements.define(FULLSCREEN_BUTTON, MbxFullscreenButton);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxFullscreenButton };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=fullscreen-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fullscreen-button.js","
|
|
1
|
+
{"version":3,"file":"fullscreen-button.js","names":[],"sources":["../../src/entries/fullscreen-button.ts"],"sourcesContent":["/** `@mattebox/player/elements/fullscreen-button`: registers <mbx-fullscreen-button>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxFullscreenButton } from '../elements/fullscreen-button.js';\nimport { FULLSCREEN_BUTTON } from '../tags.js';\n\nif (customElements.get(FULLSCREEN_BUTTON) === undefined)\n customElements.define(FULLSCREEN_BUTTON, MbxFullscreenButton);\n\nexport { MbxFullscreenButton };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,uBAAqB,MAAM,KAAA,GAC5C,eAAe,OAAO,mBAAmB,mBAAmB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxLiveButton } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { LIVE_BUTTON } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxLiveButton } from "../elements/live-button.js";
|
|
4
|
+
//#region src/entries/live-button.ts
|
|
5
|
+
if (customElements.get("mbx-live-button") === void 0) customElements.define(LIVE_BUTTON, MbxLiveButton);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxLiveButton };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=live-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-button.js","
|
|
1
|
+
{"version":3,"file":"live-button.js","names":[],"sources":["../../src/entries/live-button.ts"],"sourcesContent":["/** `@mattebox/player/elements/live-button`: registers <mbx-live-button>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxLiveButton } from '../elements/live-button.js';\nimport { LIVE_BUTTON } from '../tags.js';\n\nif (customElements.get(LIVE_BUTTON) === undefined)\n customElements.define(LIVE_BUTTON, MbxLiveButton);\n\nexport { MbxLiveButton };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,iBAAe,MAAM,KAAA,GACtC,eAAe,OAAO,aAAa,aAAa"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxMuteButton } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { MUTE_BUTTON } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxMuteButton } from "../elements/mute-button.js";
|
|
4
|
+
//#region src/entries/mute-button.ts
|
|
5
|
+
if (customElements.get("mbx-mute-button") === void 0) customElements.define(MUTE_BUTTON, MbxMuteButton);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxMuteButton };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=mute-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mute-button.js","
|
|
1
|
+
{"version":3,"file":"mute-button.js","names":[],"sources":["../../src/entries/mute-button.ts"],"sourcesContent":["/** `@mattebox/player/elements/mute-button`: registers <mbx-mute-button>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxMuteButton } from '../elements/mute-button.js';\nimport { MUTE_BUTTON } from '../tags.js';\n\nif (customElements.get(MUTE_BUTTON) === undefined)\n customElements.define(MUTE_BUTTON, MbxMuteButton);\n\nexport { MbxMuteButton };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,iBAAe,MAAM,KAAA,GACtC,eAAe,OAAO,aAAa,aAAa"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { MbxPipButton } from
|
|
4
|
-
|
|
5
|
-
if (customElements.get(
|
|
6
|
-
|
|
1
|
+
import { PIP_BUTTON } from "../tags.js";
|
|
2
|
+
import "../element-entry.js";
|
|
3
|
+
import { MbxPipButton } from "../elements/pip-button.js";
|
|
4
|
+
//#region src/entries/pip-button.ts
|
|
5
|
+
if (customElements.get("mbx-pip-button") === void 0) customElements.define(PIP_BUTTON, MbxPipButton);
|
|
6
|
+
//#endregion
|
|
7
7
|
export { MbxPipButton };
|
|
8
|
+
|
|
8
9
|
//# sourceMappingURL=pip-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-button.js","
|
|
1
|
+
{"version":3,"file":"pip-button.js","names":[],"sources":["../../src/entries/pip-button.ts"],"sourcesContent":["/** `@mattebox/player/elements/pip-button`: registers <mbx-pip-button>, and the player with it. */\nimport '../element-entry.js';\nimport { MbxPipButton } from '../elements/pip-button.js';\nimport { PIP_BUTTON } from '../tags.js';\n\nif (customElements.get(PIP_BUTTON) === undefined) customElements.define(PIP_BUTTON, MbxPipButton);\n\nexport { MbxPipButton };\n"],"mappings":";;;;AAKA,IAAI,eAAe,IAAA,gBAAc,MAAM,KAAA,GAAW,eAAe,OAAO,YAAY,YAAY"}
|