add v5.4, v5.5 methods

v5.4:
- get_source_filter_kind_list
- get_scene_item_source

v5.5:
- split_record_file
- create_record_chapter

minor bump
This commit is contained in:
onyx-and-iris 2025-06-23 06:25:31 +01:00
parent 8e8062d5c8
commit 3bce50701e
2 changed files with 48 additions and 1 deletions

View File

@ -1100,6 +1100,14 @@ class ReqClient:
payload = {"position": pos, "release": release}
self.send("SetTBarPosition", payload)
def get_source_filter_kind_list(self):
"""
Gets an array of all available source filter kinds.
"""
return self.send("GetSourceFilterKindList")
def get_source_filter_list(self, name):
"""
Gets a list of all of a source's filters.
@ -1311,6 +1319,23 @@ class ReqClient:
}
return self.send("GetSceneItemId", payload)
def get_scene_item_source(self, scene_name, scene_item_id):
"""
Gets the source associated with a scene item.
:param scene_item_id: Numeric ID of the scene item (>= 0)
:type scene_item_id: int
:param scene_name: Name of the scene the item is in.
:type scene_name: str
"""
payload = {
"sceneItemId": scene_item_id,
"sceneName": scene_name,
}
return self.send("GetSceneItemSource", payload)
def create_scene_item(self, scene_name, source_name, enabled=None):
"""
Creates a new scene item using a source.
@ -1826,6 +1851,28 @@ class ReqClient:
"""
self.send("ResumeRecord")
def split_record_file(self):
"""
Splits the current file being recorded into a new file.
"""
self.send("SplitRecordFile")
def create_record_chapter(self, chapter_name=None):
"""
Adds a new chapter marker to the file currently being recorded.
Note: As of OBS 30.2.0, the only file format supporting this feature is Hybrid MP4.
:param chapter_name: Name of the new chapter
:type chapter_name: str
"""
payload = {"chapterName": chapter_name}
self.send("CreateRecordChapter", payload)
def get_media_input_status(self, name):
"""
Gets the status of a media input.

View File

@ -1 +1 @@
version = "1.7.2"
version = "1.8.0"