mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 12:50:53 +00:00
Update reqs.py
added set_record_directory method to ReqClient.
This commit is contained in:
parent
8aa2e78ba6
commit
5bfe792fa6
@ -432,6 +432,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
|
||||||
|
Loading…
Reference in New Issue
Block a user