Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I really love this idea, but it seems like on macOS, you can't use the left/right arrows to skip forward/backward. I did some testing and this appears to be a limitation of the HTML5 video player implemented in Safari, but it would be amazing if this functionality was added (along with other keyboard shortcuts).


Slapped this together.

    const video = document.getElementById("video");
    const skipSecs = 5;

    video.onkeydown = (e) => {
      if (e.keyCode !== 37 && e.keyCode !== 39)
        return;

      e.preventDefault();
      const time = video.currentTime;
      video.currentTime =
        e.keyCode === 37
          ? time - skipSecs
          : time + skipSecs;
    };


J for rewinding 10 seconds, K for pausing, and L for fast-forwarding 10 seconds is what i've gotten used to, along with , and . for frame-by-frame scrubbing.

https://support.google.com/youtube/answer/7631406?hl=en




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: