mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
EventHandler: [BREAKING] Rename ExternalPluginEvents
to Vendors
Make it fit the rest of the naming
This commit is contained in:
parent
2e7262fe11
commit
82d5468b73
@ -133,29 +133,29 @@ namespace EventSubscription {
|
||||
// Receive events in the `MediaInputs` category
|
||||
MediaInputs = (1 << 8),
|
||||
/**
|
||||
* Subscription value to receive the `ExternalPluginEvent` event.
|
||||
* Subscription value to receive the `VendorEvent` event.
|
||||
*
|
||||
* @enumIdentifier ExternalPlugins
|
||||
* @enumIdentifier Vendors
|
||||
* @enumValue (1 << 9)
|
||||
* @enumType EventSubscription
|
||||
* @rpcVersion -1
|
||||
* @initialVersion 5.0.0
|
||||
* @api enums
|
||||
*/
|
||||
// Receive events from external OBS plugins
|
||||
ExternalPlugins = (1 << 9),
|
||||
// Receive events from external OBS plugins and scripts
|
||||
Vendors = (1 << 9),
|
||||
/**
|
||||
* Helper to receive all non-high-volume events.
|
||||
*
|
||||
* @enumIdentifier All
|
||||
* @enumValue (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | ExternalPlugins)
|
||||
* @enumValue (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors)
|
||||
* @enumType EventSubscription
|
||||
* @rpcVersion -1
|
||||
* @initialVersion 5.0.0
|
||||
* @api enums
|
||||
*/
|
||||
// Receive all event categories (exclude high-volume)
|
||||
All = (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | ExternalPlugins),
|
||||
All = (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors),
|
||||
/**
|
||||
* Subscription value to receive the `InputVolumeMeters` high-volume event.
|
||||
*
|
||||
|
@ -150,7 +150,7 @@ void ___properties_dummy_addref(obs_properties_t*) {}
|
||||
* @dataField eventType | String | Vendor-provided event typedef
|
||||
* @dataField eventData | Object | Vendor-provided event data. {} if event does not provide any data
|
||||
*
|
||||
* @eventSubscription ExternalPlugins
|
||||
* @eventSubscription Vendors
|
||||
* @eventType VendorEvent
|
||||
* @complexity 3
|
||||
* @rpcVersion -1
|
||||
@ -167,7 +167,7 @@ void WebSocketApiEventCallback(std::string vendorName, std::string eventType, ob
|
||||
broadcastEventData["eventType"] = eventType;
|
||||
broadcastEventData["eventData"] = eventData;
|
||||
|
||||
_webSocketServer->BroadcastEvent(EventSubscription::ExternalPlugins, "VendorEvent", broadcastEventData);
|
||||
_webSocketServer->BroadcastEvent(EventSubscription::Vendors, "VendorEvent", broadcastEventData);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user