code: @Override
      public void position(long pos) {
          if (pos == Long.MAX_VALUE) {
              // seek at EOF
              currentTime = duration;
          }
          if (posTimeMap.containsKey(pos)) {
              try {
                  fileChannel.position(pos);
                  currentTime = posTimeMap.get(pos);
              } catch (IOException e) {
                  log.warn("Setting position to: {} failed", pos, e);
              }
          }
      }
docs: {@inheritDoc}