diff --git a/build.py b/build.py index 5a46430..57a3b9a 100644 --- a/build.py +++ b/build.py @@ -21,7 +21,7 @@ SRC = os.path.join(HERE, "src") DIST = os.path.join(HERE, "dist") OUT = os.path.join(DIST, "jfvr.js") -ORDER = ["00-core.js", "10-subtitles.js", "20-controls.js", "30-hands.js", "90-main.js"] +ORDER = ["00-core.js", "10-subtitles.js", "20-controls.js", "30-hands.js", "40-watchdog.js", "90-main.js"] def sources(): diff --git a/dist/jfvr.js b/dist/jfvr.js index 518d4c9..b3a086a 100644 --- a/dist/jfvr.js +++ b/dist/jfvr.js @@ -1,7 +1,7 @@ /*! * JFVR (Jellyfin Web VR) — built bundle. DO NOT EDIT. * Edit src/*.js and run: python3 build.py - * Modules: 00-core.js, 10-subtitles.js, 20-controls.js, 30-hands.js, 90-main.js + * Modules: 00-core.js, 10-subtitles.js, 20-controls.js, 30-hands.js, 40-watchdog.js, 90-main.js */ /* ===== 00-core.js ===== */ @@ -4396,6 +4396,368 @@ +/* ===== 40-watchdog.js ===== */ + +/*! + * JFVR watchdog — "this video never started" detection. + * + * WHY THIS EXISTS + * --------------- + * Jellyfin Web builds the whole player UI (including the quality menu) only + * after the 'playbackstart' event, which the media element fires once it has + * actually started. The load order is: + * + * HtmlVideoPlayer.play() htmlVideoPlayer/plugin.js:502 + * createMediaElement() :1802 -> loading.show() spinner + * ->