Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateScene(params *CreateSceneParams) (*CreateSceneResponse, error)
- func (c *Client) GetCurrentPreviewScene(paramss ...*GetCurrentPreviewSceneParams) (*GetCurrentPreviewSceneResponse, error)
- func (c *Client) GetCurrentProgramScene(paramss ...*GetCurrentProgramSceneParams) (*GetCurrentProgramSceneResponse, error)
- func (c *Client) GetGroupList(paramss ...*GetGroupListParams) (*GetGroupListResponse, error)
- func (c *Client) GetSceneList(paramss ...*GetSceneListParams) (*GetSceneListResponse, error)
- func (c *Client) GetSceneSceneTransitionOverride(params *GetSceneSceneTransitionOverrideParams) (*GetSceneSceneTransitionOverrideResponse, error)
- func (c *Client) RemoveScene(params *RemoveSceneParams) (*RemoveSceneResponse, error)
- func (c *Client) SetCurrentPreviewScene(params *SetCurrentPreviewSceneParams) (*SetCurrentPreviewSceneResponse, error)
- func (c *Client) SetCurrentProgramScene(params *SetCurrentProgramSceneParams) (*SetCurrentProgramSceneResponse, error)
- func (c *Client) SetSceneName(params *SetSceneNameParams) (*SetSceneNameResponse, error)
- func (c *Client) SetSceneSceneTransitionOverride(params *SetSceneSceneTransitionOverrideParams) (*SetSceneSceneTransitionOverrideResponse, error)
- type CreateSceneParams
- type CreateSceneResponse
- type GetCurrentPreviewSceneParams
- type GetCurrentPreviewSceneResponse
- type GetCurrentProgramSceneParams
- type GetCurrentProgramSceneResponse
- type GetGroupListParams
- type GetGroupListResponse
- type GetSceneListParams
- type GetSceneListResponse
- type GetSceneSceneTransitionOverrideParams
- type GetSceneSceneTransitionOverrideResponse
- type RemoveSceneParams
- type RemoveSceneResponse
- type SetCurrentPreviewSceneParams
- type SetCurrentPreviewSceneResponse
- type SetCurrentProgramSceneParams
- type SetCurrentProgramSceneResponse
- type SetSceneNameParams
- type SetSceneNameResponse
- type SetSceneSceneTransitionOverrideParams
- func (o *SetSceneSceneTransitionOverrideParams) GetRequestName() string
- func (o *SetSceneSceneTransitionOverrideParams) WithSceneName(x string) *SetSceneSceneTransitionOverrideParams
- func (o *SetSceneSceneTransitionOverrideParams) WithTransitionDuration(x float64) *SetSceneSceneTransitionOverrideParams
- func (o *SetSceneSceneTransitionOverrideParams) WithTransitionName(x string) *SetSceneSceneTransitionOverrideParams
- type SetSceneSceneTransitionOverrideResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client for 'scenes' requests.
func (*Client) CreateScene ¶ added in v0.5.0
func (c *Client) CreateScene(params *CreateSceneParams) (*CreateSceneResponse, error)
Creates a new scene in OBS.
func (*Client) GetCurrentPreviewScene ¶ added in v0.9.0
func (c *Client) GetCurrentPreviewScene( paramss ...*GetCurrentPreviewSceneParams, ) (*GetCurrentPreviewSceneResponse, error)
Gets the current preview scene.
Only available when studio mode is enabled.
func (*Client) GetCurrentProgramScene ¶ added in v0.9.0
func (c *Client) GetCurrentProgramScene( paramss ...*GetCurrentProgramSceneParams, ) (*GetCurrentProgramSceneResponse, error)
Gets the current program scene.
func (*Client) GetGroupList ¶ added in v0.9.0
func (c *Client) GetGroupList(paramss ...*GetGroupListParams) (*GetGroupListResponse, error)
Gets an array of all groups in OBS.
Groups in OBS are actually scenes, but renamed and modified. In obs-websocket, we treat them as scenes where we can.
func (*Client) GetSceneList ¶
func (c *Client) GetSceneList(paramss ...*GetSceneListParams) (*GetSceneListResponse, error)
Gets an array of all scenes in OBS.
func (*Client) GetSceneSceneTransitionOverride ¶ added in v0.9.0
func (c *Client) GetSceneSceneTransitionOverride( params *GetSceneSceneTransitionOverrideParams, ) (*GetSceneSceneTransitionOverrideResponse, error)
Gets the scene transition overridden for a scene.
func (*Client) RemoveScene ¶ added in v0.9.0
func (c *Client) RemoveScene(params *RemoveSceneParams) (*RemoveSceneResponse, error)
Removes a scene from OBS.
func (*Client) SetCurrentPreviewScene ¶ added in v0.9.0
func (c *Client) SetCurrentPreviewScene(params *SetCurrentPreviewSceneParams) (*SetCurrentPreviewSceneResponse, error)
Sets the current preview scene.
Only available when studio mode is enabled.
func (*Client) SetCurrentProgramScene ¶ added in v0.9.0
func (c *Client) SetCurrentProgramScene(params *SetCurrentProgramSceneParams) (*SetCurrentProgramSceneResponse, error)
Sets the current program scene.
func (*Client) SetSceneName ¶ added in v0.9.0
func (c *Client) SetSceneName(params *SetSceneNameParams) (*SetSceneNameResponse, error)
Sets the name of a scene (rename).
func (*Client) SetSceneSceneTransitionOverride ¶ added in v0.9.0
func (c *Client) SetSceneSceneTransitionOverride( params *SetSceneSceneTransitionOverrideParams, ) (*SetSceneSceneTransitionOverrideResponse, error)
Sets the scene transition overridden for a scene.
type CreateSceneParams ¶ added in v0.5.0
type CreateSceneParams struct { // Name for the new scene SceneName *string `json:"sceneName,omitempty"` }
Represents the request body for the CreateScene request.
func NewCreateSceneParams ¶ added in v1.0.0
func NewCreateSceneParams() *CreateSceneParams
func (*CreateSceneParams) GetRequestName ¶ added in v0.9.0
func (o *CreateSceneParams) GetRequestName() string
Returns the associated request.
func (*CreateSceneParams) WithSceneName ¶ added in v1.0.0
func (o *CreateSceneParams) WithSceneName(x string) *CreateSceneParams
type CreateSceneResponse ¶ added in v0.5.0
type CreateSceneResponse struct {
// contains filtered or unexported fields
}
Represents the response body for the CreateScene request.
type GetCurrentPreviewSceneParams ¶ added in v0.9.0
type GetCurrentPreviewSceneParams struct{}
Represents the request body for the GetCurrentPreviewScene request.
func (*GetCurrentPreviewSceneParams) GetRequestName ¶ added in v0.9.0
func (o *GetCurrentPreviewSceneParams) GetRequestName() string
Returns the associated request.
type GetCurrentPreviewSceneResponse ¶ added in v0.9.0
type GetCurrentPreviewSceneResponse struct { // Current preview scene CurrentPreviewSceneName string `json:"currentPreviewSceneName,omitempty"` // contains filtered or unexported fields }
Represents the response body for the GetCurrentPreviewScene request.
type GetCurrentProgramSceneParams ¶ added in v0.9.0
type GetCurrentProgramSceneParams struct{}
Represents the request body for the GetCurrentProgramScene request.
func (*GetCurrentProgramSceneParams) GetRequestName ¶ added in v0.9.0
func (o *GetCurrentProgramSceneParams) GetRequestName() string
Returns the associated request.
type GetCurrentProgramSceneResponse ¶ added in v0.9.0
type GetCurrentProgramSceneResponse struct { // Current program scene CurrentProgramSceneName string `json:"currentProgramSceneName,omitempty"` // contains filtered or unexported fields }
Represents the response body for the GetCurrentProgramScene request.
type GetGroupListParams ¶ added in v0.9.0
type GetGroupListParams struct{}
Represents the request body for the GetGroupList request.
func (*GetGroupListParams) GetRequestName ¶ added in v0.9.0
func (o *GetGroupListParams) GetRequestName() string
Returns the associated request.
type GetGroupListResponse ¶ added in v0.9.0
type GetGroupListResponse struct { // Array of group names Groups []string `json:"groups,omitempty"` // contains filtered or unexported fields }
Represents the response body for the GetGroupList request.
type GetSceneListParams ¶
type GetSceneListParams struct{}
Represents the request body for the GetSceneList request.
func (*GetSceneListParams) GetRequestName ¶ added in v0.9.0
func (o *GetSceneListParams) GetRequestName() string
Returns the associated request.
type GetSceneListResponse ¶
type GetSceneListResponse struct { // Current preview scene. `null` if not in studio mode CurrentPreviewSceneName string `json:"currentPreviewSceneName,omitempty"` // Current program scene CurrentProgramSceneName string `json:"currentProgramSceneName,omitempty"` // Array of scenes Scenes []*typedefs.Scene `json:"scenes,omitempty"` // contains filtered or unexported fields }
Represents the response body for the GetSceneList request.
type GetSceneSceneTransitionOverrideParams ¶ added in v0.9.0
type GetSceneSceneTransitionOverrideParams struct { // Name of the scene SceneName *string `json:"sceneName,omitempty"` }
Represents the request body for the GetSceneSceneTransitionOverride request.
func NewGetSceneSceneTransitionOverrideParams ¶ added in v1.0.0
func NewGetSceneSceneTransitionOverrideParams() *GetSceneSceneTransitionOverrideParams
func (*GetSceneSceneTransitionOverrideParams) GetRequestName ¶ added in v0.9.0
func (o *GetSceneSceneTransitionOverrideParams) GetRequestName() string
Returns the associated request.
func (*GetSceneSceneTransitionOverrideParams) WithSceneName ¶ added in v1.0.0
func (o *GetSceneSceneTransitionOverrideParams) WithSceneName(x string) *GetSceneSceneTransitionOverrideParams
type GetSceneSceneTransitionOverrideResponse ¶ added in v0.9.0
type GetSceneSceneTransitionOverrideResponse struct { // Duration of the overridden scene transition, else `null` TransitionDuration float64 `json:"transitionDuration,omitempty"` // Name of the overridden scene transition, else `null` TransitionName string `json:"transitionName,omitempty"` // contains filtered or unexported fields }
Represents the response body for the GetSceneSceneTransitionOverride request.
type RemoveSceneParams ¶ added in v0.9.0
type RemoveSceneParams struct { // Name of the scene to remove SceneName *string `json:"sceneName,omitempty"` }
Represents the request body for the RemoveScene request.
func NewRemoveSceneParams ¶ added in v1.0.0
func NewRemoveSceneParams() *RemoveSceneParams
func (*RemoveSceneParams) GetRequestName ¶ added in v0.9.0
func (o *RemoveSceneParams) GetRequestName() string
Returns the associated request.
func (*RemoveSceneParams) WithSceneName ¶ added in v1.0.0
func (o *RemoveSceneParams) WithSceneName(x string) *RemoveSceneParams
type RemoveSceneResponse ¶ added in v0.9.0
type RemoveSceneResponse struct {
// contains filtered or unexported fields
}
Represents the response body for the RemoveScene request.
type SetCurrentPreviewSceneParams ¶ added in v0.9.0
type SetCurrentPreviewSceneParams struct { // Scene to set as the current preview scene SceneName *string `json:"sceneName,omitempty"` }
Represents the request body for the SetCurrentPreviewScene request.
func NewSetCurrentPreviewSceneParams ¶ added in v1.0.0
func NewSetCurrentPreviewSceneParams() *SetCurrentPreviewSceneParams
func (*SetCurrentPreviewSceneParams) GetRequestName ¶ added in v0.9.0
func (o *SetCurrentPreviewSceneParams) GetRequestName() string
Returns the associated request.
func (*SetCurrentPreviewSceneParams) WithSceneName ¶ added in v1.0.0
func (o *SetCurrentPreviewSceneParams) WithSceneName(x string) *SetCurrentPreviewSceneParams
type SetCurrentPreviewSceneResponse ¶ added in v0.9.0
type SetCurrentPreviewSceneResponse struct {
// contains filtered or unexported fields
}
Represents the response body for the SetCurrentPreviewScene request.
type SetCurrentProgramSceneParams ¶ added in v0.9.0
type SetCurrentProgramSceneParams struct { // Scene to set as the current program scene SceneName *string `json:"sceneName,omitempty"` }
Represents the request body for the SetCurrentProgramScene request.
func NewSetCurrentProgramSceneParams ¶ added in v1.0.0
func NewSetCurrentProgramSceneParams() *SetCurrentProgramSceneParams
func (*SetCurrentProgramSceneParams) GetRequestName ¶ added in v0.9.0
func (o *SetCurrentProgramSceneParams) GetRequestName() string
Returns the associated request.
func (*SetCurrentProgramSceneParams) WithSceneName ¶ added in v1.0.0
func (o *SetCurrentProgramSceneParams) WithSceneName(x string) *SetCurrentProgramSceneParams
type SetCurrentProgramSceneResponse ¶ added in v0.9.0
type SetCurrentProgramSceneResponse struct {
// contains filtered or unexported fields
}
Represents the response body for the SetCurrentProgramScene request.
type SetSceneNameParams ¶ added in v0.9.0
type SetSceneNameParams struct { // New name for the scene NewSceneName *string `json:"newSceneName,omitempty"` // Name of the scene to be renamed SceneName *string `json:"sceneName,omitempty"` }
Represents the request body for the SetSceneName request.
func NewSetSceneNameParams ¶ added in v1.0.0
func NewSetSceneNameParams() *SetSceneNameParams
func (*SetSceneNameParams) GetRequestName ¶ added in v0.9.0
func (o *SetSceneNameParams) GetRequestName() string
Returns the associated request.
func (*SetSceneNameParams) WithNewSceneName ¶ added in v1.0.0
func (o *SetSceneNameParams) WithNewSceneName(x string) *SetSceneNameParams
func (*SetSceneNameParams) WithSceneName ¶ added in v1.0.0
func (o *SetSceneNameParams) WithSceneName(x string) *SetSceneNameParams
type SetSceneNameResponse ¶ added in v0.9.0
type SetSceneNameResponse struct {
// contains filtered or unexported fields
}
Represents the response body for the SetSceneName request.
type SetSceneSceneTransitionOverrideParams ¶ added in v0.9.0
type SetSceneSceneTransitionOverrideParams struct { // Name of the scene SceneName *string `json:"sceneName,omitempty"` // Duration to use for any overridden transition. Specify `null` to remove TransitionDuration *float64 `json:"transitionDuration,omitempty"` // Name of the scene transition to use as override. Specify `null` to remove TransitionName *string `json:"transitionName,omitempty"` }
Represents the request body for the SetSceneSceneTransitionOverride request.
func NewSetSceneSceneTransitionOverrideParams ¶ added in v1.0.0
func NewSetSceneSceneTransitionOverrideParams() *SetSceneSceneTransitionOverrideParams
func (*SetSceneSceneTransitionOverrideParams) GetRequestName ¶ added in v0.9.0
func (o *SetSceneSceneTransitionOverrideParams) GetRequestName() string
Returns the associated request.
func (*SetSceneSceneTransitionOverrideParams) WithSceneName ¶ added in v1.0.0
func (o *SetSceneSceneTransitionOverrideParams) WithSceneName(x string) *SetSceneSceneTransitionOverrideParams
func (*SetSceneSceneTransitionOverrideParams) WithTransitionDuration ¶ added in v1.0.0
func (o *SetSceneSceneTransitionOverrideParams) WithTransitionDuration( x float64, ) *SetSceneSceneTransitionOverrideParams
func (*SetSceneSceneTransitionOverrideParams) WithTransitionName ¶ added in v1.0.0
func (o *SetSceneSceneTransitionOverrideParams) WithTransitionName(x string) *SetSceneSceneTransitionOverrideParams
type SetSceneSceneTransitionOverrideResponse ¶ added in v0.9.0
type SetSceneSceneTransitionOverrideResponse struct {
// contains filtered or unexported fields
}
Represents the response body for the SetSceneSceneTransitionOverride request.
Source Files ¶
- xx_generated.createscene.go
- xx_generated.getcurrentpreviewscene.go
- xx_generated.getcurrentprogramscene.go
- xx_generated.getgrouplist.go
- xx_generated.getscenelist.go
- xx_generated.getscenescenetransitionoverride.go
- xx_generated.removescene.go
- xx_generated.setcurrentpreviewscene.go
- xx_generated.setcurrentprogramscene.go
- xx_generated.setscenename.go
- xx_generated.setscenescenetransitionoverride.go
- zz_generated.client.go