mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
* Add types to player plugins * Use videojs-vtt.js to parse sprite VTT files * Overhaul scene player * Replace vtt-thumbnails-freetube * Remove chapters_vtt * Force remove shadow from player progress bar * Cleanup player css * Rewrite live.ts as middleware * Don't force play when changing source
7 lines
173 B
TypeScript
7 lines
173 B
TypeScript
import videojs from "video.js";
|
|
|
|
export const VIDEO_PLAYER_ID = "VideoJsPlayer";
|
|
|
|
export const getPlayerPosition = () =>
|
|
videojs.getPlayer(VIDEO_PLAYER_ID).currentTime();
|