Commit Graph

618 Commits

Author SHA1 Message Date
tt2468
a40e79e987 Utils/Obs: Fix build (again) 2021-12-17 15:48:59 -08:00
tt2468
84e649a6f7 Utils: Tweak some includes 2021-12-17 14:47:56 -08:00
tt2468
c4ab69481b Base: Move AutoRelease helpers to utils + build fix
- Moves the AutoRelease helpers to utils/Obs.h
- Fixes build using obsproject/obs-studio/pull/5580
2021-12-17 14:35:19 -08:00
tt2468
edf4e942fa RequestHandler: Use correct output in GetRecordStatus
It was using the stream output due to a glitch, surprised nobody
reported it yet.
2021-12-17 02:38:56 -08:00
Github Actions
b3ef9a861e docs(ci): Update generated docs - 54fd7af [skip ci] 2021-12-17 07:53:30 +00:00
tt2468
54fd7af5ef
Merge pull request #878 from dnaka91/fix-scenes-type
docs: Fix `scenes` type from `String` to `Object`
2021-12-17 14:53:12 +07:00
Dominik Nakamura
2a33179588
docs: Fix scenes type from String to Object 2021-12-17 16:37:27 +09:00
Github Actions
906c6c4871 docs(ci): Update generated docs - f7ab102 [skip ci] 2021-12-17 06:57:34 +00:00
tt2468
f7ab102c21
Merge pull request #877 from dnaka91/supported-image-formats
docs: Add missing `supportedImageFormats` to docs
2021-12-17 13:57:14 +07:00
Github Actions
fdc8b5546f docs(ci): Update generated docs - 6f72da8 [skip ci] 2021-12-17 06:57:01 +00:00
tt2468
6f72da83ff
Merge pull request #874 from dnaka91/fix-markdown-arrays
docs: Fix `Array` type in markdown
2021-12-17 13:56:41 +07:00
Github Actions
0007987219 docs(ci): Update generated docs - 77f8c5b [skip ci] 2021-12-17 06:56:16 +00:00
tt2468
77f8c5be4d
Merge pull request #876 from dnaka91/scenes-wrong-category
docs: Correct the category for scene requests
2021-12-17 13:55:53 +07:00
Dominik Nakamura
64c3b62360
docs: Add missing supportedImageFormats to docs 2021-12-17 15:16:37 +09:00
Dominik Nakamura
c6afc8f981
docs: Fix Array type in markdown 2021-12-17 15:08:33 +09:00
Dominik Nakamura
2c2b584ecc
docs: Correct the category for scene requests 2021-12-17 15:00:47 +09:00
Github Actions
edda844a34 docs(ci): Update generated docs - d642654 [skip ci] 2021-12-17 04:01:59 +00:00
tt2468
d642654f49
Merge pull request #875 from dnaka91/slotValue-response-type
docs: Adjust `slotValue` type to `Any`
2021-12-17 11:01:40 +07:00
Dominik Nakamura
69522024d2
docs: Adjust slotValue type to Any 2021-12-17 12:21:39 +09:00
Github Actions
24cd95bca7 docs(ci): Update generated docs - 0f6ee87 [skip ci] 2021-12-15 10:42:02 +00:00
tt2468
0f6ee87f99 WebSocketServer: [BREAKING] Remove ignoreInvalidMessages identify param
This parameter is a weird one. With the abstraction of requests from
the underlying websocket protocol, there theoretically should be no
need to ignore invalid messages, because the implementation of the
low-level protocol on clients should be solid, with the requests
themselves not being fatal to the session.

As such, I consider this to be feature bloat, with lots of messy code
attributed to it.
2021-12-15 02:41:37 -08:00
Github Actions
9c8f056d3e docs(ci): Update generated docs - 41a145c [skip ci] 2021-12-15 10:13:28 +00:00
tt2468
41a145c57c SettingsDialog: Only restart when necessary
The previous few commits now allow for us to change settings without
restarting the WebSocket server.
2021-12-15 02:11:33 -08:00
tt2468
fab56d71ea WebSocketServer: Get config values directly from Config
We were previously storing config values in the WebSocketServer class
itself, in a weak attempt at modularity. It's better to give up on that
idea and just get it from the Config object itself.
2021-12-15 02:06:52 -08:00
tt2468
b490e4409b CMakeLists: Add runtime tests flag 2021-12-15 02:06:31 -08:00
tt2468
8fbcbad9ec Config: Make values atomic 2021-12-15 02:06:16 -08:00
tt2468
82d5468b73 EventHandler: [BREAKING] Rename ExternalPluginEvents to Vendors
Make it fit the rest of the naming
2021-12-14 21:51:30 -08:00
tt2468
2e7262fe11 docs: Document plugin api event 2021-12-14 18:33:50 -08:00
tt2468
5f261de143 WebSocketApi: Finish implementations 2021-12-14 18:22:52 -08:00
tt2468
539ee3f28f obs-websocket-api: Various improvements
Make functions static and code nitpicks
2021-12-14 18:22:21 -08:00
tt2468
29a5cfe2fe Utils: Include algorithm
Good thing to have
2021-12-14 18:02:13 -08:00
Github Actions
612a50efbb docs(ci): Update generated docs - 2042692 [skip ci] 2021-12-15 01:42:11 +00:00
tt2468
20426924cd Utils: [BREAKING CHANGE] Remove groups from GetSceneList + re-add order
- Removes the `isGroup` boolean field from the scene object, and does
not include any groups in the returned array.
- Reintroduces ordered results. Previous versions used a method which
did not return the scene list in the same order as the UI. This change
also means that this request is more susceptible to crashing OBS if
called during a scene collection change.
- Adds the `sceneIndex` number to the scene object. 0 being the bottom
of the scene list, just like in other requests like `GetSceneItemList`.
2021-12-14 17:37:06 -08:00
tt2468
889062e44b RequestHandler: Reorder BroadcastCustomEvent
Code cleanup stuff
2021-12-13 19:20:27 -08:00
tt2468
eb8d69dca5 Base: Move request batch processing to requesthandler directory
Request batch processing had less to do with the protocol/server and
more to do with the actual request handler, so it felt better to move
it.
2021-12-13 19:10:08 -08:00
Github Actions
0ed3c9b367 docs(ci): Update generated docs - e47de63 [skip ci] 2021-12-13 20:33:51 +00:00
tt2468
e47de63786
docs: Fix request type typo 2021-12-13 12:33:35 -08:00
Github Actions
84f90a9650 docs(ci): Update generated docs - 3ea8506 [skip ci] 2021-12-13 00:54:23 +00:00
tt2468
3ea8506619
Merge pull request #869 from BarRaider/doc-fix-opcode
docs: fixed wrong opcode in docs
2021-12-12 16:54:01 -08:00
BarRaider
d4353d4bf1
docs: fixed wrong opcode in docs 2021-12-12 23:42:13 +02:00
tt2468
d7887b4c32 WebSocketServer: Fix execution type 2021-12-11 23:28:37 -08:00
tt2468
de1f843ce6 WebSocketServer: Swap variable behavior and fix crash caused by const parameters 2021-12-10 23:58:14 -08:00
tt2468
5ac813b897 WebSocketServer: Tiny code cleanup 2021-12-10 22:33:52 -08:00
tt2468
43e2860709 WebSocketServer: Implement haltOnFailure for batch requests 2021-12-10 22:28:22 -08:00
tt2468
c9c5da6837 RequestBatchExecutionType: Change executionType values
Fits better for the front-facing API.
2021-12-10 22:00:02 -08:00
tt2468
b66d2284b3 WebSocketOpCode: Add IsValid check
Not used, but useful addition.
2021-12-10 21:59:13 -08:00
tt2468
fcbe11616d
docs: Overhaul documentation (#863)
More docs-related commits will follow, but this needs to be merged in order to continue with other development.

* Docs: Overhaul docs generator (beginning)

* docs: Rename comments file

* docs: Move comments gitignore

* docs: Initial request documentation

* docs: Improvements to comment processing

* docs: More improvements

* docs: Add enum functionality for protocol.json

* WebSocketServer: Document enums

* RequestHandler: Document RequestStatus enum

* Base: Move ObsWebSocketRequestBatchExecutionType to its own file

Moves it to its own file, renaming it to `RequestBatchExecutionType`.
Changes the RPC to use integer values for selecting execution type
instead of strings.

* docs: Update introduction header

Removes the enum section, and documents RequestBatchExecutionType.

* WebSocketCloseCode: Shuffle a bit

* Base: Use `field` instead of `key` or `parameter` in most places

* RequestStatus: Mild shuffle

It was really bothering me that OutputPaused and OutputNotPaused
had to be separated, so we're breaking it while we're breaking
other stuff.

* docs: Delete old files

They may be added back in some form, but for now I'm getting them
out of the way.

* docs: Add enum identifier value

Forgot to add this before, oops

* docs: Document more enums

* docs: Add basic protocol.md generator

* docs: More work on MD generator

* docs: MD generator should be finished now

* docs: More fixes

* docs: More fixes

* docs: More tweaks + add readme

* docs: Update readme and add inputs docs

* docs: More documentation
2021-12-10 21:38:18 -08:00
tt2468
6cec018c8d
WebSocketServer: Fix null check for request batch variables 2021-12-10 21:20:48 -08:00
tt2468
6d684eb07f ObsVolumeMeter: Don't use obs_weak_source_expired()
This function is not released yet.

TODO: Reenable its usage when OBS 27.2.0 is released.
2021-11-22 20:14:54 -08:00
tt2468
5704ea2970 Requests: Increase InputVolumeMeters update rate to 20/sec
We were using a 60ms interval before, which just feels too slow.
A 50ms interval feels much better.
2021-11-22 03:51:41 -08:00