Skip to content

Commit

Permalink
Merge pull request #46 from Uscreen-video/next
Browse files Browse the repository at this point in the history
fix(timeline): do not render progress when live mode enabled
  • Loading branch information
timaramazanov authored May 2, 2024
2 parents 6d1f253 + afb6ef3 commit 1b1172a
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 1b1172a

Please sign in to comment.