Debian Codegraph @

api/requests/general/xx_generated.getvideoinfo.go

raw symbols SCIP
1 // This file has been automatically generated. Don't edit it.
2
3 package generalscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/
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 GetVideoInfoParams represents the params body for the "GetVideoInfo" request.
9 Get basic OBS video information
10 Since 4.6.0.
11 */
12 type GetVideoInfoParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoParams# 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/general`/GetVideoInfoParams#ParamsBasic.
14 }
15
16 // GetSelfName just returns "GetVideoInfo".
17 func (o *GetVideoInfoParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoParams#GetSelfName().() string {
18 return "GetVideoInfo"
19 }
20
21 /*
22 GetVideoInfoResponse represents the response body for the "GetVideoInfo" request.
23 Get basic OBS video information
24 Since v4.6.0.
25 */
26 type GetVideoInfoResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse# 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/general`/GetVideoInfoResponse#ResponseBasic.
28
29 // Base (canvas) height
30 BaseHeightscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#BaseHeight. int `json:"baseHeight,omitempty"`
31
32 // Base (canvas) width
33 BaseWidthscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#BaseWidth. int `json:"baseWidth,omitempty"`
34
35 // Color range (full or partial)
36 ColorRangescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#ColorRange. string `json:"colorRange,omitempty"`
37
38 // Color space for YUV
39 ColorSpacescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#ColorSpace. string `json:"colorSpace,omitempty"`
40
41 // Frames rendered per second
42 Fpsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#Fps. float64 `json:"fps,omitempty"`
43
44 // Output height
45 OutputHeightscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#OutputHeight. int `json:"outputHeight,omitempty"`
46
47 // Output width
48 OutputWidthscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#OutputWidth. int `json:"outputWidth,omitempty"`
49
50 // Scaling method used if output size differs from base size
51 ScaleTypescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#ScaleType. string `json:"scaleType,omitempty"`
52
53 // Video color format
54 VideoFormatscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#VideoFormat. string `json:"videoFormat,omitempty"`
55 }
56
57 // GetVideoInfo sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as
58 // this request doesn't require any parameters.
59 func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/Client#) GetVideoInfoscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/Client#GetVideoInfo().(paramss ...*GetVideoInfoParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoParams#) (*GetVideoInfoResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#, error) {
60 if len(paramss) == 0 {
61 paramss = []*GetVideoInfoParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoParams#{{}}
62 }
63 params := paramss[0]
64 data := &GetVideoInfoResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/general`/GetVideoInfoResponse#{}
65 if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil {
66 return nil, err
67 }
68 return data, nil
69 }