Skip to content

Commit

Permalink
Fix more test timeouts on Tizen.
Browse files Browse the repository at this point in the history
Like other browsers, the Tizen TV sometimes stalls when inside an
otherwise playable region.  Our technique of flushing by seeking to
the current time doesn't work.  So instead we seek a small amount
in the future.

Closes #893

Change-Id: I91e56e3b9a22fac21fb1d8f66a30a6237b3b28e5
  • Loading branch information
TheModMaker authored and joeyparrish committed Jul 17, 2017
1 parent b01ef25 commit 8e55b9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/media/playhead.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ shaka.media.Playhead.prototype.onPollGapJump_ = function() {
currentTime < buffered.end(i) - 0.5) {
shaka.log.debug(
'Flushing media pipeline due to stall inside buffered range');
this.video_.currentTime = this.video_.currentTime;
this.video_.currentTime += 0.1;
this.stallPlayheadTime_ = this.video_.currentTime;
break;
}
}
Expand Down

0 comments on commit 8e55b9f

Please sign in to comment.