liqvidjs / liqvid

Library for interactive videos in React
https://liqvidjs.org
MIT License
754 stars 39 forks source link

Keyboard shortcut to skip back #38

Open waldyrious opened 1 year ago

waldyrious commented 1 year ago

It seems like it's possible to skip ahead by pressing the right arrow key, but the left arrow key doesn't do anything. It would be nice if it skipped the video back a few seconds (ideally less than the amount that's skipped forward; as a data point, Google Podcasts' player skips ahead by 30 seconds and back by 10 seconds).

ysulyma commented 1 year ago

The default controls are the same as YouTube's:

Left Back 5 seconds Right Forward 5 seconds J Back 10 seconds L Forward 10 seconds

There seems to be a bug in the tutorial video on the homepage, where https://github.com/ysulyma/lv-tutorial/blob/main/lib/rebind-arrow-keys.ts is getting included—I think I failed to upload the latest build. Thanks for catching that! In any case, that file shows how to rebind the arrow keys to do what you want them to.

waldyrious commented 1 year ago

Ah, got it, thanks for the explanation. I'd say this issue could remain open until the issue in the homepage is fixed.