mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Adding the ability to support different Haptic Devices (#5856)
* refactored `Interactive` class to allow more HapticDevice devices * simplified api hooks * update creation of `interactive` to pass `stashConfig` * updated UIPluginApi to mention `PluginApi.InteractiveUtils`
This commit is contained in:
@@ -2,5 +2,6 @@ import videojs from "video.js";
|
||||
|
||||
export const VIDEO_PLAYER_ID = "VideoJsPlayer";
|
||||
|
||||
export const getPlayerPosition = () =>
|
||||
videojs.getPlayer(VIDEO_PLAYER_ID)?.currentTime();
|
||||
export const getPlayer = () => videojs.getPlayer(VIDEO_PLAYER_ID);
|
||||
|
||||
export const getPlayerPosition = () => getPlayer()?.currentTime();
|
||||
|
||||
Reference in New Issue
Block a user