Documentation ¶
Index ¶
- type Client
- func (c *Client) DisableStudioMode(paramss ...*DisableStudioModeParams) (*DisableStudioModeResponse, error)
- func (c *Client) EnableStudioMode(paramss ...*EnableStudioModeParams) (*EnableStudioModeResponse, error)
- func (c *Client) GetPreviewScene(paramss ...*GetPreviewSceneParams) (*GetPreviewSceneResponse, error)
- func (c *Client) GetStudioModeStatus(paramss ...*GetStudioModeStatusParams) (*GetStudioModeStatusResponse, error)
- func (c *Client) SetPreviewScene(params *SetPreviewSceneParams) (*SetPreviewSceneResponse, error)
- func (c *Client) ToggleStudioMode(paramss ...*ToggleStudioModeParams) (*ToggleStudioModeResponse, error)
- func (c *Client) TransitionToProgram(params *TransitionToProgramParams) (*TransitionToProgramResponse, error)
- type DisableStudioModeParams
- type DisableStudioModeResponse
- type EnableStudioModeParams
- type EnableStudioModeResponse
- type GetPreviewSceneParams
- type GetPreviewSceneResponse
- type GetStudioModeStatusParams
- type GetStudioModeStatusResponse
- type SetPreviewSceneParams
- type SetPreviewSceneResponse
- type ToggleStudioModeParams
- type ToggleStudioModeResponse
- type TransitionToProgramParams
- type TransitionToProgramResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents a client for 'studio mode' requests
func (*Client) DisableStudioMode ¶
func (c *Client) DisableStudioMode( paramss ...*DisableStudioModeParams, ) (*DisableStudioModeResponse, error)
DisableStudioMode sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) EnableStudioMode ¶
func (c *Client) EnableStudioMode( paramss ...*EnableStudioModeParams, ) (*EnableStudioModeResponse, error)
EnableStudioMode sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) GetPreviewScene ¶
func (c *Client) GetPreviewScene( paramss ...*GetPreviewSceneParams, ) (*GetPreviewSceneResponse, error)
GetPreviewScene sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) GetStudioModeStatus ¶
func (c *Client) GetStudioModeStatus( paramss ...*GetStudioModeStatusParams, ) (*GetStudioModeStatusResponse, error)
GetStudioModeStatus sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) SetPreviewScene ¶
func (c *Client) SetPreviewScene(params *SetPreviewSceneParams) (*SetPreviewSceneResponse, error)
SetPreviewScene sends the corresponding request to the connected OBS WebSockets server.
func (*Client) ToggleStudioMode ¶
func (c *Client) ToggleStudioMode( paramss ...*ToggleStudioModeParams, ) (*ToggleStudioModeResponse, error)
ToggleStudioMode sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) TransitionToProgram ¶
func (c *Client) TransitionToProgram( params *TransitionToProgramParams, ) (*TransitionToProgramResponse, error)
TransitionToProgram sends the corresponding request to the connected OBS WebSockets server.
type DisableStudioModeParams ¶
type DisableStudioModeParams struct {
requests.ParamsBasic
}
DisableStudioModeParams represents the params body for the "DisableStudioMode" request. Disables Studio Mode.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#DisableStudioMode.
func (*DisableStudioModeParams) Name ¶
func (o *DisableStudioModeParams) Name() string
Name just returns "DisableStudioMode".
type DisableStudioModeResponse ¶
type DisableStudioModeResponse struct {
requests.ResponseBasic
}
DisableStudioModeResponse represents the response body for the "DisableStudioMode" request. Disables Studio Mode.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#DisableStudioMode.
type EnableStudioModeParams ¶
type EnableStudioModeParams struct {
requests.ParamsBasic
}
EnableStudioModeParams represents the params body for the "EnableStudioMode" request. Enables Studio Mode.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#EnableStudioMode.
func (*EnableStudioModeParams) Name ¶
func (o *EnableStudioModeParams) Name() string
Name just returns "EnableStudioMode".
type EnableStudioModeResponse ¶
type EnableStudioModeResponse struct {
requests.ResponseBasic
}
EnableStudioModeResponse represents the response body for the "EnableStudioMode" request. Enables Studio Mode.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#EnableStudioMode.
type GetPreviewSceneParams ¶
type GetPreviewSceneParams struct {
requests.ParamsBasic
}
GetPreviewSceneParams represents the params body for the "GetPreviewScene" request. Get the name of the currently previewed scene and its list of sources. Will return an `error` if Studio Mode is not enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#GetPreviewScene.
func (*GetPreviewSceneParams) Name ¶
func (o *GetPreviewSceneParams) Name() string
Name just returns "GetPreviewScene".
type GetPreviewSceneResponse ¶
type GetPreviewSceneResponse struct { requests.ResponseBasic // The name of the active preview scene. Name string `json:"name"` Sources []map[string]interface{} `json:"sources"` }
GetPreviewSceneResponse represents the response body for the "GetPreviewScene" request. Get the name of the currently previewed scene and its list of sources. Will return an `error` if Studio Mode is not enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#GetPreviewScene.
type GetStudioModeStatusParams ¶
type GetStudioModeStatusParams struct {
requests.ParamsBasic
}
GetStudioModeStatusParams represents the params body for the "GetStudioModeStatus" request. Indicates if Studio Mode is currently enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#GetStudioModeStatus.
func (*GetStudioModeStatusParams) Name ¶
func (o *GetStudioModeStatusParams) Name() string
Name just returns "GetStudioModeStatus".
type GetStudioModeStatusResponse ¶
type GetStudioModeStatusResponse struct { requests.ResponseBasic // Indicates if Studio Mode is enabled. StudioMode bool `json:"studio-mode"` }
GetStudioModeStatusResponse represents the response body for the "GetStudioModeStatus" request. Indicates if Studio Mode is currently enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#GetStudioModeStatus.
type SetPreviewSceneParams ¶
type SetPreviewSceneParams struct { requests.ParamsBasic // The name of the scene to preview. SceneName string `json:"scene-name"` }
SetPreviewSceneParams represents the params body for the "SetPreviewScene" request. Set the active preview scene. Will return an `error` if Studio Mode is not enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#SetPreviewScene.
func (*SetPreviewSceneParams) Name ¶
func (o *SetPreviewSceneParams) Name() string
Name just returns "SetPreviewScene".
type SetPreviewSceneResponse ¶
type SetPreviewSceneResponse struct {
requests.ResponseBasic
}
SetPreviewSceneResponse represents the response body for the "SetPreviewScene" request. Set the active preview scene. Will return an `error` if Studio Mode is not enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#SetPreviewScene.
type ToggleStudioModeParams ¶
type ToggleStudioModeParams struct {
requests.ParamsBasic
}
ToggleStudioModeParams represents the params body for the "ToggleStudioMode" request. Toggles Studio Mode.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#ToggleStudioMode.
func (*ToggleStudioModeParams) Name ¶
func (o *ToggleStudioModeParams) Name() string
Name just returns "ToggleStudioMode".
type ToggleStudioModeResponse ¶
type ToggleStudioModeResponse struct {
requests.ResponseBasic
}
ToggleStudioModeResponse represents the response body for the "ToggleStudioMode" request. Toggles Studio Mode.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#ToggleStudioMode.
type TransitionToProgramParams ¶
type TransitionToProgramParams struct { requests.ParamsBasic WithTransition struct { // Transition duration (in milliseconds). Duration int `json:"duration"` // Name of the transition. Name string `json:"name"` } `json:"with-transition"` }
TransitionToProgramParams represents the params body for the "TransitionToProgram" request. Transitions the currently previewed scene to the main output. Will return an `error` if Studio Mode is not enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#TransitionToProgram.
func (*TransitionToProgramParams) Name ¶
func (o *TransitionToProgramParams) Name() string
Name just returns "TransitionToProgram".
type TransitionToProgramResponse ¶
type TransitionToProgramResponse struct {
requests.ResponseBasic
}
TransitionToProgramResponse represents the response body for the "TransitionToProgram" request. Transitions the currently previewed scene to the main output. Will return an `error` if Studio Mode is not enabled.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.1/docs/generated/protocol.md#TransitionToProgram.