docs: 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;
          }
        }