Debian Codegraph @

api/requests/media_control/xx_generated.stopmedia.go

raw symbols SCIP
1 // This file has been automatically generated. Don't edit it.
2
3 package mediacontrolscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/
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 StopMediaParams represents the params body for the "StopMedia" request.
9 Stop a media source. Supports ffmpeg and vlc media sources (as of OBS v25.0.8)
10 Since 4.9.0.
11 */
12 type StopMediaParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaParams# 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/media_control`/StopMediaParams#ParamsBasic.
14
15 // Source name.
16 SourceNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaParams#SourceName. string `json:"sourceName,omitempty"`
17 }
18
19 // GetSelfName just returns "StopMedia".
20 func (o *StopMediaParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaParams#GetSelfName().() string {
21 return "StopMedia"
22 }
23
24 /*
25 StopMediaResponse represents the response body for the "StopMedia" request.
26 Stop a media source. Supports ffmpeg and vlc media sources (as of OBS v25.0.8)
27 Since v4.9.0.
28 */
29 type StopMediaResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaResponse# struct {
30 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/media_control`/StopMediaResponse#ResponseBasic.
31 }
32
33 // StopMedia sends the corresponding request to the connected OBS WebSockets server.
34 func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/Client#) StopMediascip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/Client#StopMedia().(params *StopMediaParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaParams#) (*StopMediaResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaResponse#, error) {
35 data := &StopMediaResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/media_control`/StopMediaResponse#{}
36 if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil {
37 return nil, err
38 }
39 return data, nil
40 }