Skip to content

Commit 30b0c67

Browse files
add: OBS Websocket v5.5 features (#357)
* update: Contributing guide for current steps * add: v5.5 features: SplitRecordFile, CreateRecordChapter, and RecordFileChanged * chore: re-generate OBS types to bring in v5.5 changes * update: Contributing guide to say node v20 or greater
1 parent 7c9c934 commit 30b0c67

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/CONTRIBUTING.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1+
# How to Contribute
2+
13
## Issues/Feedback/Requests
4+
25
- Create a new issue [here](https://github.com/obs-websocket-community-projects/obs-websocket-js/issues/new), please be as descriptive as possible.
36

47
## Building the Project Locally
5-
- Install [node.js](http://nodejs.org)
8+
9+
- Install [node.js v20 or greater](http://nodejs.org)
610
- Clone/Fork the repo
711
- Install dependencies with `npm install`
812
- Generate the browser distributable Javascript file with `npm run build`
913
- Or `npm run watch` to automatically build when files are modified.
10-
- This project makes use of eslint, run `npm run test:static` for linting and `npm run test:ava` for basic unit testing. If you have the types compiled you can also run `npm run test:types`.
14+
- This project makes use of eslint, run `npm run lint` for linting and `npm run test` for basic unit testing.
1115

1216
## Building Typings Locally
17+
1318
- Export GH_TOKEN as an environment variable, using a generated Personal Access Token.
1419
- `npm run build:types`
1520

1621
## Contributing Guidelines
22+
1723
- Please use descriptive commit messages.
1824
- When submitting a Pull Request, reference related [Issues](https://github.com/obs-websocket-community-projects/obs-websocket-js/issues) if any exist.

src/types.ts

+16
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,12 @@ export interface OBSEventTypes {
718718
*/
719719
outputPath: string;
720720
};
721+
RecordFileChanged: {
722+
/**
723+
* File name that the output has begun writing to
724+
*/
725+
newOutputPath: string;
726+
};
721727
ReplayBufferStateChanged: {
722728
/**
723729
* Whether the output is active
@@ -1858,6 +1864,14 @@ export interface OBSRequestTypes {
18581864
ToggleRecordPause: never;
18591865
PauseRecord: never;
18601866
ResumeRecord: never;
1867+
SplitRecordFile: never;
1868+
CreateRecordChapter: {
1869+
/**
1870+
* Name of the new chapter
1871+
* @defaultValue Unknown
1872+
*/
1873+
chapterName?: string;
1874+
};
18611875
GetSceneItemList: {
18621876
/**
18631877
* Name of the scene to get the items of
@@ -3001,6 +3015,8 @@ export interface OBSResponseTypes {
30013015
ToggleRecordPause: undefined;
30023016
PauseRecord: undefined;
30033017
ResumeRecord: undefined;
3018+
SplitRecordFile: undefined;
3019+
CreateRecordChapter: undefined;
30043020
GetSceneItemList: {
30053021
/**
30063022
* Array of scene items in the scene

0 commit comments

Comments
 (0)