mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
EventHandler: Add isGroup bool to create/remove scene events
This commit is contained in:
parent
aac06b101e
commit
94d7df0bc1
@ -6,6 +6,7 @@ void EventHandler::HandleSceneCreated(obs_source_t *source)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(source);
|
eventData["sceneName"] = obs_source_get_name(source);
|
||||||
|
eventData["isGroup"] = obs_source_is_group(source);
|
||||||
_webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneCreated", eventData);
|
_webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneCreated", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13,6 +14,7 @@ void EventHandler::HandleSceneRemoved(obs_source_t *source)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(source);
|
eventData["sceneName"] = obs_source_get_name(source);
|
||||||
|
eventData["isGroup"] = obs_source_is_group(source);
|
||||||
_webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneRemoved", eventData);
|
_webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneRemoved", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user