@nrk/player-elements
Advanced tools
+3
-3
| { | ||
| "name": "@nrk/player-elements", | ||
| "version": "17.2.12", | ||
| "version": "17.2.13", | ||
| "description": "", | ||
@@ -50,5 +50,5 @@ "author": "", | ||
| "prettier": "3.8.3", | ||
| "rollup": "4.60.3", | ||
| "rollup": "4.60.4", | ||
| "rollup-plugin-dts": "6.4.1", | ||
| "tsx": "4.21.0", | ||
| "tsx": "4.22.0", | ||
| "typedoc": "0.28.19", | ||
@@ -55,0 +55,0 @@ "@nrk/stylelint-config": "1.0.2", |
@@ -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.12"; | ||
| const PLAYER_ELEMENTS_VERSION = "17.2.13"; | ||
| class PlayerElement extends DimensionsMixin( | ||
@@ -284,8 +284,2 @@ FocusVisibleMixin( | ||
| this.activeSession?.setVolume(this.volume); | ||
| } else if (propName === "autoplay" && this.autoplay) { | ||
| if (this.shouldPlayOnAutoPlayChange()) { | ||
| setTimeout(() => { | ||
| this.play(); | ||
| }, 50); | ||
| } | ||
| } else if (propName === "muted") { | ||
@@ -394,5 +388,2 @@ this.activeSession?.[this.muted ? "mute" : "unmute"](); | ||
| } | ||
| shouldPlayOnAutoPlayChange() { | ||
| return (this.activeSession || !this.activeSession && this.src && !this.isAwaitingPlaybackStart) && !this.isPlaying; | ||
| } | ||
| async prepareForPlayback() { | ||
@@ -399,0 +390,0 @@ await this.loadMetadata(); |
Sorry, the diff of this file is too big to display
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
602305
-0.12%13839
-0.14%