mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Merge pull request #360 from ZyanKLee/patch-1
allow for "linuxbrowser_source" to be controlled
This commit is contained in:
commit
3142e097a5
@ -923,7 +923,7 @@ HandlerResponse WSRequestHandler::HandleGetBrowserSourceProperties(WSRequestHand
|
||||
}
|
||||
|
||||
QString sourceId = obs_source_get_id(source);
|
||||
if (sourceId != "browser_source") {
|
||||
if (sourceId != "browser_source" && sourceId != "linuxbrowser-source") {
|
||||
return req->SendErrorResponse("not a browser source");
|
||||
}
|
||||
|
||||
@ -969,7 +969,7 @@ HandlerResponse WSRequestHandler::HandleSetBrowserSourceProperties(WSRequestHand
|
||||
}
|
||||
|
||||
QString sourceId = obs_source_get_id(source);
|
||||
if(sourceId != "browser_source") {
|
||||
if(sourceId != "browser_source" && sourceId != "linuxbrowser-source") {
|
||||
return req->SendErrorResponse("not a browser source");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user