diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-25 16:23:44 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-25 16:23:44 +0100 |
commit | e2c62c34b4c2983b8ceef034347bc62b28a88122 (patch) | |
tree | c43eaf7dcf5a468c918bafb6b7e223ec73607e09 /web/script/player/player.ts | |
parent | c5d484e16bae5d923f6a3c441827d3d470bfee6e (diff) | |
download | jellything-e2c62c34b4c2983b8ceef034347bc62b28a88122.tar jellything-e2c62c34b4c2983b8ceef034347bc62b28a88122.tar.bz2 jellything-e2c62c34b4c2983b8ceef034347bc62b28a88122.tar.zst |
lib=dom everywhere and error handling
Diffstat (limited to 'web/script/player/player.ts')
-rw-r--r-- | web/script/player/player.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/script/player/player.ts b/web/script/player/player.ts index 7ffdb97..d988374 100644 --- a/web/script/player/player.ts +++ b/web/script/player/player.ts @@ -3,6 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ +/// <reference lib="dom" /> import { OVar, e } from "../jshelper/mod.ts"; import { NodePublic, SourceTrack, TimeRange } from "./jhls.d.ts"; import { SegmentDownloader } from "./download.ts"; @@ -91,7 +92,7 @@ export class Player { this.duration.value = metadata.media!.duration this.video.src = URL.createObjectURL(this.media_source) this.media_source.addEventListener("sourceopen", async () => { - this.set_pers("Initializing Media Extensions...") + this.set_pers("Downloading track indecies...") this.active_tracks.value.push((await PlayerTrack.new(this, this.node_id, 0, this.tracks![0]))!) // TODO unsafe and missing ui anyway this.active_tracks.value.push((await PlayerTrack.new(this, this.node_id, 1, this.tracks![1]))!) this.active_tracks.change() |