obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.84k stars 704 forks source link

requesthandler: Use Frontend API for CreateSceneCollection #1108

Closed gxalpha closed 7 months ago

gxalpha commented 1 year ago

Description

Uses the obs_frontend_add_scene_collection function for CreateSceneCollection instead of relying on the undocumented AddSceneCollection.

Motivation and Context

The "AddSceneCollection" method will likely be removed in a future (probably the next) version of OBS. The frontend API function is currently just a wrapper around that method but that will be a problem for future me when I actually remove AddSceneCollection, it will continue to work.

How Has This Been Tested?

Tested OS(s): macOS 13.2.1

Compiled successfully. Don't use websockets so can't test otherwise.

Types of changes

Checklist: