Commit Graph

638 Commits

Author SHA1 Message Date
f37edbd71c EventHandler: Include required event intent in emit 2021-08-30 01:39:46 -07:00
78f9c93739 Requests: Fix global realm storage on persistent data req's 2021-08-30 01:32:22 -07:00
96c5818395 ConnectInfo: Update QR code format 2021-08-30 01:11:29 -07:00
85fa41962d Merge branch 'master' of https://github.com/Palakis/obs-websocket 2021-08-29 17:02:29 -07:00
1849c39c4c CI: Fix git tag recognition 5.0.0-alpha1 2021-08-28 23:51:55 -07:00
0b02b7453e Fix package version 2021-08-28 23:28:00 -07:00
d7d6969092 CI: Add release builds for Windows + Linux
Also updates badges on README
2021-08-28 23:20:28 -07:00
a37cfb3e5b WebSocketProtocol: Fix Identified OpCode responses 2021-08-28 07:10:03 -07:00
ccb42f1f0c README: Add simpleobsws
It's finally in beta, so we can go ahead and add it as officially
supporting 5.0
2021-08-28 05:33:06 -07:00
2f1ca4a066 docs(ci): Update generated docs - d1abc6e [skip ci] 2021-08-28 12:14:17 +00:00
d1abc6e0c7 Docs: Fix table of contents links and some other stuff 2021-08-28 05:13:24 -07:00
06c188a8ca docs(ci): Update generated docs - 03e32c8 [skip ci] 2021-08-28 12:02:58 +00:00
03e32c8b5e Base: Major protocol refactor
As discussed in the #development channel in discord
- Switch from using message types to integer op codes
- Consolidate op-specific keys into `d` sub-object
- Shorten low-level payload keys from `messageType` to `op`, add `d`

Other changes:
- The WebSocketCloseCode enum has been refactored. It's best to just
treat it like it's new
- Some performance benefits came along the way. Nothing gamechanging,
but notable
- Various bug fixes discovered while refactoring
2021-08-28 05:02:24 -07:00
91fadf505f Base: Overwrite bad define 2021-08-27 06:24:30 -07:00
ade9653ed6 Base: Only include required util namespaces 2021-08-27 04:34:06 -07:00
0547e1f2da Base: Lots of changes 2021-08-27 04:19:42 -07:00
16697fb65e Requests: Add more requests 2021-08-27 02:33:33 -07:00
fc08828773 Base: Update QMainWindow cast 2021-08-27 01:20:13 -07:00
251e3a28c1 Requests: Reorder some requests 2021-08-26 23:29:55 -07:00
bd289ae751 Requests: Rename slotData to slotValue to align with other profile parameters 2021-08-26 23:11:24 -07:00
7c5c0f42da Requests: Merge global and profile persistent data requests
The code was largely shared, so it made more sense to just merge the
requests and create realms.
2021-08-26 23:06:23 -07:00
8185580cff RequestStatus: Add DataRealmNotFound 2021-08-26 23:02:52 -07:00
64df33152a Utils: Switch to obs_enum_scenes() for GetSceneList
More threadsafe than `obs_frontend_get_scenes()`, not that either
are in any way threadsafe.
2021-08-26 22:46:53 -07:00
4d8b80a5a7 Utils: Fix missing header file newlines 2021-08-26 20:33:06 -07:00
ea713ea808 Requests: Add persistent data requests 2021-08-26 20:32:00 -07:00
8e539d6cdb Utils: Add file access utils for json and text 2021-08-26 20:11:42 -07:00
96ab90eea1 CMakeLists: Fix indentations 2021-08-26 19:09:52 -07:00
1fc60aba92 SettingsDialog: Fix Generate Password button enable logic
On OBS load, the Generate Password button would be enabled regardless
of if authentication was enabled, or if the password was overridden.
2021-08-26 19:07:26 -07:00
43a889c1d4 Utils: Refactor into dedicated components 2021-08-26 19:00:48 -07:00
306844e42d Utils: Add helper to get current profile file path 2021-08-26 18:41:53 -07:00
eb0743f683 Requests: Fix GetProfileParameter on Windows
If either return value was not defined in the profile config,
it would cause OBS to crash on Windows due to assigning a
nullptr to an std::string.
2021-08-26 17:56:13 -07:00
87e2972a2d WebSocketProtocol: Correct a log message 2021-08-26 17:49:15 -07:00
c402b4232c Merge branch 'master' of https://github.com/Palakis/obs-websocket 2021-07-24 20:48:58 -07:00
7f7651b405 Utils: Attempt fix output timecode string 2021-07-24 20:48:44 -07:00
fb1580b44e Requests: Add extra logging to GetProfileParameter 2021-07-24 03:04:53 -07:00
91e772d93c Docs: Add value types to readme note 2021-07-24 02:57:46 -07:00
7081824bbe Utils: Add includeDisabled in GetInputKindList 2021-07-22 17:38:32 -07:00
d0e05ae45c Requests: Add more requests
- GetStreamServiceSettings
- SetStreamServiceSettings
- CreateInput
- GetStreamStatus
- StartStream
- StopStream
2021-07-22 16:26:04 -07:00
4d271da541 Base: Code cleanup and add some requests 2021-07-22 03:24:53 -07:00
0a02015f7d Base: General code cleanup 2021-06-22 15:51:52 -07:00
33137496a7 RequestHandler: Lots of code cleanup 2021-06-22 15:24:48 -07:00
5cf2b50b63 RequestHandler: Add some more requests 2021-06-21 15:31:47 -07:00
584be06398 Utils: Add CreateSceneItem and CreateInput 2021-06-21 15:26:59 -07:00
ae40c61c2b RequestHandler: Some more requests 2021-06-16 08:19:13 -07:00
cc77724229 RequestHandler: More simplification (and fix)
obs_queue_task is set to wait, so there is no need to create our
bool on the stack, as it should never go out of scope when the task
is run. Additionally, the old way didn't actually work anyway.
2021-06-16 08:16:23 -07:00
9229107bab RequestHandler: Simplify TriggerHotkeyByKeySequence checks 2021-06-16 08:10:43 -07:00
4f804baf95 Request: Consider null parameters missing 2021-06-16 06:25:20 -07:00
bc1dc807e4 RequestStatus: Add TooManyRequestParameters 2021-06-16 06:25:00 -07:00
d6aeeeea0c RequestHandler: Add SetInputSettings 2021-06-16 04:27:08 -07:00
ce8f393eb8 Request: Fix memory leak and crash in ValidateInput 2021-06-16 04:18:37 -07:00