-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump OBS websocket protocol to 5.5.0 (#158)
* Bump OBS websocket protocol to 5.5.0 * add undocumented croptobounds field on sceneitemtransform obsproject/obs-websocket#1224 * assert errors for new record requests --------- Co-authored-by: cathy-cloud[bot] <154095190+cathy-cloud[bot]@users.noreply.github.com> Co-authored-by: Andrey Kaipov <[email protected]>
- Loading branch information
1 parent
cafc0a3
commit 4133e0c
Showing
10 changed files
with
104 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This file has been automatically generated. Don't edit it. | ||
|
||
package events | ||
|
||
/* | ||
Represents the event body for the RecordFileChanged event. | ||
The record output has started writing to a new file. For example, when a file split happens. | ||
*/ | ||
type RecordFileChanged struct { | ||
// File name that the output has begun writing to | ||
NewOutputPath string `json:"newOutputPath,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// This file has been automatically generated. Don't edit it. | ||
|
||
package record | ||
|
||
// Represents the request body for the CreateRecordChapter request. | ||
type CreateRecordChapterParams struct { | ||
// Name of the new chapter | ||
ChapterName *string `json:"chapterName,omitempty"` | ||
} | ||
|
||
func NewCreateRecordChapterParams() *CreateRecordChapterParams { | ||
return &CreateRecordChapterParams{} | ||
} | ||
func (o *CreateRecordChapterParams) WithChapterName(x string) *CreateRecordChapterParams { | ||
o.ChapterName = &x | ||
return o | ||
} | ||
|
||
// Returns the associated request. | ||
func (o *CreateRecordChapterParams) GetRequestName() string { | ||
return "CreateRecordChapter" | ||
} | ||
|
||
// Represents the response body for the CreateRecordChapter request. | ||
type CreateRecordChapterResponse struct { | ||
_response | ||
} | ||
|
||
/* | ||
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. | ||
*/ | ||
func (c *Client) CreateRecordChapter(paramss ...*CreateRecordChapterParams) (*CreateRecordChapterResponse, error) { | ||
if len(paramss) == 0 { | ||
paramss = []*CreateRecordChapterParams{{}} | ||
} | ||
params := paramss[0] | ||
data := &CreateRecordChapterResponse{} | ||
return data, c.client.SendRequest(params, data) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// This file has been automatically generated. Don't edit it. | ||
|
||
package record | ||
|
||
// Represents the request body for the SplitRecordFile request. | ||
type SplitRecordFileParams struct{} | ||
|
||
// Returns the associated request. | ||
func (o *SplitRecordFileParams) GetRequestName() string { | ||
return "SplitRecordFile" | ||
} | ||
|
||
// Represents the response body for the SplitRecordFile request. | ||
type SplitRecordFileResponse struct { | ||
_response | ||
} | ||
|
||
// Splits the current file being recorded into a new file. | ||
func (c *Client) SplitRecordFile(paramss ...*SplitRecordFileParams) (*SplitRecordFileResponse, error) { | ||
if len(paramss) == 0 { | ||
paramss = []*SplitRecordFileParams{{}} | ||
} | ||
params := paramss[0] | ||
data := &SplitRecordFileResponse{} | ||
return data, c.client.SendRequest(params, data) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters