mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
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
This commit is contained in:
parent
9a8f248a75
commit
0f6cbb0c5c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user