Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

refactor(frontend:files): migrate media viewer from Plyr to Video.js

johaven29ef41b6838b
diff --git a/frontend/package.json b/frontend/package.json
index 7a130677..8c361801 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -41,6 +41,7 @@
"@tiptap/extension-task-list": "^3.25.0",
"@tiptap/markdown": "^3.25.0",
"@tiptap/starter-kit": "^3.25.0",
+ "@videojs/html": "^10.2.0",
"angular-l10n": "^17.0.1",
"codemirror": "^6.0.2",
"dayjs": "^1.11.21",
@@ -51,7 +52,6 @@
"ngx-tiptap": "^14.0.1",
"ngx-toastr": "^20.0.5",
"pdfjs-dist": "6.4.299",
- "plyr": "^3.8.4",
"rxjs": "^7.8.2",
"tslib": "^2.7.0",
"zone.js": "^0.15.1"
diff --git a/frontend/src/app/applications/files/components/sidebar/files-selection.component.html b/frontend/src/app/applications/files/components/sidebar/files-selection.component.html
index 9059d0ee..d93e655a 100644
--- a/frontend/src/app/applications/files/components/sidebar/files-selection.component.html
+++ b/frontend/src/app/applications/files/components/sidebar/files-selection.component.html
@@ -33,7 +33,7 @@
<div appAutoResize class="fs-sm">
@for (f of files(); track f.id) {
<div class="card selection-panel">
- <div class="card-body align-self-center p-0 my-1">
+ <div class="card-body align-self-center p-0 my-1" [class.w-100]="f.shortMime === 'media'">
@switch (f.shortMime) {
@case ('image') {
<div class="d-flex align-items-center" [style.height.px]="cardImageSize">
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-media.component.ts b/frontend/src/app/applications/files/components/viewers/files-viewer-media.component.ts
index 6974f8f1..0927b328 100755
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-media.component.ts
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-media.component.ts
@@ -1,46 +1,31 @@
import {
- AfterViewInit,
+ afterRenderEffect,
ChangeDetectionStrategy,
Component,
computed,
+ CUSTOM_ELEMENTS_SCHEMA,
ElementRef,
+ inject,
input,
- OnDestroy,
- viewChild,
- ViewEncapsulation
+ viewChild
} from '@angular/core'
-import * as PlyrModule from 'plyr'
+import { toSignal } from '@angular/core/rxjs-interop'
+import { L10nTranslationService } from 'angular-l10n'
+import { map } from 'rxjs'
+import '@videojs/html/audio/neutral-skin'
+import '@videojs/html/audio/player'
+import '@videojs/html/i18n'
+import '@videojs/html/video/neutral-skin'
+import '@videojs/html/video/player'
import { FileModel } from '../../models/file.model'
-interface PlyrInstance {
- destroy(): void
-}
-interface PlyrOptions {
- autoplay?: boolean
- blankVideo?: string
- controls?: string[]
- iconUrl?: string
- keyboard?: {
- focused?: boolean
- global?: boolean
- }
- settings?: string[]
- speed?: {
- selected: number
- options: number[]
- }
-}
-type PlyrConstructor = new (target: HTMLElement | string, options?: PlyrOptions) => PlyrInstance
-const plyrModule = PlyrModule as unknown as PlyrConstructor & { default?: PlyrConstructor }
-const PlyrPlayer = plyrModule.default ?? plyrModule
-
@Component({
selector: 'app-files-viewer-media',
changeDetection: ChangeDetectionStrategy.OnPush,
- encapsulation: ViewEncapsulation.None,
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
styles: [
`
- app-files-viewer-media {
+ :host {
display: block;
width: 100%;
}
@@ -57,90 +42,120 @@ const PlyrPlayer = plyrModule.default ?? plyrModule
background: transparent;
}
- .files-viewer-media,
- .files-viewer-media .plyr,
- .files-viewer-media .plyr__video-wrapper,
- .files-viewer-media .files-viewer-media__player {
+ .files-viewer-media video-player,
+ .files-viewer-media video-neutral-skin,
+ .files-viewer-media video.files-viewer-media__player {
height: 100%;
}
- .files-viewer-media .plyr {
+ .files-viewer-media video-player,
+ .files-viewer-media audio-player,
+ .files-viewer-media video-neutral-skin,
+ .files-viewer-media audio-neutral-skin,
+ .files-viewer-media .files-viewer-media__player {
width: 100%;
- --plyr-color-main: var(--bs-primary);
}
- .files-viewer-media--audio .plyr {
- height: auto;
+ .files-viewer-media video-player {
+ display: contents;
+ }
+
+ .files-viewer-media media-i18n {
+ display: contents;
+ }
+
+ .files-viewer-media audio-player {
+ display: block;
+ }
+
+ .files-viewer-media video-neutral-skin,
+ .files-viewer-media audio-neutral-skin {
+ display: block;
+ --media-accent-color: var(--bs-primary);
+ --media-accent-text-color: #fff;
+ --media-border-color: transparent;
+ }
+
+ .files-viewer-media video-neutral-skin {
+ --media-border-radius: 0;
+ --media-object-fit: contain;
+ }
+
+ .files-viewer-media--audio audio-player {
max-width: 720px;
- border-radius: 6px;
- box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
- --plyr-audio-controls-background: rgba(17, 24, 28, 0.94);
- --plyr-audio-control-color: rgba(255, 255, 255, 0.88);
- --plyr-audio-control-color-hover: #fff;
- --plyr-audio-control-background-hover: var(--bs-primary);
- --plyr-audio-range-track-background: rgba(255, 255, 255, 0.24);
- --plyr-audio-progress-buffered-background: rgba(255, 255, 255, 0.24);
- --plyr-range-thumb-background: #fff;
- --plyr-menu-background: #1f2a30;
- --plyr-menu-color: rgba(255, 255, 255, 0.9);
- --plyr-menu-arrow-color: rgba(255, 255, 255, 0.72);
}
- .files-viewer-media--audio .plyr--audio .plyr__controls {
- border-radius: inherit;
+ .files-viewer-media--audio audio-neutral-skin {
+ height: auto;
+ border-radius: 6px;
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
+ color-scheme: dark;
+ --media-border-radius: 6px;
}
- .files-viewer-media .files-viewer-media__player {
- width: 100%;
+ .files-viewer-media video.files-viewer-media__player {
object-fit: contain;
}
`
],
template: `
- <div class="files-viewer-media" [class.files-viewer-media--audio]="isAudio()" [style.height.px]="currentHeight()">
- @if (isAudio()) {
- <audio #media class="files-viewer-media__player" preload="none" [autoplay]="!sidebarMode()" controls>
- <source [src]="file().dataUrl" />
- </audio>
- } @else {
- <video #media class="files-viewer-media__player" preload="none" [autoplay]="!sidebarMode()" playsinline controls>
- <source [src]="file().dataUrl" />
- </video>
- }
+ <div
+ class="files-viewer-media"
+ [class.files-viewer-media--audio]="isAudio()"
+ [style.--media-scale-unit]="sidebarMode() ? '14px' : null"
+ [style.height.px]="currentHeight()"
+ >
+ <media-i18n [attr.lang]="playerLanguage()">
+ @if (isAudio()) {
+ <audio-player>
+ <audio-neutral-skin #audioSkin>
+ <audio class="files-viewer-media__player" preload="none" [autoplay]="!sidebarMode()" [src]="file().dataUrl"></audio>
+ </audio-neutral-skin>
+ </audio-player>
+ } @else {
+ <video-player>
+ <video-neutral-skin>
+ <video class="files-viewer-media__player" preload="none" [autoplay]="!sidebarMode()" [src]="file().dataUrl" playsinline></video>
+ </video-neutral-skin>
+ </video-player>
+ }
+ </media-i18n>
</div>
`
})
-export class FilesViewerMediaComponent implements AfterViewInit, OnDestroy {
+export class FilesViewerMediaComponent {
file = input.required<FileModel>()
currentHeight = input<number>()
sidebarMode = input(false)
+ private readonly audioSkin = viewChild<ElementRef<HTMLElement>>('audioSkin')
+ protected readonly playerLanguage = toSignal(
+ inject(L10nTranslationService)
+ .onChange()
+ .pipe(map((locale) => locale.language)),
+ {
+ requireSync: true
+ }
+ )
protected readonly isAudio = computed(() => {
const mime = this.file().mime?.trim().toLowerCase()
if (!mime) return false
return (mime.includes('/') ? mime : mime.replace('-', '/')).startsWith('audio/')
})
- private readonly media = viewChild.required<ElementRef<HTMLMediaElement>>('media')
- private player?: PlyrInstance
-
- ngAfterViewInit() {
- const sidebarMode = this.sidebarMode()
- const options: PlyrOptions = {
- autoplay: !sidebarMode,
- blankVideo: 'assets/plyr/blank.mp4',
- controls: sidebarMode
- ? ['play', 'progress', 'fullscreen']
- : ['play-large', 'play', 'progress', 'current-time', 'duration', 'mute', 'volume', 'settings', 'pip', 'airplay', 'fullscreen'],
- iconUrl: 'assets/plyr/plyr.svg',
- keyboard: { focused: true, global: true }
- }
- if (!sidebarMode) {
- options.settings = ['speed', 'loop']
- options.speed = { selected: 1, options: [0.5, 0.75, 1, 1.25, 1.5, 2] }
- }
- this.player = new PlyrPlayer(this.media().nativeElement, options)
- }
- ngOnDestroy() {
- this.player?.destroy()
+ constructor() {
+ afterRenderEffect(() => {
+ const hideSeekControls = this.sidebarMode()
+ const shadowRoot = this.audioSkin()?.nativeElement.shadowRoot
+ if (!shadowRoot) return
+ // These packaged-skin internals may change between Video.js releases; verify them after each upgrade.
+ // Neutral audio uses separate private values for its controls outline and radius.
+ const audioControls = shadowRoot.querySelector<HTMLElement>('.audio-controls-content')
+ audioControls?.style.setProperty('border-radius', 'var(--media-border-radius)')
+ audioControls?.style.setProperty('box-shadow', 'none')
+ // Packaged Video.js skins expose no option to remove controls, but their shadow root is open.
+ shadowRoot
+ .querySelectorAll<HTMLElement>('media-seek-button, media-seek-button + media-tooltip')
+ .forEach((control) => control.toggleAttribute('hidden', hideSeekControls))
+ })
}
}
diff --git a/frontend/src/assets/plyr/blank.mp4 b/frontend/src/assets/plyr/blank.mp4
deleted file mode 100644
index d8982b63..00000000
Binary files a/frontend/src/assets/plyr/blank.mp4 and /dev/null differ
diff --git a/frontend/src/assets/plyr/plyr.svg b/frontend/src/assets/plyr/plyr.svg
deleted file mode 100644
index 1f283602..00000000
--- a/frontend/src/assets/plyr/plyr.svg
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg xmlns="http://www.w3.org/2000/svg"><symbol id="plyr-airplay" viewBox="0 0 18 18"><path d="M16 1H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3v-2H3V3h12v8h-2v2h3a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"/><path d="M4 17h10l-5-6z"/></symbol><symbol id="plyr-captions-off" viewBox="0 0 18 18"><path fill-opacity=".5" fill-rule="evenodd" d="M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3s.5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7s1.65 3.69 3.63 3.69m7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7s1.65 3.69 3.63 3.69"/></symbol><symbol id="plyr-captions-on" viewBox="0 0 18 18"><path fill-rule="evenodd" d="M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3s.5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7s1.65 3.69 3.63 3.69m7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7s1.65 3.69 3.63 3.69"/></symbol><symbol id="plyr-download" viewBox="0 0 18 18"><path d="M9 13c.3 0 .5-.1.7-.3L15.4 7 14 5.6l-4 4V1H8v8.6l-4-4L2.6 7l5.7 5.7c.2.2.4.3.7.3m-7 2h14v2H2z"/></symbol><symbol id="plyr-enter-fullscreen" viewBox="0 0 18 18"><path d="M10 3h3.6l-4 4L11 8.4l4-4V8h2V1h-7zM7 9.6l-4 4V10H1v7h7v-2H4.4l4-4z"/></symbol><symbol id="plyr-exit-fullscreen" viewBox="0 0 18 18"><path d="M1 12h3.6l-4 4L2 17.4l4-4V17h2v-7H1zM16 .6l-4 4V1h-2v7h7V6h-3.6l4-4z"/></symbol><symbol id="plyr-fast-forward" viewBox="0 0 18 18"><path d="M7.875 7.171 0 1v16l7.875-6.171V17L18 9 7.875 1z"/></symbol><symbol id="plyr-logo-vimeo" viewBox="0 0 18 18"><path d="M17 5.3c-.1 1.6-1.2 3.7-3.3 6.4-2.2 2.8-4 4.2-5.5 4.2-.9 0-1.7-.9-2.4-2.6C5 10.9 4.4 6 3 6c-.1 0-.5.3-1.2.8l-.8-1c.8-.7 3.5-3.4 4.7-3.5S7.7 3 8 4.8c.3 2 .8 6.1 1.8 6.1.9 0 2.5-3.4 2.6-4 .1-.9-.3-1.9-2.3-1.1.8-2.6 2.3-3.8 4.5-3.8q2.55.15 2.4 3.3"/></symbol><symbol id="plyr-logo-youtube" viewBox="0 0 18 18"><path d="M16.8 5.8c-.2-1.3-.8-2.2-2.2-2.4C12.4 3 9 3 9 3s-3.4 0-5.6.4C2 3.6 1.3 4.5 1.2 5.8 1 7.1 1 9 1 9s0 1.9.2 3.2.8 2.2 2.2 2.4C5.6 15 9 15 9 15s3.4 0 5.6-.4c1.4-.3 2-1.1 2.2-2.4S17 9 17 9s0-1.9-.2-3.2M7 12V6l5 3z"/></symbol><symbol id="plyr-muted" viewBox="0 0 18 18"><path d="m12.4 12.5 2.1-2.1 2.1 2.1 1.4-1.4L15.9 9 18 6.9l-1.4-1.4-2.1 2.1-2.1-2.1L11 6.9 13.1 9 11 11.1zM3.786 6.008H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601z"/></symbol><symbol id="plyr-pause" viewBox="0 0 18 18"><path d="M6 1H3c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1m6 0c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1z"/></symbol><symbol id="plyr-pip" viewBox="0 0 18 18"><path d="M13.293 3.293 7.022 9.564l1.414 1.414 6.271-6.271L17 7V1h-6z"/><path d="M13 15H3V5h5V3H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-6h-2z"/></symbol><symbol id="plyr-play" viewBox="0 0 18 18"><path d="M15.562 8.1 3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8"/></symbol><symbol id="plyr-restart" viewBox="0 0 18 18"><path d="m9.7 1.2.7 6.4 2.1-2.1c1.9 1.9 1.9 5.1 0 7-.9 1-2.2 1.5-3.5 1.5s-2.6-.5-3.5-1.5c-1.9-1.9-1.9-5.1 0-7 .6-.6 1.4-1.1 2.3-1.3l-.6-1.9C6 2.6 4.9 3.2 4 4.1 1.3 6.8 1.3 11.2 4 14c1.3 1.3 3.1 2 4.9 2 1.9 0 3.6-.7 4.9-2 2.7-2.7 2.7-7.1 0-9.9L16 1.9z"/></symbol><symbol id="plyr-rewind" viewBox="0 0 18 18"><path d="M10.125 1 0 9l10.125 8v-6.171L18 17V1l-7.875 6.171z"/></symbol><symbol id="plyr-settings" viewBox="0 0 18 18"><path d="M16.135 7.784a2 2 0 0 1-1.23-2.969c.322-.536.225-.998-.094-1.316l-.31-.31c-.318-.318-.78-.415-1.316-.094a2 2 0 0 1-2.969-1.23C10.065 1.258 9.669 1 9.219 1h-.438c-.45 0-.845.258-.997.865a2 2 0 0 1-2.969 1.23c-.536-.322-.999-.225-1.317.093l-.31.31c-.318.318-.415.781-.093 1.317a2 2 0 0 1-1.23 2.969C1.26 7.935 1 8.33 1 8.781v.438c0 .45.258.845.865.997a2 2 0 0 1 1.23 2.969c-.322.536-.225.998.094 1.316l.31.31c.319.319.782.415 1.316.094a2 2 0 0 1 2.969 1.23c.151.607.547.865.997.865h.438c.45 0 .845-.258.997-.865a2 2 0 0 1 2.969-1.23c.535.321.997.225 1.316-.094l.31-.31c.318-.318.415-.781.094-1.316a2 2 0 0 1 1.23-2.969c.607-.151.865-.547.865-.997v-.438c0-.451-.26-.846-.865-.997M9 12a3 3 0 1 1 0-6 3 3 0 0 1 0 6"/></symbol><symbol id="plyr-volume" viewBox="0 0 18 18"><path d="M15.6 3.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4C15.4 5.9 16 7.4 16 9s-.6 3.1-1.8 4.3c-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4.2-2.4-5.7"/><path d="M11.282 5.282a.91.91 0 0 0 0 1.316c.735.735.995 1.458.995 2.402 0 .936-.425 1.917-.995 2.487a.91.91 0 0 0 0 1.316c.145.145.636.262 1.018.156a.7.7 0 0 0 .298-.156C13.773 11.733 14.13 10.16 14.13 9q.001-.255-.011-.51c-.053-.992-.319-2.005-1.522-3.208a.91.91 0 0 0-1.316 0m-7.495.726H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601z"/></symbol></svg>
\ No newline at end of file
diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss
index 7c1574e2..aa195023 100644
--- a/frontend/src/styles/index.scss
+++ b/frontend/src/styles/index.scss
@@ -13,5 +13,3 @@
// used for ngx-contextmenu
@import '@angular/cdk/overlay-prebuilt.css';
@import '@perfectmemory/ngx-contextmenu/src/assets/stylesheets/base.scss';
-// used for plyr
-@import 'plyr/dist/plyr.css';
diff --git a/package-lock.json b/package-lock.json
index 99f60735..421ea81d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -163,6 +163,7 @@
"@tiptap/extension-task-list": "^3.25.0",
"@tiptap/markdown": "^3.25.0",
"@tiptap/starter-kit": "^3.25.0",
+ "@videojs/html": "^10.2.0",
"angular-l10n": "^17.0.1",
"codemirror": "^6.0.2",
"dayjs": "^1.11.21",
@@ -173,7 +174,6 @@
"ngx-tiptap": "^14.0.1",
"ngx-toastr": "^20.0.5",
"pdfjs-dist": "6.4.299",
- "plyr": "^3.8.4",
"rxjs": "^7.8.2",
"tslib": "^2.7.0",
"zone.js": "^0.15.1"
@@ -5429,6 +5429,30 @@
"listr2": "9.0.5"
}
},
+ "node_modules/@lit-labs/ssr-dom-shim": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.6.0.tgz",
+ "integrity": "sha512-VHb0ALPMTlgKjM6yIxxoQNnpKyUKLD04VzeQdsiXkMqkvYlAHxq9glGLmgbb889/1GsohSOAjvQYoiBppXFqrQ==",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@lit/context": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/@lit/context/-/context-1.1.6.tgz",
+ "integrity": "sha512-M26qDE6UkQbZA2mQ3RjJ3Gzd8TxP+/0obMgE5HfkfLhEEyYE3Bui4A5XHiGPjy0MUGAyxB3QgVuw2ciS0kHn6A==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@lit/reactive-element": "^1.6.2 || ^2.1.0"
+ }
+ },
+ "node_modules/@lit/reactive-element": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.1.2.tgz",
+ "integrity": "sha512-pbCDiVMnne1lYUIaYNN5wrwQXDtHaYtg7YEFPeW+hws6U47WeFvISGUWekPGKWOP1ygrs0ef0o1VJMk1exos5A==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@lit-labs/ssr-dom-shim": "^1.5.0"
+ }
+ },
"node_modules/@lmdb/lmdb-darwin-arm64": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-arm64/-/lmdb-darwin-arm64-3.5.1.tgz",
@@ -10371,6 +10395,165 @@
"url": "https://opencollective.com/eslint"
}
},
+ "node_modules/@videojs/core": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/core/-/core-10.2.0.tgz",
+ "integrity": "sha512-xYF4aWKq4Us0SzxwAZmpbeONgTSogH3gF0yfDlZEusaPrpx1rsXwAELas1PjcwzUC+jwMAQ54C6q3RAZ/xbHwA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@videojs/media": "10.2.0",
+ "@videojs/store": "10.2.0",
+ "@videojs/utils": "10.2.0",
+ "video.js": "10.2.0"
+ }
+ },
+ "node_modules/@videojs/element": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/element/-/element-10.2.0.tgz",
+ "integrity": "sha512-eGsRhK7nxUkPbjrXGHZDlNJsVTovJCzg6w1+B3aOOWOpfxvLSEUwR8KJ+VPtzqAcbS3lZ5LQjxFyomv1dirh+Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@lit/context": "^1.1.0"
+ }
+ },
+ "node_modules/@videojs/html": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/html/-/html-10.2.0.tgz",
+ "integrity": "sha512-Bas9JqHlbiLx9oLhLvCWJr+UoUQ9Xb/Z156O7d/DQ8ujxuV8I7f6vWgkcLOjUjp78rBZjPIy/O+wMPBNbIJpSw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@videojs/core": "10.2.0",
+ "@videojs/element": "10.2.0",
+ "@videojs/media": "10.2.0",
+ "@videojs/native-hls-video": "10.2.0",
+ "@videojs/spf": "10.2.0",
+ "@videojs/store": "10.2.0",
+ "@videojs/utils": "10.2.0"
+ },
+ "peerDependencies": {
+ "@videojs/cloudflare-video": "10.2.0",
+ "@videojs/dash-video": "10.2.0",
+ "@videojs/google-cast": "10.2.0",
+ "@videojs/hlsjs-video": "10.2.0",
+ "@videojs/mux-audio": "10.2.0",
+ "@videojs/mux-data": "10.2.0",
+ "@videojs/mux-video": "10.2.0",
+ "@videojs/playerjs-video": "10.2.0",
+ "@videojs/shaka-video": "10.2.0",
+ "@videojs/spotify-audio": "10.2.0",
+ "@videojs/tiktok-video": "10.2.0",
+ "@videojs/twitch-video": "10.2.0",
+ "@videojs/vimeo-video": "10.2.0",
+ "@videojs/wistia-video": "10.2.0",
+ "@videojs/youtube-video": "10.2.0"
+ },
+ "peerDependenciesMeta": {
+ "@videojs/cloudflare-video": {
+ "optional": true
+ },
+ "@videojs/dash-video": {
+ "optional": true
+ },
+ "@videojs/google-cast": {
+ "optional": true
+ },
+ "@videojs/hlsjs-video": {
+ "optional": true
+ },
+ "@videojs/mux-audio": {
+ "optional": true
+ },
+ "@videojs/mux-data": {
+ "optional": true
+ },
+ "@videojs/mux-video": {
+ "optional": true
+ },
+ "@videojs/playerjs-video": {
+ "optional": true
+ },
+ "@videojs/shaka-video": {
+ "optional": true
+ },
+ "@videojs/spotify-audio": {
+ "optional": true
+ },
+ "@videojs/tiktok-video": {
+ "optional": true
+ },
+ "@videojs/twitch-video": {
+ "optional": true
+ },
+ "@videojs/vimeo-video": {
+ "optional": true
+ },
+ "@videojs/wistia-video": {
+ "optional": true
+ },
+ "@videojs/youtube-video": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@videojs/media": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/media/-/media-10.2.0.tgz",
+ "integrity": "sha512-bdlq1nav3xeuWsmxN1eWEdJcbS1QxHoMZq2+4DJ19yWAGSheXDt52xDNTgNhoKY0FoJFTdNEsv/4qxR/eW+IjA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@videojs/utils": "10.2.0"
+ }
+ },
+ "node_modules/@videojs/native-hls-video": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/native-hls-video/-/native-hls-video-10.2.0.tgz",
+ "integrity": "sha512-+0ISYTxbPtXc530CvTqCkoKrOPzxpAqvdgw79cRTOAG/7sR4xgQqt341O+P0HesH5kYeMwkLfWcSM964FAcMTw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@videojs/media": "10.2.0",
+ "@videojs/spf": "10.2.0",
+ "@videojs/utils": "10.2.0"
+ }
+ },
+ "node_modules/@videojs/spf": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/spf/-/spf-10.2.0.tgz",
+ "integrity": "sha512-ovoHDqR5td0nfeZeCu2GWbdb3SVqP9udEAZr/4/VNUKYKstOg21rlGYS/We/our17kkxcp6Dvg7H98xLzn83pQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@videojs/media": "10.2.0",
+ "@videojs/utils": "10.2.0",
+ "signal-polyfill": "^0.2.2"
+ }
+ },
+ "node_modules/@videojs/store": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/store/-/store-10.2.0.tgz",
+ "integrity": "sha512-rKV2tCigF1ifVFk1n+svGMpWLdEsBl3LHYbD9hrHQZtSI2SAwgwvD5W5vA0hcc0W3f9cblsrS0zgT/JxQlKfrw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@videojs/utils": "10.2.0",
+ "react-compiler-runtime": "^1.0.0"
+ },
+ "peerDependencies": {
+ "@videojs/element": "10.2.0",
+ "react": "^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@videojs/element": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@videojs/utils": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/@videojs/utils/-/utils-10.2.0.tgz",
+ "integrity": "sha512-+uV+rg5Dtq0OpPT3OQsybA+grWyDaluFIQ6f5X8Jqb98gy0momQBo7yPA92TlVL7eiUrPpYb4eX0xeTXLKL73Q==",
+ "license": "Apache-2.0"
+ },
"node_modules/@vitejs/plugin-basic-ssl": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-2.1.4.tgz",
@@ -12514,12 +12697,6 @@
"url": "https://github.com/sponsors/fb55"
}
},
- "node_modules/custom-event-polyfill": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/custom-event-polyfill/-/custom-event-polyfill-1.0.7.tgz",
- "integrity": "sha512-TDDkd5DkaZxZFM8p+1I3yAlvM3rSr1wbrOliG4yJiwinMZN8z/iGL7BTlDkrJcYTmgUSb4ywVCc3ZaUtOtC76w==",
- "license": "MIT"
- },
"node_modules/dateformat": {
"version": "4.6.3",
"resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz",
@@ -16283,12 +16460,6 @@
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
}
},
- "node_modules/loadjs": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/loadjs/-/loadjs-4.3.0.tgz",
- "integrity": "sha512-vNX4ZZLJBeDEOBvdr2v/F+0aN5oMuPu7JTqrMwp+DtgK+AryOlpy6Xtm2/HpNr+azEa828oQjOtWsB6iDtSfSQ==",
- "license": "MIT"
- },
"node_modules/locate-path": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
@@ -18432,23 +18603,6 @@
"node": ">=4"
}
},
- "node_modules/plyr": {
- "version": "3.8.5",
- "resolved": "https://registry.npmjs.org/plyr/-/plyr-3.8.5.tgz",
- "integrity": "sha512-SqGU1s76fq4lI8ABYhi1uxwrcLGYqmyiMazFAUIOQKKwt6S7FfflEMljLaM3SV8HUUb1KdZ04FY/SNFRpPZHUw==",
- "deprecated": "Plyr is deprecated and receives security updates only. Use Video.js 10 for new projects. Migration guide: https://videojs.org/docs/framework/html/guides/migrate-from-plyr",
- "hasInstallScript": true,
- "license": "MIT",
- "dependencies": {
- "custom-event-polyfill": "^1.0.7",
- "loadjs": "^4.3.0",
- "rangetouch": "^2.0.1",
- "url-polyfill": "^1.1.14"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
"node_modules/postcss": {
"version": "8.5.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.31.tgz",
@@ -18830,12 +18984,6 @@
"url": "https://opencollective.com/express"
}
},
- "node_modules/rangetouch": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/rangetouch/-/rangetouch-2.0.1.tgz",
- "integrity": "sha512-sln+pNSc8NGaHoLzwNBssFSf/rSYkqeBXzX1AtJlkJiUaVSJSbRAWJk+4omsXkN+EJalzkZhWQ3th1m0FpR5xA==",
- "license": "MIT"
- },
"node_modules/raw-body": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
@@ -18861,6 +19009,25 @@
"node": ">=20.0.0"
}
},
+ "node_modules/react": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-compiler-runtime": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/react-compiler-runtime/-/react-compiler-runtime-1.0.0.tgz",
+ "integrity": "sha512-rRfjYv66HlG8896yPUDONgKzG5BxZD1nV9U6rkm+7VCuvQc903C4MjcoZR4zPw53IKSOX9wMQVpA1IAbRtzQ7w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^0.0.0-experimental"
+ }
+ },
"node_modules/readdirp": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz",
@@ -19618,6 +19785,12 @@
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/signal-polyfill": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/signal-polyfill/-/signal-polyfill-0.2.2.tgz",
+ "integrity": "sha512-p63Y4Er5/eMQ9RHg0M0Y64NlsQKpiu6MDdhBXpyywRuWiPywhJTpKJ1iB5K2hJEbFZ0BnDS7ZkJ+0AfTuL37Rg==",
+ "license": "Apache-2.0"
+ },
"node_modules/sigstore": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/sigstore/-/sigstore-4.1.1.tgz",
@@ -21020,12 +21193,6 @@
"punycode": "^2.1.0"
}
},
- "node_modules/url-polyfill": {
- "version": "1.1.14",
- "resolved": "https://registry.npmjs.org/url-polyfill/-/url-polyfill-1.1.14.tgz",
- "integrity": "sha512-p4f3TTAG6ADVF3mwbXw7hGw+QJyw5CnNGvYh5fCuQQZIiuKUswqcznyV3pGDP9j0TSmC4UvRKm8kl1QsX1diiQ==",
- "license": "MIT"
- },
"node_modules/utils-merge": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
@@ -21074,6 +21241,12 @@
"url": "https://github.com/sponsors/sxzz"
}
},
+ "node_modules/video.js": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/video.js/-/video.js-10.2.0.tgz",
+ "integrity": "sha512-YoezDYXY6iDkuhLGnyOz96XBKjwB0cQbPNq5ck1FAf2JcqfLnnwkNQ4ofbwhlpAM55RFp6VDhSvKe5wVcFV11Q==",
+ "license": "Apache-2.0"
+ },
"node_modules/vite": {
"version": "7.3.7",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.3.7.tgz",