studiomode

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*requests.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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL