@mattebox/player 0.12.0 → 0.13.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 -3
- package/dist/controls/breaks.d.ts +24 -0
- package/dist/controls/breaks.d.ts.map +1 -0
- package/dist/controls/breaks.js +20 -0
- package/dist/controls/breaks.js.map +1 -0
- package/dist/element-entry.d.ts +1 -1
- package/dist/element-entry.d.ts.map +1 -1
- package/dist/element-entry.js.map +1 -1
- package/dist/element.d.ts +46 -1
- package/dist/element.d.ts.map +1 -1
- package/dist/element.js +89 -6
- package/dist/element.js.map +1 -1
- package/dist/elements/marker-button.d.ts +1 -0
- package/dist/elements/marker-button.d.ts.map +1 -1
- package/dist/elements/marker-button.js +12 -8
- package/dist/elements/marker-button.js.map +1 -1
- package/dist/elements/seek-bar.d.ts +4 -0
- package/dist/elements/seek-bar.d.ts.map +1 -1
- package/dist/elements/seek-bar.js +19 -3
- package/dist/elements/seek-bar.js.map +1 -1
- package/dist/es2015/controls/breaks.js +18 -0
- package/dist/es2015/element.js +160 -66
- package/dist/es2015/elements/marker-button.js +12 -8
- package/dist/es2015/elements/seek-bar.js +25 -7
- package/dist/host.d.ts +31 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from "./component.js";
|
|
2
2
|
import { BUTTON_STYLE, style } from "./shared.js";
|
|
3
3
|
// src/elements/marker-button.ts
|
|
4
|
-
const STYLE_CSS = ":host{right:calc(var(--mbx-pad,.5em) + .5em);bottom:calc(var(--mbx-marker-lift,3.5em) + .75em);z-index:1;
|
|
4
|
+
const STYLE_CSS = ":host{right:calc(var(--mbx-pad,.5em) + .5em);bottom:calc(var(--mbx-marker-lift,3.5em) + .75em);z-index:1;position:absolute}:host([hidden]){display:none}[part~=button]{border-radius:var(--mbx-radius);backdrop-filter:blur(12px);width:auto;height:2.75em;color:var(--mbx-text);font:inherit;white-space:nowrap;background:#1c1c20b8;border:0;align-items:center;padding:0 .85em 0 1.1em;font-size:1.07em;font-weight:600;display:inline-flex}[part~=button]:hover{background:#1c1c20e6}[part~=icon]{fill:none;stroke:currentColor;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;width:1.25em;height:1.25em;margin-inline-start:.3em}";
|
|
5
5
|
/** The id and the English of the button over each kind of range. */
|
|
6
6
|
const WORDS = {
|
|
7
7
|
"opening-credits": ["skipIntro", "Skip intro"],
|
|
@@ -23,7 +23,16 @@ var MbxMarkerButton = class extends Component {
|
|
|
23
23
|
this.button = document.createElement("button");
|
|
24
24
|
this.button.type = "button";
|
|
25
25
|
this.button.setAttribute("part", "button");
|
|
26
|
-
this.
|
|
26
|
+
this.text = document.createElement("span");
|
|
27
|
+
this.text.textContent = "Skip";
|
|
28
|
+
const chevron = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
29
|
+
chevron.setAttribute("viewBox", "0 0 32 32");
|
|
30
|
+
chevron.setAttribute("aria-hidden", "true");
|
|
31
|
+
chevron.setAttribute("part", "icon");
|
|
32
|
+
const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
33
|
+
path.setAttribute("d", "M12 8l8 8l-8 8");
|
|
34
|
+
chevron.append(path);
|
|
35
|
+
this.button.append(this.text, chevron);
|
|
27
36
|
this.button.addEventListener("click", () => {
|
|
28
37
|
var _this$player;
|
|
29
38
|
const video = (_this$player = this.player) === null || _this$player === void 0 ? void 0 : _this$player.video;
|
|
@@ -49,11 +58,6 @@ var MbxMarkerButton = class extends Component {
|
|
|
49
58
|
this.observe(player, ["upnext"], () => {
|
|
50
59
|
this.render();
|
|
51
60
|
});
|
|
52
|
-
const idle = () => {
|
|
53
|
-
this.toggleAttribute("idle", player.hasAttribute("idle"));
|
|
54
|
-
};
|
|
55
|
-
this.observe(player, ["idle"], idle);
|
|
56
|
-
idle();
|
|
57
61
|
if (typeof ResizeObserver !== "undefined") {
|
|
58
62
|
this.resizer = new ResizeObserver(() => {
|
|
59
63
|
this.fit(player);
|
|
@@ -91,7 +95,7 @@ var MbxMarkerButton = class extends Component {
|
|
|
91
95
|
const kind = this.marker.kind;
|
|
92
96
|
const skip = this.word("label-skip", "skip", "Skip");
|
|
93
97
|
const known = WORDS[kind];
|
|
94
|
-
this.
|
|
98
|
+
this.text.textContent = known !== void 0 ? this.word(`label-${kind}`, ...known) : (_this$getAttribute = this.getAttribute(`label-${kind}`)) !== null && _this$getAttribute !== void 0 ? _this$getAttribute : this.marker.label === void 0 ? skip : `${skip} ${this.pageText(this.marker.label)}`;
|
|
95
99
|
}
|
|
96
100
|
};
|
|
97
101
|
export { MbxMarkerButton };
|
|
@@ -8,7 +8,7 @@ import { bufferGoal, live, optional, span, wall } from "../controls/session.js";
|
|
|
8
8
|
import { chapterAt, chapters, followChapters } from "../controls/chapters.js";
|
|
9
9
|
import { slider } from "../controls/slider.js";
|
|
10
10
|
// src/elements/seek-bar.ts
|
|
11
|
-
const STYLE_CSS = ":host,[part~=slider]{flex:1}[part~=thumb]{width:1em;height:1em;margin:-.5em 0 0 -.5em;box-shadow:0 1px 3px #0006}[part~=buffered]{position:absolute;top:0;bottom:0;left:0;right:0}[part~=blocked]{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0}[part~=blocked-range]{background:var(--mbx-blocked,#000000bf);position:absolute;top:0;bottom:0}[part~=buffered-range]{background:#ffffff4d;position:absolute;top:0;bottom:0}[part~=hover]{background:var(--mbx-text);width:.125em;margin-left:-1px;position:absolute;top:0;bottom:0}[part~=edge]{background:var(--mbx-live);width:.125em;margin-left:-1px;position:absolute;top:0;bottom:0}[part~=preview]{background:var(--mbx-surface);border-radius:var(--mbx-radius);font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;flex-direction:column;align-items:center;margin-bottom:.3077em;padding:.1538em;font-size:.8125em;display:flex;position:absolute;bottom:100%;transform:translate(-50%)}[part~=preview]>:not([hidden])~:not([hidden]){margin-top:.125em}[part~=preview-image]{border-radius:2px;position:relative;overflow:hidden}[part~=preview-frame]{border-radius:2px;display:block}[part~=preview-tile]{transform-origin:0 0;background-repeat:no-repeat;position:absolute;top:0;left:0}[part~=preview-time]{padding:0 .3077em}[part~=preview-title]{text-overflow:ellipsis;max-width:18.4615em;padding:0 .3077em;overflow:hidden}[hidden]{display:none}";
|
|
11
|
+
const STYLE_CSS = ":host,[part~=slider]{flex:1}[part~=thumb]{width:1em;height:1em;margin:-.5em 0 0 -.5em;box-shadow:0 1px 3px #0006}[part~=buffered]{position:absolute;top:0;bottom:0;left:0;right:0}[part~=blocked]{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0}[part~=blocked-range]{background:var(--mbx-blocked,#000000bf);position:absolute;top:0;bottom:0}[part~=break]{background:var(--mbx-ad,#f5c518);width:.25em;margin-left:-.125em;position:absolute;top:0;bottom:0}[part~=break][part~=span]{margin-left:0}[part~=break][part~=played]{opacity:.4}[part~=buffered-range]{background:#ffffff4d;position:absolute;top:0;bottom:0}[part~=hover]{background:var(--mbx-text);width:.125em;margin-left:-1px;position:absolute;top:0;bottom:0}[part~=edge]{background:var(--mbx-live);width:.125em;margin-left:-1px;position:absolute;top:0;bottom:0}[part~=preview]{background:var(--mbx-surface);border-radius:var(--mbx-radius);font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;flex-direction:column;align-items:center;margin-bottom:.3077em;padding:.1538em;font-size:.8125em;display:flex;position:absolute;bottom:100%;transform:translate(-50%)}[part~=preview]>:not([hidden])~:not([hidden]){margin-top:.125em}[part~=preview-image]{border-radius:2px;position:relative;overflow:hidden}[part~=preview-frame]{border-radius:2px;display:block}[part~=preview-tile]{transform-origin:0 0;background-repeat:no-repeat;position:absolute;top:0;left:0}[part~=preview-time]{padding:0 .3077em}[part~=preview-title]{text-overflow:ellipsis;max-width:18.4615em;padding:0 .3077em;overflow:hidden}[hidden]{display:none}";
|
|
12
12
|
const STEP = 5;
|
|
13
13
|
/** Under `key-mode="preview"`, a target seeks this long after the last key. */
|
|
14
14
|
const KEY_COMMIT_MS = 1e3;
|
|
@@ -108,12 +108,13 @@ var MbxSeekBar = class extends Component {
|
|
|
108
108
|
});
|
|
109
109
|
this.buffered = el("div", "buffered");
|
|
110
110
|
this.blocked = el("div", "blocked");
|
|
111
|
+
this.breaks = el("div", "breaks");
|
|
111
112
|
this.hover = el("div", "hover");
|
|
112
113
|
this.edge = el("div", "edge");
|
|
113
114
|
this.hover.hidden = true;
|
|
114
115
|
this.edge.hidden = true;
|
|
115
116
|
this.bar.track.prepend(this.buffered);
|
|
116
|
-
this.bar.track.append(this.blocked, this.hover, this.edge);
|
|
117
|
+
this.bar.track.append(this.blocked, this.breaks, this.hover, this.edge);
|
|
117
118
|
this.preview = el("div", "preview");
|
|
118
119
|
this.image = el("div", "preview-image");
|
|
119
120
|
this.tile = el("div", "preview-tile");
|
|
@@ -412,12 +413,28 @@ var MbxSeekBar = class extends Component {
|
|
|
412
413
|
node.style.width = percent(part[1] - part[0]);
|
|
413
414
|
}
|
|
414
415
|
}
|
|
416
|
+
/** The ad breaks inside the bar's range: a tick at each start, a span where one replaces a part. */
|
|
417
|
+
paintBreaks() {
|
|
418
|
+
var _this$player$breaks$l, _this$player14, _this$breaks$lastElem;
|
|
419
|
+
const { start, end } = this.range;
|
|
420
|
+
const marks = ((_this$player$breaks$l = (_this$player14 = this.player) === null || _this$player14 === void 0 ? void 0 : _this$player14.breaks.list) !== null && _this$player$breaks$l !== void 0 ? _this$player$breaks$l : []).filter((mark) => mark.start >= start && mark.start <= end);
|
|
421
|
+
while (this.breaks.childElementCount > marks.length) (_this$breaks$lastElem = this.breaks.lastElementChild) === null || _this$breaks$lastElem === void 0 || _this$breaks$lastElem.remove();
|
|
422
|
+
while (this.breaks.childElementCount < marks.length) this.breaks.append(el("div", "break"));
|
|
423
|
+
marks.forEach((mark, i) => {
|
|
424
|
+
var _mark$end;
|
|
425
|
+
const node = this.breaks.children[i];
|
|
426
|
+
const span = mark.end !== void 0 && mark.end > mark.start;
|
|
427
|
+
node.setAttribute("part", `break${span ? " span" : ""}${mark.played === true ? " played" : ""}`);
|
|
428
|
+
node.style.left = percent(fraction(mark.start, this.range));
|
|
429
|
+
node.style.width = span ? percent(fraction(Math.min((_mark$end = mark.end) !== null && _mark$end !== void 0 ? _mark$end : end, end), this.range) - fraction(mark.start, this.range)) : "";
|
|
430
|
+
});
|
|
431
|
+
}
|
|
415
432
|
/** Whether a live window is wide enough to be worth a bar. */
|
|
416
433
|
worthSeeking() {
|
|
417
|
-
var _bufferGoal, _this$player$engine7, _this$
|
|
434
|
+
var _bufferGoal, _this$player$engine7, _this$player15;
|
|
418
435
|
const goals = number(this, "live-window", LIVE_WINDOW);
|
|
419
436
|
if (goals === 0) return true;
|
|
420
|
-
const goal = (_bufferGoal = bufferGoal((_this$player$engine7 = (_this$
|
|
437
|
+
const goal = (_bufferGoal = bufferGoal((_this$player$engine7 = (_this$player15 = this.player) === null || _this$player15 === void 0 ? void 0 : _this$player15.engine) !== null && _this$player$engine7 !== void 0 ? _this$player$engine7 : null)) !== null && _bufferGoal !== void 0 ? _bufferGoal : BUFFER_GOAL;
|
|
421
438
|
return this.range.end - this.range.start >= goals * goal;
|
|
422
439
|
}
|
|
423
440
|
/** The hover marker and the preview follow the pointer, clamped to the bar. */
|
|
@@ -431,14 +448,14 @@ var MbxSeekBar = class extends Component {
|
|
|
431
448
|
}
|
|
432
449
|
/** The preview over `part` of the bar: the time, the chapter, and the picture. */
|
|
433
450
|
previewAt(part) {
|
|
434
|
-
var _this$
|
|
451
|
+
var _this$player16, _chapter$title;
|
|
435
452
|
const rect = this.bar.rail.getBoundingClientRect();
|
|
436
453
|
if (rect.width === 0 || this.range.end <= this.range.start) return;
|
|
437
454
|
this.preview.hidden = false;
|
|
438
455
|
const when = at(part, this.range);
|
|
439
456
|
this.time.textContent = this.label(when);
|
|
440
457
|
const chapter = this.chaptered("titles") ? this.list[chapterAt(this.list, when)] : void 0;
|
|
441
|
-
const blocked = (_this$
|
|
458
|
+
const blocked = (_this$player16 = this.player) === null || _this$player16 === void 0 ? void 0 : _this$player16.markers.within(when).find((marker) => marker.kind === "blocked");
|
|
442
459
|
const title = blocked ? blocked.label === void 0 ? this.word("label-blocked", "blocked", "Not available") : this.pageText(blocked.label) : (_chapter$title = chapter === null || chapter === void 0 ? void 0 : chapter.title) !== null && _chapter$title !== void 0 ? _chapter$title : "";
|
|
443
460
|
this.caption.hidden = title === "";
|
|
444
461
|
this.caption.textContent = title;
|
|
@@ -462,7 +479,7 @@ var MbxSeekBar = class extends Component {
|
|
|
462
479
|
};
|
|
463
480
|
this.listen(player.video, EVENTS, tick);
|
|
464
481
|
this.keep(followChapters(player, tick));
|
|
465
|
-
this.listen(player, ["markerschange"], tick);
|
|
482
|
+
this.listen(player, ["markerschange", "breakschange"], tick);
|
|
466
483
|
this.listen(player, ["sourcechange"], () => {
|
|
467
484
|
this.drag = "none";
|
|
468
485
|
this.stopAiming();
|
|
@@ -508,6 +525,7 @@ var MbxSeekBar = class extends Component {
|
|
|
508
525
|
this.bar.range(this.range.start, this.range.end);
|
|
509
526
|
this.paintRanges(this.buffered, spans(video.buffered), "buffered-range");
|
|
510
527
|
this.paintRanges(this.blocked, this.blockedRanges(), "blocked-range");
|
|
528
|
+
this.paintBreaks();
|
|
511
529
|
this.paintChapters();
|
|
512
530
|
this.edge.hidden = !on;
|
|
513
531
|
if (api !== void 0 && api.edge !== null) this.edge.style.left = percent(fraction(api.edge, this.range));
|
package/dist/host.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* has found a gap in the player's public API, and the gap is the bug.
|
|
10
10
|
*/
|
|
11
11
|
import type { Block, Player, PlayerError, Programme, ProgrammeSource, Source, SourceVideoTrack } from '@mattebox/player-core';
|
|
12
|
-
import type { Mattebox } from 'mattebox';
|
|
12
|
+
import type { Mattebox, Stage } from 'mattebox';
|
|
13
|
+
import type { BreakMarks } from './controls/breaks.js';
|
|
13
14
|
import type { Markers } from './controls/markers.js';
|
|
14
15
|
import type { Messages } from './messages.js';
|
|
15
16
|
export type { Block };
|
|
@@ -44,6 +45,8 @@ export interface PlayerHost extends HTMLElement {
|
|
|
44
45
|
readonly blocked: Block | null;
|
|
45
46
|
/** The ranges the page named: credits to skip, parts that must not play. */
|
|
46
47
|
readonly markers: Markers;
|
|
48
|
+
/** Where the programme's ad breaks are, for the seek bar, by owner. */
|
|
49
|
+
readonly breaks: BreakMarks;
|
|
47
50
|
/** What the current load resolved to, with what a connector said of the programme; null without one. */
|
|
48
51
|
readonly programme: Programme | null;
|
|
49
52
|
/** The sources to load when there is no `src` attribute; setting it loads them. */
|
|
@@ -59,6 +62,15 @@ export interface PlayerHost extends HTMLElement {
|
|
|
59
62
|
selectVideoSource(track: SourceVideoTrack | null): void;
|
|
60
63
|
/** Loads another source of the same programme in place, holding the frame and the controls. */
|
|
61
64
|
switchSource(source: Source): void;
|
|
65
|
+
/** Plays a source in the programme's place, such as an ad; no `sourcechange` fires. */
|
|
66
|
+
interrupt(source: Source): Promise<void>;
|
|
67
|
+
/** Plays the programme again where `interrupt` left it. */
|
|
68
|
+
resume(options?: {
|
|
69
|
+
readonly at?: number | null;
|
|
70
|
+
readonly playing?: boolean;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
/** `interrupt` plays in the programme's place. */
|
|
73
|
+
readonly interrupted: boolean;
|
|
62
74
|
/** The language tag the words come from, or empty for English. */
|
|
63
75
|
readonly locale: string;
|
|
64
76
|
/**
|
|
@@ -68,6 +80,24 @@ export interface PlayerHost extends HTMLElement {
|
|
|
68
80
|
*/
|
|
69
81
|
message(id: keyof Messages): string | undefined;
|
|
70
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* A package that adds to every player: the engine stages it needs, which
|
|
85
|
+
* join whatever stack the player builds, and what it does on each player.
|
|
86
|
+
* `@mattebox/player-ads` is one: it adds the `interstitials` stage and
|
|
87
|
+
* draws the ad controls.
|
|
88
|
+
*/
|
|
89
|
+
export interface PlayerAddon {
|
|
90
|
+
readonly name: string;
|
|
91
|
+
/** Fresh stages for each engine. A stage the stack has already, by name, is not added twice. */
|
|
92
|
+
stages?(): readonly Stage[];
|
|
93
|
+
/**
|
|
94
|
+
* The add-on needs the engine: where MediaSource plays HLS, Safari's own
|
|
95
|
+
* HLS is not preferred, since it reports nothing the add-on reads.
|
|
96
|
+
*/
|
|
97
|
+
readonly engine?: boolean;
|
|
98
|
+
/** Runs when a player connects, and the function it returns when it leaves the page. */
|
|
99
|
+
attach?(player: PlayerHost): (() => void) | undefined;
|
|
100
|
+
}
|
|
71
101
|
/**
|
|
72
102
|
* The nearest player above `node`, through shadow hosts, or null outside
|
|
73
103
|
* one. The element found may not be upgraded yet; the caller waits for the
|
package/dist/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,WAAW,EACX,SAAS,EACT,eAAe,EACf,MAAM,EACN,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,WAAW,EACX,SAAS,EACT,eAAe,EACf,MAAM,EACN,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OA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AC1B,wFAAwF;IACxF,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACvD;AASD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,GAAG,IAAI,CAOzD"}
|
package/dist/host.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.js","names":[],"sources":["../src/host.ts"],"sourcesContent":["/**\n * What a control sees of the player it sits in: the video, the engine, the\n * core, and the element itself for its events and attributes. Declared\n * here and not imported from the element, because the element registers\n * the controls and a control that imported the element would close a cycle.\n * `MatteboxPlayerElement` implements it.\n *\n * This is the whole surface a control gets. A control that needs more\n * has found a gap in the player's public API, and the gap is the bug.\n */\nimport type {\n Block,\n Player,\n PlayerError,\n Programme,\n ProgrammeSource,\n Source,\n SourceVideoTrack,\n} from '@mattebox/player-core';\nimport type { Mattebox } from 'mattebox';\nimport type { Markers } from './controls/markers.js';\nimport type { Messages } from './messages.js';\nimport { PLAYER } from './tags.js';\n\nexport type { Block };\n\nexport interface Tracker {\n /** What the diagnostics panel calls it. */\n readonly name: string;\n /** The id of the tracker's current session, which the diagnostics panel shows for support. */\n readonly session?: string | undefined;\n /** The id of the device the tracker reports, which the diagnostics panel shows too. */\n readonly device?: string | undefined;\n /** At the start of each programme, or at once when added during one. */\n start(programme: Programme, player: PlayerHost): void;\n /** At the end of the programme, at unload, or when removed during one. */\n stop(): void;\n}\n\nexport interface Trackers {\n /** Adds a tracker; during a programme, it starts at once. */\n add(tracker: Tracker): void;\n /** Removes a tracker; during a programme, it stops at once. False when it was not there. */\n delete(tracker: Tracker): boolean;\n has(tracker: Tracker): boolean;\n /** The trackers, in the order they were added. */\n readonly list: readonly Tracker[];\n}\n\nexport interface PlayerHost extends HTMLElement {\n readonly video: HTMLVideoElement;\n readonly engine: Mattebox | null;\n readonly player: Player | null;\n /** The fatal error of the current load, or null: a control attached after the event still sees it. */\n readonly error: PlayerError | null;\n /** What `block()` set, or null: a control attached after `blockchange` still sees it. */\n readonly blocked: Block | null;\n /** The ranges the page named: credits to skip, parts that must not play. */\n readonly markers: Markers;\n /** What the current load resolved to, with what a connector said of the programme; null without one. */\n readonly programme: Programme | null;\n /** The sources to load when there is no `src` attribute; setting it loads them. */\n sources: readonly ProgrammeSource[] | null;\n /** The page's trackers, started at each programme. */\n readonly trackers: Trackers;\n /** Loads the sources again, in the order a load reads them. */\n retry(): void;\n /** The other versions of the picture the source names at their own URLs. */\n readonly videoSources: readonly SourceVideoTrack[];\n /** The version of `videoSources` that plays, or null for the source itself. */\n readonly videoSource: SourceVideoTrack | null;\n selectVideoSource(track: SourceVideoTrack | null): void;\n /** Loads another source of the same programme in place, holding the frame and the controls. */\n switchSource(source: Source): void;\n /** The language tag the words come from, or empty for English. */\n readonly locale: string;\n /**\n * The word of `id` in the player's language, or undefined, where the\n * control's own English applies. The player fires `localechange` when\n * the words change.\n */\n message(id: keyof Messages): string | undefined;\n}\n\n/** The parent, or the host of the shadow root `node` sits in, or null at the document. */\nfunction above(node: Node): Node | null {\n const parent = node.parentNode;\n if (parent !== null) return parent;\n return node instanceof ShadowRoot ? node.host : null;\n}\n\n/**\n * The nearest player above `node`, through shadow hosts, or null outside\n * one. The element found may not be upgraded yet; the caller waits for the\n * definition before reading it.\n */\nexport function findPlayer(node: Node): HTMLElement | null {\n let current: Node | null = node;\n while (current !== null) {\n if (current instanceof HTMLElement && current.localName === PLAYER) return current;\n current = above(current);\n }\n return null;\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"host.js","names":[],"sources":["../src/host.ts"],"sourcesContent":["/**\n * What a control sees of the player it sits in: the video, the engine, the\n * core, and the element itself for its events and attributes. Declared\n * here and not imported from the element, because the element registers\n * the controls and a control that imported the element would close a cycle.\n * `MatteboxPlayerElement` implements it.\n *\n * This is the whole surface a control gets. A control that needs more\n * has found a gap in the player's public API, and the gap is the bug.\n */\nimport type {\n Block,\n Player,\n PlayerError,\n Programme,\n ProgrammeSource,\n Source,\n SourceVideoTrack,\n} from '@mattebox/player-core';\nimport type { Mattebox, Stage } from 'mattebox';\nimport type { BreakMarks } from './controls/breaks.js';\nimport type { Markers } from './controls/markers.js';\nimport type { Messages } from './messages.js';\nimport { PLAYER } from './tags.js';\n\nexport type { Block };\n\nexport interface Tracker {\n /** What the diagnostics panel calls it. */\n readonly name: string;\n /** The id of the tracker's current session, which the diagnostics panel shows for support. */\n readonly session?: string | undefined;\n /** The id of the device the tracker reports, which the diagnostics panel shows too. */\n readonly device?: string | undefined;\n /** At the start of each programme, or at once when added during one. */\n start(programme: Programme, player: PlayerHost): void;\n /** At the end of the programme, at unload, or when removed during one. */\n stop(): void;\n}\n\nexport interface Trackers {\n /** Adds a tracker; during a programme, it starts at once. */\n add(tracker: Tracker): void;\n /** Removes a tracker; during a programme, it stops at once. False when it was not there. */\n delete(tracker: Tracker): boolean;\n has(tracker: Tracker): boolean;\n /** The trackers, in the order they were added. */\n readonly list: readonly Tracker[];\n}\n\nexport interface PlayerHost extends HTMLElement {\n readonly video: HTMLVideoElement;\n readonly engine: Mattebox | null;\n readonly player: Player | null;\n /** The fatal error of the current load, or null: a control attached after the event still sees it. */\n readonly error: PlayerError | null;\n /** What `block()` set, or null: a control attached after `blockchange` still sees it. */\n readonly blocked: Block | null;\n /** The ranges the page named: credits to skip, parts that must not play. */\n readonly markers: Markers;\n /** Where the programme's ad breaks are, for the seek bar, by owner. */\n readonly breaks: BreakMarks;\n /** What the current load resolved to, with what a connector said of the programme; null without one. */\n readonly programme: Programme | null;\n /** The sources to load when there is no `src` attribute; setting it loads them. */\n sources: readonly ProgrammeSource[] | null;\n /** The page's trackers, started at each programme. */\n readonly trackers: Trackers;\n /** Loads the sources again, in the order a load reads them. */\n retry(): void;\n /** The other versions of the picture the source names at their own URLs. */\n readonly videoSources: readonly SourceVideoTrack[];\n /** The version of `videoSources` that plays, or null for the source itself. */\n readonly videoSource: SourceVideoTrack | null;\n selectVideoSource(track: SourceVideoTrack | null): void;\n /** Loads another source of the same programme in place, holding the frame and the controls. */\n switchSource(source: Source): void;\n /** Plays a source in the programme's place, such as an ad; no `sourcechange` fires. */\n interrupt(source: Source): Promise<void>;\n /** Plays the programme again where `interrupt` left it. */\n resume(options?: { readonly at?: number | null; readonly playing?: boolean }): Promise<void>;\n /** `interrupt` plays in the programme's place. */\n readonly interrupted: boolean;\n /** The language tag the words come from, or empty for English. */\n readonly locale: string;\n /**\n * The word of `id` in the player's language, or undefined, where the\n * control's own English applies. The player fires `localechange` when\n * the words change.\n */\n message(id: keyof Messages): string | undefined;\n}\n\n/**\n * A package that adds to every player: the engine stages it needs, which\n * join whatever stack the player builds, and what it does on each player.\n * `@mattebox/player-ads` is one: it adds the `interstitials` stage and\n * draws the ad controls.\n */\nexport interface PlayerAddon {\n readonly name: string;\n /** Fresh stages for each engine. A stage the stack has already, by name, is not added twice. */\n stages?(): readonly Stage[];\n /**\n * The add-on needs the engine: where MediaSource plays HLS, Safari's own\n * HLS is not preferred, since it reports nothing the add-on reads.\n */\n readonly engine?: boolean;\n /** Runs when a player connects, and the function it returns when it leaves the page. */\n attach?(player: PlayerHost): (() => void) | undefined;\n}\n\n/** The parent, or the host of the shadow root `node` sits in, or null at the document. */\nfunction above(node: Node): Node | null {\n const parent = node.parentNode;\n if (parent !== null) return parent;\n return node instanceof ShadowRoot ? node.host : null;\n}\n\n/**\n * The nearest player above `node`, through shadow hosts, or null outside\n * one. The element found may not be upgraded yet; the caller waits for the\n * definition before reading it.\n */\nexport function findPlayer(node: Node): HTMLElement | null {\n let current: Node | null = node;\n while (current !== null) {\n if (current instanceof HTMLElement && current.localName === PLAYER) return current;\n current = above(current);\n }\n return null;\n}\n"],"mappings":";;;AAiHA,SAAS,MAAM,MAAyB;CACtC,MAAM,SAAS,KAAK;CACpB,IAAI,WAAW,MAAM,OAAO;CAC5B,OAAO,gBAAgB,aAAa,KAAK,OAAO;AAClD;;;;;;AAOA,SAAgB,WAAW,MAAgC;CACzD,IAAI,UAAuB;CAC3B,OAAO,YAAY,MAAM;EACvB,IAAI,mBAAmB,eAAe,QAAQ,cAAA,mBAAsB,OAAO;EAC3E,UAAU,MAAM,OAAO;CACzB;CACA,OAAO;AACT"}
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type { MbxVideoMenu } from './entries/video-menu.js';
|
|
|
34
34
|
import type { MbxVolume } from './entries/volume.js';
|
|
35
35
|
import type { MbxVolumeSlider } from './entries/volume-slider.js';
|
|
36
36
|
export type { Connector, ConnectorSource, Programme, ProgrammeMetadata, ProgrammeSource, Resolution, Source, SourceDrm, } from '@mattebox/player-core';
|
|
37
|
+
export type { BreakMark, BreakMarks } from './controls/breaks.js';
|
|
37
38
|
export type { Marker, Markers } from './controls/markers.js';
|
|
38
39
|
export type { MatteboxPlayerOptions } from './element-entry.js';
|
|
39
40
|
export { MatteboxPlayerElement } from './element-entry.js';
|
|
@@ -65,7 +66,7 @@ export { MbxTitle } from './entries/title.js';
|
|
|
65
66
|
export { MbxVideoMenu } from './entries/video-menu.js';
|
|
66
67
|
export { MbxVolume } from './entries/volume.js';
|
|
67
68
|
export { MbxVolumeSlider } from './entries/volume-slider.js';
|
|
68
|
-
export type { Block, PlayerHost } from './host.js';
|
|
69
|
+
export type { Block, PlayerAddon, PlayerHost } from './host.js';
|
|
69
70
|
export type { DeviceIdOptions } from './ids.js';
|
|
70
71
|
export { deviceId, sessionId } from './ids.js';
|
|
71
72
|
export type { LocaleSource } from './locales.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,E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AE,aAAa,CAAC;QACjC,YAAY,EAAE,SAAS,CAAC;QACxB,iBAAiB,EAAE,aAAa,CAAC;QACjC,iBAAiB,EAAE,aAAa,CAAC;QACjC,mBAAmB,EAAE,eAAe,CAAC;QACrC,YAAY,EAAE,SAAS,CAAC;QACxB,iBAAiB,EAAE,aAAa,CAAC;QACjC,iBAAiB,EAAE,aAAa,CAAC;QACjC,gBAAgB,EAAE,YAAY,CAAC;QAC/B,uBAAuB,EAAE,mBAAmB,CAAC;QAC7C,kBAAkB,EAAE,cAAc,CAAC;QACnC,mBAAmB,EAAE,eAAe,CAAC;QACrC,kBAAkB,EAAE,cAAc,CAAC;QACnC,aAAa,EAAE,UAAU,CAAC;QAC1B,WAAW,EAAE,QAAQ,CAAC;QACtB,kBAAkB,EAAE,cAAc,CAAC;QACnC,cAAc,EAAE,WAAW,CAAC;QAC5B,oBAAoB,EAAE,gBAAgB,CAAC;QACvC,cAAc,EAAE,UAAU,CAAC;QAC3B,iBAAiB,EAAE,aAAa,CAAC;QACjC,gBAAgB,EAAE,YAAY,CAAC;QAC/B,kBAAkB,EAAE,cAAc,CAAC;QACnC,oBAAoB,EAAE,gBAAgB,CAAC;QACvC,gBAAgB,EAAE,YAAY,CAAC;QAC/B,gBAAgB,EAAE,YAAY,CAAC;QAC/B,oBAAoB,EAAE,gBAAgB,CAAC;QACvC,eAAe,EAAE,WAAW,CAAC;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattebox/player",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "A <mattebox-player> custom element over @mattebox/player-core.",
|
|
5
5
|
"author": "Josep Boix Requesens",
|
|
6
6
|
"repository": {
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"release:ci": "semantic-release"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@mattebox/player-core": "^0.
|
|
80
|
+
"@mattebox/player-core": "^0.9.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"mattebox": "^0.
|
|
83
|
+
"mattebox": "^0.17.0"
|
|
84
84
|
}
|
|
85
85
|
}
|