🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@nrk/player-elements

Package Overview
Dependencies
Maintainers
200
Versions
421
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrk/player-elements - npm Package Compare versions

Package was removed
Sorry, it seems this package was removed from the registry
Comparing version
17.2.12
to
17.2.13
+3
-3
package.json
{
"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