Region-based Looping (a.k.a. A/B looping) utilizing videojs-abloop plugin (#3904)

* yarn add videojs-abloop
* add abLoop plugin to video player
* adding player keyboard shortcut 'l' for toggling a/b looping

copies mpv behavior:
if a/b loop start not yet set, sets start to current player time
elif a/b loop stop not yet set, sets end to current player time and enables loop
else, disables a/b loop

relates to #3264 (https://github.com/stashapp/stash/issues/3264)

* update help with keyboard shortcut
* Add plugin type definitions
* Make UI elements optional
---------
Co-authored-by: chickenwingavalanche <chickenwingavalanche@example.com>
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
chickenwingavalanche
2023-08-23 20:58:47 -06:00
committed by GitHub
parent 922aef3e5a
commit 1f3ed07188
8 changed files with 88 additions and 2 deletions

View File

@@ -68,6 +68,7 @@
"ua-parser-js": "^1.0.34",
"universal-cookie": "^4.0.4",
"video.js": "^7.21.3",
"videojs-abloop": "^1.2.0",
"videojs-contrib-dash": "^5.1.1",
"videojs-mobile-ui": "^0.8.0",
"videojs-seek-buttons": "^3.0.1",