🚀. 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.10
to
17.2.11
+4
-4
package.json
{
"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