shaka-video-element 0.6.14 → 0.6.16
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.
|
@@ -30289,17 +30289,13 @@ function CustomMediaMixin(superclass, { tag, is }) {
|
|
|
30289
30289
|
this.#upgradeProperty(prop);
|
|
30290
30290
|
}
|
|
30291
30291
|
this.#childObserver = new MutationObserver(this.#syncMediaChildAttribute.bind(this));
|
|
30292
|
-
this.shadowRoot.addEventListener("slotchange", this);
|
|
30292
|
+
this.shadowRoot.addEventListener("slotchange", () => this.#syncMediaChildren());
|
|
30293
30293
|
this.#syncMediaChildren();
|
|
30294
30294
|
for (const type of this.constructor.Events) {
|
|
30295
30295
|
this.shadowRoot?.addEventListener(type, this, true);
|
|
30296
30296
|
}
|
|
30297
30297
|
}
|
|
30298
30298
|
handleEvent(event) {
|
|
30299
|
-
if (event.type === "slotchange") {
|
|
30300
|
-
this.#syncMediaChildren();
|
|
30301
|
-
return;
|
|
30302
|
-
}
|
|
30303
30299
|
if (event.target === this.nativeEl) {
|
|
30304
30300
|
this.dispatchEvent(new CustomEvent(event.type, { detail: event.detail }));
|
|
30305
30301
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shaka-video-element",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"description": "Custom element (web component) for Shaka Player",
|
|
5
5
|
"author": "@muxinc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"build": "run-s build:*"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"custom-media-element": "^1.4.
|
|
55
|
+
"custom-media-element": "^1.4.4",
|
|
56
56
|
"shaka-player": "~4.14.5"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|