EventHandler: Return basic list for SceneItemListReindexed

Events can be tricky when it comes to the size of payloads. Many
embedded devices can have troubles receiving large payloads, so
we should be mindful of that. It is much harder to avoid large
payload sizes as a client for events than it is for requests.
Clients that need the data not included here should either cache
it from other sources or grab it fresh.
This commit is contained in:
tt2468 2021-06-13 02:18:02 -07:00
parent 971dd6713b
commit 1f791825ef

View File

@ -50,7 +50,7 @@ void EventHandler::HandleSceneItemListReindexed(void *param, calldata_t *data)
json eventData;
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
eventData["sceneItems"] = Utils::Obs::ListHelper::GetSceneItemList(scene, false);
eventData["sceneItems"] = Utils::Obs::ListHelper::GetSceneItemList(scene, true);
eventHandler->_webSocketServer->BroadcastEvent(EventSubscription::SceneItems, "SceneItemReindexed", eventData);
}