diff options
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[], } |