Skip to content

Commit

Permalink
fix(seekbar): don't disable if live tracker's seekable is infinity (#…
Browse files Browse the repository at this point in the history
…5721)

This was done to make the behavior on Android with HLS live streams better but the it's opening us up to too many potential issues, like a user not being able to properly disable the control bar, that we should just back it out.
  • Loading branch information
gkatsev authored Jan 8, 2019
1 parent 544ed9d commit f02fb1b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/js/control-bar/progress-control/seek-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ class SeekBar extends Slider {
duration = this.player_.liveTracker.liveCurrentTime();
}

if (liveTracker && liveTracker.seekableEnd() === Infinity) {
this.disable();
} else {
this.enable();
}

// machine readable value of progress bar (percentage complete)
this.el_.setAttribute('aria-valuenow', (percent * 100).toFixed(2));

Expand Down

0 comments on commit f02fb1b

Please sign in to comment.