Merge pull request #37 from aatikturk/implement_v5.3_methods

Update reqs.py

implemented  set_record_directory method. (only availabe for obs websocket v5.3 or higher)
This commit is contained in:
Adem 2023-10-23 14:00:08 +03:00 committed by GitHub
commit d217630289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,6 +433,19 @@ class ReqClient:
""" """
return self.send("GetRecordDirectory") return self.send("GetRecordDirectory")
def set_record_directory(self, recordDirectory):
"""
Sets the current directory that the record output writes files to.
IMPORTANT NOTE: Requires obs websocket v5.3 or higher.
:param recordDirectory: Output directory
:type recordDirectory: str
"""
payload = {
"recordDirectory": recordDirectory,
}
return self.send("SetRecordDirectory", payload)
def get_source_active(self, name): def get_source_active(self, name):
""" """
Gets the active and show state of a source Gets the active and show state of a source