Skip to content

Commit

Permalink
fix(timeline): set progress to 100 if live mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
timaramazanov committed May 2, 2024
1 parent 0e19962 commit ad34f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/video-timeline/Video-timeline.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ export class VideoTimeline extends DependentPropsMixin(LitElement) {
>
<video-progress
class="buffered"
.value=${(100 / length) * (this.buffered - segment) -
.value=${this.live ? 100 : (100 / length) * (this.buffered - segment) -
segmentShift * index}
></video-progress>
<video-progress
class="progress"
.value=${(100 / length) * (this.currentValue - segment) -
.value=${this.live ? 100 : (100 / length) * (this.currentValue - segment) -
segmentShift * index +
thumbSift}
></video-progress>
Expand Down

0 comments on commit ad34f5c

Please sign in to comment.