Files
stash/ui/v2.5/src/components/ScenePlayer/util.ts
xtc1337 15bf28d5be 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`
2025-09-25 15:27:58 +10:00

8 lines
217 B
TypeScript

import videojs from "video.js";
export const VIDEO_PLAYER_ID = "VideoJsPlayer";
export const getPlayer = () => videojs.getPlayer(VIDEO_PLAYER_ID);
export const getPlayerPosition = () => getPlayer()?.currentTime();