tt2468
4410e30684
utils: Pass fileName by value in GetModuleConfigPath()
...
Lots of `const char *` values, preventing usage of passing by reference
2024-04-22 22:29:21 -07:00
tt2468
2c884ca690
utils: Make SetJsonFileContent() create directories by default
2024-04-22 22:28:45 -07:00
tt2468
f72f23a9d7
utils: Minor code fixups
2024-04-22 18:40:50 -07:00
tt2468
a589e80bdb
utils: Implement helper to get current module config path
2024-04-22 18:38:19 -07:00
tt2468
305afd763d
utils: Remove old *AutoRelease definitions
...
Now that OBS has been out with the upstream AutoRelease definitions,
and obs-websocket is also in-tree-only, these are no longer necessary.
2024-04-22 18:32:51 -07:00
tt2468
42e7eb6c34
utils: Remove text file Get/Set methods from Platform
...
No longer needed, and using Qt isn't good anyway
2024-04-22 18:23:39 -07:00
tt2468
bdf812dc09
utils: Reimplement Get/SetJsonFileContent helpers
...
Uses <fstream> instead of the text helpers
2024-04-22 18:22:27 -07:00
tytan652
c8cf2d94ac
cmake,lib,base: Export obs-websocket-api as a target
...
This enables the installation of the header in the include directory
2024-03-30 17:04:37 -07:00
Exeldro
3ea3d3228b
requesthandler: Update scene item transform API
...
Updates:
obs_sceneitem_get_info to obs_sceneitem_get_info2
obs_sceneitem_set_info to obs_sceneitem_set_info2
Ensures that we're using the latest versions of these functions in order
to prevent future deprecation
2024-02-20 21:44:33 -06:00
tt2468
e5aa4c2f69
requesthandler: Rename GetSceneItemSourceName
to GetSceneItemSource
...
Not an API break, this was introduced just a few commits ago.
2024-01-18 19:34:51 -08:00
tt2468
7adfb5874c
requesthandler: Implement input, scene, and transition UUID support
...
Transition UUID support is partial due to the current state of the OBS
frontend API.
Most requests which accepted things like `sourceName` now allow
`sourceUuid` (or equivalent) to be specified instead. While both fields
on the various requests may be marked as optional, at least one field
will still be required.
2024-01-18 19:27:57 -08:00
tt2468
f18f46543b
eventhandler: Implement input, scene, and transition UUID support
...
Adds `inputUuid` next to `inputName` etc.
2024-01-18 16:58:40 -08:00
tt2468
f40426efa1
utils: Implement input, scene, and transition UUID support
2024-01-18 16:56:20 -08:00
tt2468
830f7eb931
utils: Use BPtr for strings instead of manual bfree()
2024-01-18 16:17:48 -08:00
tt2468
b53527cba8
requesthandler: Add note about as-is status of hotkey requests
...
Too much trouble for too little gain. Please stop using these requests.
2024-01-18 16:06:07 -08:00
tt2468
1d0db34bb2
requesthandler: Add GetSceneItemSourceName
request
...
Closes #1122
2024-01-18 16:01:41 -08:00
tt2468
ef4142fe75
eventhandler: Add SourceFilterSettingsChanged
event
...
Closes #1059
2024-01-18 15:54:08 -08:00
gxalpha
caaec5d97f
requesthandler: Use Frontend API for CreateSceneCollection
2024-01-18 15:43:46 -08:00
aki-954315
a5c459b6d4
docs: Fix SaveSourceScreenshot's Response Field
2024-01-16 01:37:29 -08:00
Norihiro Kamae
5b149add99
RequestHandler: Fix memory leak when setting streaming service
2024-01-16 01:33:29 -08:00
tt2468
81b307e5ad
eventhandler: Add InputSettingsChanged
...
Fired when an input's settings change, like via the properties dialog
or via `SetInputSettings`.
Closes #1157
2024-01-16 00:41:03 -08:00
tt2468
444caeb1d7
requesthandler: Add GetSourceFilterKindList
...
Closes #1198
2024-01-16 00:18:52 -08:00
tt2468
bbdc5bc823
requesthandler: Prevent NaN outputCongestion
values (null)
2024-01-15 23:45:33 -08:00
tt2468
9ecc9532e8
requesthandler: Document ToggleRecord
outputActive
response field
2024-01-15 23:44:50 -08:00
Richard Stanway
0189c3a3f5
Utils: Check system tray exists before trying to use it
...
Fixes https://github.com/obsproject/obs-studio/issues/9991
2024-01-15 23:19:09 -08:00
Exeldro
f43ef8e2da
requesthandler: Add optional context to TriggerHotkeyByName
2024-01-08 23:06:12 -08:00
tt2468
07537a33fa
websocketserver: Check for EventHandler validity in de/constructor
...
Redundant fix for shutdown crash
2023-11-14 00:07:05 -08:00
tt2468
efeae8d640
eventhandler: Disconnect signals from all public sources on shutdown
...
Fixes crash on shutdown when memory leaks lead to un-destroyed
sources after plugin shutdown.
2023-11-14 00:07:05 -08:00
Norihiro Kamae
3cd8163945
base: Fix error to save configuration at obs_module_unload
...
When `obs_module_unload` is called, the frontend API is no longer
available so that `_config->Save()` is failing with error messages.
Since the configuration is saved from the OK or the Apply button on the
dialog, it is not necessary to save it again at `obs_module_unload`.
2023-08-16 12:56:12 -07:00
Norihiro Kamae
55b3f88db9
base: Fix a comment for SetSceneSceneTransitionOverride
2023-08-09 21:53:17 -04:00
tytan652
417725801c
base,deps,src: Replace qr submodule by prefix/system install
2023-07-15 16:58:18 -07:00
tt2468
6434c42155
websocketserver: Retry listen on IPv4 if IPv6 is not available
...
Fixes #1311
2023-05-27 22:54:02 -07:00
tt2468
ac00465565
requesthandler: Add SetRecordDirectory
...
I've admittedly done a pretty bad job of communicating the intention of
having `SetProfileParameter` be the go-to method of configuring the
record directory. In hindsight, such a commonly needed feature should
not be locked behind an arguably complex request.
Closes #1142
Closes #1062
Closes #1035
2023-05-27 22:30:08 -07:00
tt2468
19170fe6d9
WebSocketApi: Add missing GPL license headers
2023-05-27 22:06:46 -07:00
tt2468
1fc7900b1c
Config: Move default values to header file
...
Just to make the code style align with other places
2023-05-27 22:00:51 -07:00
tt2468
53d7596160
base: Various random code nitpicks
2023-05-27 22:00:26 -07:00
tt2468
886738547a
websocketserver: Clean up WebSocketSession class implementation
...
Makes it header-only with inlines, so there's theoretically some very
small performance improvements too.
2023-05-27 21:50:55 -07:00
tt2468
c11874eb17
eventhandler: Use OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN for exit
...
Fixes #1136
2023-05-09 22:53:43 -07:00
tt2468
a0ffe16e91
base: Pause requests and events during start, SC change, and shutdown
...
This implements the functionality described by the new NotReady request
status. Behavior should now be *much* more reliable.
2023-05-09 22:53:43 -07:00
tt2468
d5185417ec
requesthandler: Add NotReady request status
...
During scene collection change and OBS exit, performing requests
constitutes undefined behavior. Previously, we attempted to help this
by providing the `SceneCollectionChanging` event for any clients to
pause requests client-side, but this method has proven to not be
adequate to fix the issue. As such, this allows us to tell clients
explicitly that a request cannot be fulfilled reliably, and they
may decide whether or not to retry.
2023-05-09 18:26:25 -07:00
tytan652
21886adb32
base: Fix generated header inclusion
2023-03-27 12:59:23 -04:00
PatTheMav
dd248faecb
cmake: Add changes for CMake build framework 3.0
...
New code path only taken if OBS_CMAKE_VERSION is set to 3.0.0 or
greater, old functionality remains unchanged.
2023-03-26 18:21:05 -04:00
tt2468
96032e0e8c
requesthandler: Allow empty vendor request data
2023-02-08 10:10:44 -08:00
tt2468
e797a3fb34
websocketserver: Validate data type of authentication
payload field
...
Can cause crash if field is not a string
Reported by @tyami94
2022-12-31 14:54:11 -08:00
tt2468
9959acb0e8
forms: Various UI improvements
2022-11-18 02:09:48 -08:00
tt2468
8b1ef17c25
docs: Fix initial version for reconnect enum fields
2022-11-18 02:09:48 -08:00
tt2468
a254172c12
eventhandler: Add reconnecting and reconnected stream output states
...
Closes #1050
2022-11-18 02:09:48 -08:00
tt2468
57a9e23f16
docs: Document ObsOutputState enum
2022-11-18 02:09:48 -08:00
tt2468
323b5d0b5d
eventhandler, utils: Implement missing output states
2022-11-18 02:09:48 -08:00
tt2468
23f883d906
eventhandler: Split some handling code into multi handlers
...
Code cleanup
2022-11-18 02:09:48 -08:00