feat(youtube): add YouTube browser window and Whisper subtitle source (#273)

This commit is contained in:
2026-09-28 20:35:47 -07:00
committed by GitHub
parent c68b73c8c1
commit 07b32626a6
101 changed files with 2269 additions and 726 deletions
+3
View File
@@ -43,6 +43,9 @@ function M.create(ctx)
mp.register_script_message("subminer-autoplay-ready", function()
process.notify_auto_play_ready()
end)
mp.register_script_message("subminer-autoplay-hold", function()
process.hold_auto_play_ready_gate()
end)
mp.register_script_message("subminer-overlay-loading-ready", function()
process.stop_overlay_loading_osd()
end)
+12
View File
@@ -351,6 +351,17 @@ function M.create(ctx)
return true
end
-- The app is running a long managed subtitle load (Whisper generation): drop the timeout so it
-- cannot resume playback early, but stay armed so the app's ready signal still releases it.
local function hold_auto_play_ready_gate()
if not state.auto_play_ready_gate_armed then
return
end
clear_auto_play_ready_timeout()
clear_auto_play_ready_osd_timer()
subminer_log("info", "process", "Holding pause-until-ready for app-managed subtitle loading")
end
local function arm_auto_play_ready_gate()
local was_armed = state.auto_play_ready_gate_armed
if was_armed then
@@ -1020,6 +1031,7 @@ function M.create(ctx)
check_status = check_status,
check_binary_available = check_binary_available,
notify_auto_play_ready = notify_auto_play_ready,
hold_auto_play_ready_gate = hold_auto_play_ready_gate,
disarm_auto_play_ready_gate = disarm_auto_play_ready_gate,
start_overlay_loading_osd = start_overlay_loading_osd,
stop_overlay_loading_osd = stop_overlay_loading_osd,