From 0f6cbb0c5c300ec28b09e4408231b735e9f54f6d Mon Sep 17 00:00:00 2001 From: Erik Guzman Date: Thu, 28 Nov 2019 12:59:36 -0800 Subject: [PATCH] Switch from using caption_text1 to caption_text2 - caption_text1 has a built in delay of 2 seconds for all captions that causes every increasing delays for captions --- src/WSRequestHandler_Streaming.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WSRequestHandler_Streaming.cpp b/src/WSRequestHandler_Streaming.cpp index 0daea177..45bb5f44 100644 --- a/src/WSRequestHandler_Streaming.cpp +++ b/src/WSRequestHandler_Streaming.cpp @@ -307,7 +307,8 @@ HandlerResponse WSRequestHandler::HandleSendCaptions(WSRequestHandler* req) { OBSOutputAutoRelease output = obs_frontend_get_streaming_output(); if (output) { const char* caption = obs_data_get_string(req->data, "text"); - obs_output_output_caption_text1(output, caption); + // Send caption text with immediately (0 second delay) + obs_output_output_caption_text2(output, caption, 0.0); } return req->SendOKResponse();