script/playbackstrategy/modifiers/html5.js
function getClampedTime (seconds) {
        var range = getSeekableRange();
        var offsetFromEnd = getClampOffsetFromConfig();
        var nearToEnd = Math.max(range.end - offsetFromEnd, range.start);
        if (seconds < range.start) {
          return range.start;
        } else if (seconds > nearToEnd) {
          return nearToEnd;
        } else {
          return seconds;
        }
      }
function getClampedTime (seconds) {
        var range = getSeekableRange();
        var offsetFromEnd = getClampOffsetFromConfig();
        var nearToEnd = Math.max(range.end - offsetFromEnd, range.start);
        if (seconds < range.start) {
          return range.start;
        } else if (seconds > nearToEnd) {
          return nearToEnd;
        } else {
          return seconds;
        }
      }
function getClampedTime ( seconds ) { var range = getSeekableRange ( ) ; var offsetFromEnd = getClampOffsetFromConfig ( ) ; var nearToEnd = Math . max ( range . end - offsetFromEnd , range . start ) ; if ( seconds < range . start ) { return range . start ; } else if ( seconds > nearToEnd ) { return nearToEnd ; } else { return seconds ; } }
Clamp a time value so it does not exceed the current range.
Clamps to near the end instead of the end itself to allow for devices that cannot seek to the very end of the media.
@param {Number} seconds The time value to clamp in seconds from the start of the media
@protected
Clamp a time value so it does not exceed the current range . Clamps to near the end instead of the end itself to allow for devices that cannot seek to the very end of the media .