@nrk/player-elements
Advanced tools
+9
-9
| { | ||
| "name": "@nrk/player-elements", | ||
| "version": "17.2.7", | ||
| "version": "17.2.8", | ||
| "description": "", | ||
@@ -24,5 +24,5 @@ "author": "", | ||
| "eventemitter3": "5.0.4", | ||
| "@nrk/live-epg": "1.2.0", | ||
| "@nrk/player-psapi-client": "8.1.1", | ||
| "@nrk/player-tracker": "8.2.2" | ||
| "@nrk/player-tracker": "8.2.2", | ||
| "@nrk/live-epg": "1.2.0" | ||
| }, | ||
@@ -41,8 +41,8 @@ "peerDependencies": { | ||
| "@types/throttle-debounce": "5.0.2", | ||
| "@typescript-eslint/eslint-plugin": "8.58.2", | ||
| "@typescript-eslint/parser": "8.58.2", | ||
| "@typescript-eslint/eslint-plugin": "8.59.1", | ||
| "@typescript-eslint/parser": "8.59.1", | ||
| "hls.js": "1.6.15", | ||
| "jsdom": "29.0.2", | ||
| "jsdom": "29.1.1", | ||
| "jsdom-global": "3.0.2", | ||
| "postcss": "8.5.10", | ||
| "postcss": "8.5.13", | ||
| "postcss-custom-properties": "15.0.1", | ||
@@ -56,5 +56,5 @@ "postcss-import": "16.1.1", | ||
| "typedoc": "0.28.19", | ||
| "@nrk/eslint-config": "1.1.0", | ||
| "@nrk/stylelint-config": "1.0.2", | ||
| "@nrk/ts-config": "1.0.3", | ||
| "@nrk/stylelint-config": "1.0.2" | ||
| "@nrk/eslint-config": "1.1.0" | ||
| }, | ||
@@ -61,0 +61,0 @@ "dependencyComments": { |
@@ -34,2 +34,3 @@ import { ReactiveElement } from "@nrkno/reactive-element"; | ||
| switch (key) { | ||
| // Left (seek back) | ||
| case keyboardShortcuts.seekBackwards.find((k) => k === key): { | ||
@@ -49,2 +50,3 @@ if ((event.ctrlKey || event.metaKey) && key === "j") { | ||
| } | ||
| // Right (seek fwd) | ||
| case keyboardShortcuts.seekForwards.find((k) => k === key): { | ||
@@ -69,2 +71,3 @@ if (!target || target.nodeName !== "INPUT") { | ||
| switch (key) { | ||
| // Enter & Space (toggle play) | ||
| case keyboardShortcuts.togglePlayPause.find((k) => k === key): { | ||
@@ -80,2 +83,3 @@ if (target?.nodeName !== "BUTTON") { | ||
| } | ||
| // K (toggle play) | ||
| case "k": { | ||
@@ -86,2 +90,3 @@ event.preventDefault(); | ||
| } | ||
| // 0-9 (jump in time) | ||
| case keyboardShortcuts.jumpInStream.find((k) => k === key): { | ||
@@ -92,2 +97,3 @@ event.preventDefault(); | ||
| } | ||
| // Home | ||
| case keyboardShortcuts.seekToStart.find((k) => k === key): { | ||
@@ -98,2 +104,3 @@ event.preventDefault(); | ||
| } | ||
| // End | ||
| case keyboardShortcuts.seekToEnd.find((k) => k === key): { | ||
@@ -104,2 +111,3 @@ event.preventDefault(); | ||
| } | ||
| // Up (volume up) | ||
| case keyboardShortcuts.volumeUp.find((k) => k === key): { | ||
@@ -112,2 +120,3 @@ if (!target || target.nodeName !== "INPUT") { | ||
| } | ||
| // Down (volume down) | ||
| case keyboardShortcuts.volumeDown.find((k) => k === key): { | ||
@@ -120,2 +129,3 @@ if (!target || target.nodeName !== "INPUT") { | ||
| } | ||
| // F (fullscreen toggle) | ||
| case keyboardShortcuts.toggleFullscreen.find((k) => k === key): { | ||
@@ -129,2 +139,3 @@ if (this.player.fullscreenState?.isActive) { | ||
| } | ||
| // M (muted toggle) | ||
| case keyboardShortcuts.toggleMute.find((k) => k === key): { | ||
@@ -135,5 +146,7 @@ event.preventDefault(); | ||
| } | ||
| // C (subtitles toggle) | ||
| case "c": { | ||
| break; | ||
| } | ||
| // P (pip toggle) | ||
| case keyboardShortcuts.togglePiP.find((k) => k === key): { | ||
@@ -148,2 +161,3 @@ event.preventDefault(); | ||
| } | ||
| // A & Z (zoom) | ||
| case "a": | ||
@@ -150,0 +164,0 @@ case "z": { |
@@ -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.7"; | ||
| const PLAYER_ELEMENTS_VERSION = "17.2.8"; | ||
| class PlayerElement extends DimensionsMixin( | ||
@@ -38,0 +38,0 @@ FocusVisibleMixin( |
@@ -42,3 +42,3 @@ import { ReactiveElement } from "@nrkno/reactive-element"; | ||
| videoSrc: (element, _videoSrc) => { | ||
| if (!element.player.isBinging) { | ||
| if (!element.player.isBinging && !element.player.isPlaying) { | ||
| element.hidden = false; | ||
@@ -45,0 +45,0 @@ } |
| function generateSrcSet(webImages) { | ||
| if (webImages.length === 0) | ||
| return ""; | ||
| if (webImages.length === 0) return ""; | ||
| if (isWebImage(webImages)) { | ||
@@ -5,0 +4,0 @@ return webImages.map(({ uri, width }) => { |
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
601890
0.13%13825
0.19%