diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-25 04:31:24 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-25 04:31:24 +0200 |
commit | 81bb9dee3ed8a029bec831e7c3f204cd0ed41472 (patch) | |
tree | 120d88415656b437d6e64dbb4b2e36dcab89c3cc /web/script | |
parent | 5391247680709d3bd25e0f9bdccd6ee7a26a948c (diff) | |
download | jellything-81bb9dee3ed8a029bec831e7c3f204cd0ed41472.tar jellything-81bb9dee3ed8a029bec831e7c3f204cd0ed41472.tar.bz2 jellything-81bb9dee3ed8a029bec831e7c3f204cd0ed41472.tar.zst |
filter clusters; remove jsp multisegment support
Diffstat (limited to 'web/script')
-rw-r--r-- | web/script/player/player.ts | 4 | ||||
-rw-r--r-- | web/script/player/types_stream.ts | 4 |
2 files changed, 2 insertions, 6 deletions
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 @@ -10,10 +10,6 @@ export interface SubtitleCue extends TimeRange { } export interface StreamInfo { name?: string, - segments: SegmentInfo[], -} -export interface SegmentInfo { - name?: string, duration: number, tracks: TrackInfo[], } |