| 1 | // This file has been automatically generated. Don't edit it. |
| 2 | |
| 3 | package recordingscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/ |
| 4 | |
| 5 | import requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/ "github.com/andreykaipov/goobs/api/requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/" |
| 6 | |
| 7 | /* |
| 8 | GetRecordingStatusParams represents the params body for the "GetRecordingStatus" request. |
| 9 | Get current recording status. |
| 10 | Since 4.9.0. |
| 11 | */ |
| 12 | type GetRecordingStatusParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusParams# struct { |
| 13 | requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/.ParamsBasicscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusParams#ParamsBasic. |
| 14 | } |
| 15 | |
| 16 | // GetSelfName just returns "GetRecordingStatus". |
| 17 | func (o *GetRecordingStatusParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusParams#GetSelfName().() string { |
| 18 | return "GetRecordingStatus" |
| 19 | } |
| 20 | |
| 21 | /* |
| 22 | GetRecordingStatusResponse represents the response body for the "GetRecordingStatus" request. |
| 23 | Get current recording status. |
| 24 | Since v4.9.0. |
| 25 | */ |
| 26 | type GetRecordingStatusResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse# struct { |
| 27 | requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/.ResponseBasicscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse#ResponseBasic. |
| 28 | |
| 29 | // Current recording status. |
| 30 | IsRecordingscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse#IsRecording. bool `json:"isRecording,omitempty"` |
| 31 | |
| 32 | // Whether the recording is paused or not. |
| 33 | IsRecordingPausedscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse#IsRecordingPaused. bool `json:"isRecordingPaused,omitempty"` |
| 34 | |
| 35 | // Time elapsed since recording started (only present if currently recording). |
| 36 | RecordTimecodescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse#RecordTimecode. string `json:"recordTimecode,omitempty"` |
| 37 | |
| 38 | // Absolute path to the recording file (only present if currently recording). |
| 39 | RecordingFilenamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse#RecordingFilename. string `json:"recordingFilename,omitempty"` |
| 40 | } |
| 41 | |
| 42 | // GetRecordingStatus sends the corresponding request to the connected OBS WebSockets server. Note the variadic |
| 43 | // arguments as this request doesn't require any parameters. |
| 44 | func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/Client#) GetRecordingStatusscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/Client#GetRecordingStatus().(paramss ...*GetRecordingStatusParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusParams#) (*GetRecordingStatusResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse#, error) { |
| 45 | if len(paramss) == 0 { |
| 46 | paramss = []*GetRecordingStatusParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusParams#{{}} |
| 47 | } |
| 48 | params := paramss[0] |
| 49 | data := &GetRecordingStatusResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/recording`/GetRecordingStatusResponse#{} |
| 50 | if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil { |
| 51 | return nil, err |
| 52 | } |
| 53 | return data, nil |
| 54 | } |