From 8e55b9f13fd9303c935d1bed3b6433fd0deb1647 Mon Sep 17 00:00:00 2001 From: Jacob Trimble Date: Mon, 19 Jun 2017 10:28:19 -0700 Subject: [PATCH] Fix more test timeouts on Tizen. 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 --- lib/media/playhead.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/media/playhead.js b/lib/media/playhead.js index 594845d63c..0423df9729 100644 --- a/lib/media/playhead.js +++ b/lib/media/playhead.js @@ -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; } }