Skip to content

Commit f70583d

Browse files
Merge pull request #58 from onyx-and-iris/add-v5.4-v5.5-reqs
add v5.4, v5.5 methods
2 parents 8e8062d + 3bce507 commit f70583d

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

obsws_python/reqs.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,14 @@ def set_t_bar_position(self, pos, release=None):
11001100
payload = {"position": pos, "release": release}
11011101
self.send("SetTBarPosition", payload)
11021102

1103+
def get_source_filter_kind_list(self):
1104+
"""
1105+
Gets an array of all available source filter kinds.
1106+
1107+
1108+
"""
1109+
return self.send("GetSourceFilterKindList")
1110+
11031111
def get_source_filter_list(self, name):
11041112
"""
11051113
Gets a list of all of a source's filters.
@@ -1311,6 +1319,23 @@ def get_scene_item_id(self, scene_name, source_name, offset=None):
13111319
}
13121320
return self.send("GetSceneItemId", payload)
13131321

1322+
def get_scene_item_source(self, scene_name, scene_item_id):
1323+
"""
1324+
Gets the source associated with a scene item.
1325+
1326+
:param scene_item_id: Numeric ID of the scene item (>= 0)
1327+
:type scene_item_id: int
1328+
:param scene_name: Name of the scene the item is in.
1329+
:type scene_name: str
1330+
1331+
1332+
"""
1333+
payload = {
1334+
"sceneItemId": scene_item_id,
1335+
"sceneName": scene_name,
1336+
}
1337+
return self.send("GetSceneItemSource", payload)
1338+
13141339
def create_scene_item(self, scene_name, source_name, enabled=None):
13151340
"""
13161341
Creates a new scene item using a source.
@@ -1826,6 +1851,28 @@ def resume_record(self):
18261851
"""
18271852
self.send("ResumeRecord")
18281853

1854+
def split_record_file(self):
1855+
"""
1856+
Splits the current file being recorded into a new file.
1857+
1858+
1859+
"""
1860+
self.send("SplitRecordFile")
1861+
1862+
def create_record_chapter(self, chapter_name=None):
1863+
"""
1864+
Adds a new chapter marker to the file currently being recorded.
1865+
1866+
Note: As of OBS 30.2.0, the only file format supporting this feature is Hybrid MP4.
1867+
1868+
:param chapter_name: Name of the new chapter
1869+
:type chapter_name: str
1870+
1871+
1872+
"""
1873+
payload = {"chapterName": chapter_name}
1874+
self.send("CreateRecordChapter", payload)
1875+
18291876
def get_media_input_status(self, name):
18301877
"""
18311878
Gets the status of a media input.

obsws_python/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "1.7.2"
1+
version = "1.8.0"

0 commit comments

Comments
 (0)