mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
* refactored `Interactive` class to allow more HapticDevice devices * simplified api hooks * update creation of `interactive` to pass `stashConfig` * updated UIPluginApi to mention `PluginApi.InteractiveUtils`
8 lines
217 B
TypeScript
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();
|