@nrk/player-elements
Advanced tools
+4
-4
| { | ||
| "name": "@nrk/player-elements", | ||
| "version": "17.2.10", | ||
| "version": "17.2.11", | ||
| "description": "", | ||
@@ -24,4 +24,4 @@ "author": "", | ||
| "eventemitter3": "5.0.4", | ||
| "@nrk/player-psapi-client": "8.1.1", | ||
| "@nrk/live-epg": "1.2.0", | ||
| "@nrk/player-psapi-client": "8.1.1", | ||
| "@nrk/player-tracker": "8.2.2" | ||
@@ -55,5 +55,5 @@ }, | ||
| "typedoc": "0.28.19", | ||
| "@nrk/eslint-config": "1.1.0", | ||
| "@nrk/stylelint-config": "1.0.2", | ||
| "@nrk/ts-config": "1.0.3" | ||
| "@nrk/ts-config": "1.0.3", | ||
| "@nrk/eslint-config": "1.1.0" | ||
| }, | ||
@@ -60,0 +60,0 @@ "dependencyComments": { |
@@ -35,3 +35,3 @@ import { version as playerCoreVersion } from "@nrk/player-core/types.js"; | ||
| const FONT_SIZE_BREAK_POINT = 500; | ||
| const PLAYER_ELEMENTS_VERSION = "17.2.10"; | ||
| const PLAYER_ELEMENTS_VERSION = "17.2.11"; | ||
| class PlayerElement extends DimensionsMixin( | ||
@@ -284,3 +284,3 @@ FocusVisibleMixin( | ||
| this.activeSession?.setVolume(this.volume); | ||
| } else if (propName === "autoplay") { | ||
| } else if (propName === "autoplay" && this.autoplay) { | ||
| if (this.shouldPlayOnAutoPlayChange()) { | ||
@@ -309,8 +309,15 @@ setTimeout(() => { | ||
| } | ||
| } else if (propName === "manifest" && this.manifest && "playable" in this.manifest) { | ||
| const source = getSourceFromManifest(this.manifest); | ||
| if (source) { | ||
| this.resolvedSrc = source.src; | ||
| this.resolvedType = source.type; | ||
| if (!this.metadata.availability.available) { | ||
| this.isAwaitingPlaybackStart = false; | ||
| } | ||
| } else if (propName === "manifest" && this.manifest) { | ||
| if ("playable" in this.manifest) { | ||
| const source = getSourceFromManifest(this.manifest); | ||
| if (source) { | ||
| this.resolvedSrc = source.src; | ||
| this.resolvedType = source.type; | ||
| } | ||
| } else { | ||
| this.isAwaitingPlaybackStart = false; | ||
| } | ||
| } else if (propName === "preferredManifest") { | ||
@@ -389,3 +396,3 @@ const isManifestReset = oldValue !== void 0; | ||
| shouldPlayOnAutoPlayChange() { | ||
| return this.autoplay && (this.activeSession || !this.activeSession && this.resolvedSrc && !this.isAwaitingPlaybackStart) && !this.isPlaying; | ||
| return (this.activeSession || !this.activeSession && this.src && !this.isAwaitingPlaybackStart) && !this.isPlaying; | ||
| } | ||
@@ -392,0 +399,0 @@ async prepareForPlayback() { |
Sorry, the diff of this file is too big to display
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
602997
0.06%13858
0.1%