diff options
Diffstat (limited to 'web/script/player/track')
-rw-r--r-- | web/script/player/track/mse.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/script/player/track/mse.ts b/web/script/player/track/mse.ts index 5d1842f..ec036b4 100644 --- a/web/script/player/track/mse.ts +++ b/web/script/player/track/mse.ts @@ -25,7 +25,7 @@ export class MSEPlayerTrack extends PlayerTrack { private player: Player, private node_id: string, track_index: number, - private metadata: SourceTrack, + public metadata: SourceTrack, ) { super(track_index); this.profile_selector = new ProfileSelector(player, this, player.downloader.bandwidth_avail); @@ -147,6 +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 console.log(`append track ${this.track_index}`); this.source_buffer.appendBuffer(frag.buf); } |