🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.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.8
to
17.2.9
+7
-7
package.json
{
"name": "@nrk/player-elements",
"version": "17.2.8",
"version": "17.2.9",
"description": "",

@@ -40,8 +40,8 @@ "author": "",

"@types/throttle-debounce": "5.0.2",
"@typescript-eslint/eslint-plugin": "8.59.1",
"@typescript-eslint/parser": "8.59.1",
"@typescript-eslint/eslint-plugin": "8.59.3",
"@typescript-eslint/parser": "8.59.3",
"hls.js": "1.6.15",
"jsdom": "29.1.1",
"jsdom-global": "3.0.2",
"postcss": "8.5.13",
"postcss": "8.5.14",
"postcss-custom-properties": "15.0.1",

@@ -51,3 +51,3 @@ "postcss-import": "16.1.1",

"prettier": "3.8.3",
"rollup": "4.60.2",
"rollup": "4.60.3",
"rollup-plugin-dts": "6.4.1",

@@ -57,4 +57,4 @@ "tsx": "4.21.0",

"@nrk/stylelint-config": "1.0.2",
"@nrk/ts-config": "1.0.3",
"@nrk/eslint-config": "1.1.0"
"@nrk/eslint-config": "1.1.0",
"@nrk/ts-config": "1.0.3"
},

@@ -61,0 +61,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.8";
const PLAYER_ELEMENTS_VERSION = "17.2.9";
class PlayerElement extends DimensionsMixin(

@@ -284,2 +284,8 @@ FocusVisibleMixin(

this.activeSession?.setVolume(this.volume);
} else if (propName === "autoplay") {
if (this.shouldPlayOnAutoPlayChange()) {
setTimeout(() => {
this.play();
}, 50);
}
} else if (propName === "muted") {

@@ -381,2 +387,5 @@ this.activeSession?.[this.muted ? "mute" : "unmute"]();

}
shouldPlayOnAutoPlayChange() {
return this.autoplay && (this.activeSession || !this.activeSession && this.resolvedSrc && !this.isAwaitingPlaybackStart) && !this.isPlaying;
}
async prepareForPlayback() {

@@ -1104,3 +1113,3 @@ await this.loadMetadata();

if (!this.psapiClient) {
this.panic(Error(`Unable to load manifest for invalid PSAPI media reference: ${this.src}`));
this.panic(Error(`Unable to load manifest for invalid PSAPI media reference: src='${this.src}'`));
return;

@@ -1107,0 +1116,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display