From cc2414c4ecf7c46bed1925f9889f20fdc8fa251c Mon Sep 17 00:00:00 2001 From: Tom Sadler Date: Thu, 29 Jun 2017 13:38:41 +0100 Subject: [PATCH] Improve comments. --- static/script/devices/mediaplayer/samsung_streaming.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/script/devices/mediaplayer/samsung_streaming.js b/static/script/devices/mediaplayer/samsung_streaming.js index 73ff0dea..9321a43e 100644 --- a/static/script/devices/mediaplayer/samsung_streaming.js +++ b/static/script/devices/mediaplayer/samsung_streaming.js @@ -244,7 +244,7 @@ require.def( this._postBufferingState = MediaPlayer.STATE.PLAYING; var seekingTo = this.getSeekableRange() ? this._getClampedTimeForPlayFrom(seconds) : seconds; - //StartPlayback from live position 0 causes spoiler defect + //StartPlayback from near start of range causes spoiler defect if (seekingTo < this.CLAMP_OFFSET_FROM_START_OF_RANGE && this._isLiveMedia()) { seekingTo = this.CLAMP_OFFSET_FROM_START_OF_RANGE; } else { @@ -583,6 +583,7 @@ require.def( break; case self.PlayerEventCodes.BUFFERING_COMPLETE: + // For live HLS, don't update the range more than once every 8 seconds if (!self._updatingTime) { self._updateRange(); }