diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-16 15:39:40 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-16 15:39:40 +0100 |
commit | 705cee366eb961abf4409f3871a65b1bc37b0ea4 (patch) | |
tree | 6d69b2d65e1628a9ba0f990dc08a65a19b3d2a57 | |
parent | 079fbf62ad125cfe69853c0bf543db7225d41020 (diff) | |
download | jellything-705cee366eb961abf4409f3871a65b1bc37b0ea4.tar jellything-705cee366eb961abf4409f3871a65b1bc37b0ea4.tar.bz2 jellything-705cee366eb961abf4409f3871a65b1bc37b0ea4.tar.zst |
fix misdetected transcoding for timestampOffset
-rw-r--r-- | web/script/player/track/mse.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/script/player/track/mse.ts b/web/script/player/track/mse.ts index ec036b4..d1a8c12 100644 --- a/web/script/player/track/mse.ts +++ b/web/script/player/track/mse.ts @@ -147,7 +147,7 @@ export class MSEPlayerTrack extends PlayerTrack { this.current_load = frag; // TODO why is appending so unreliable?! sometimes it does not add it this.source_buffer.changeType(track_to_content_type(this.track_from_profile())!); - this.source_buffer.timestampOffset = this.profile ? frag.start : 0 + this.source_buffer.timestampOffset = this.profile.value !== undefined ? frag.start : 0 console.log(`append track ${this.track_index}`); this.source_buffer.appendBuffer(frag.buf); } |