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:
xtc1337
2025-09-25 00:27:58 -05:00
committed by GitHub
parent c9ca40152f
commit 15bf28d5be
6 changed files with 186 additions and 15 deletions

View File

@@ -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();