From 81bb9dee3ed8a029bec831e7c3f204cd0ed41472 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 25 Sep 2025 04:31:24 +0200 Subject: filter clusters; remove jsp multisegment support --- web/script/player/player.ts | 4 ++-- web/script/player/types_stream.ts | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'web') diff --git a/web/script/player/player.ts b/web/script/player/player.ts index 210ce9a..2991d27 100644 --- a/web/script/player/player.ts +++ b/web/script/player/player.ts @@ -109,9 +109,9 @@ export class Player { this.set_pers() //! bad code: assignment order is important because chapter callbacks use duration - this.duration.value = streaminfo.segments[0].duration + this.duration.value = streaminfo.duration this.streaminfo = streaminfo - this.tracks = streaminfo!.segments[0].tracks; + this.tracks = streaminfo!.tracks; console.log("aaa", this.tracks); this.video.src = URL.createObjectURL(this.media_source) this.media_source.addEventListener("sourceopen", async () => { diff --git a/web/script/player/types_stream.ts b/web/script/player/types_stream.ts index bff4ed8..54c392a 100644 --- a/web/script/player/types_stream.ts +++ b/web/script/player/types_stream.ts @@ -9,10 +9,6 @@ export interface SubtitleCue extends TimeRange { content: string } export interface StreamInfo { - name?: string, - segments: SegmentInfo[], -} -export interface SegmentInfo { name?: string, duration: number, tracks: TrackInfo[], -- cgit v1.2.3-70-g09d2