outputs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 2

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 'outputs' requests

func (*Client) GetOutputInfo

func (c *Client) GetOutputInfo(params *GetOutputInfoParams) (*GetOutputInfoResponse, error)

GetOutputInfo sends the corresponding request to the connected OBS WebSockets server.

func (*Client) ListOutputs

func (c *Client) ListOutputs(paramss ...*ListOutputsParams) (*ListOutputsResponse, error)

ListOutputs sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.

func (*Client) StartOutput

func (c *Client) StartOutput(params *StartOutputParams) (*StartOutputResponse, error)

StartOutput sends the corresponding request to the connected OBS WebSockets server.

func (*Client) StopOutput

func (c *Client) StopOutput(params *StopOutputParams) (*StopOutputResponse, error)

StopOutput sends the corresponding request to the connected OBS WebSockets server.

type GetOutputInfoParams

type GetOutputInfoParams struct {
	requests.ParamsBasic

	// Output name
	OutputName string `json:"outputName"`
}

GetOutputInfoParams represents the params body for the "GetOutputInfo" request. Get information about a single output

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#GetOutputInfo.

func (*GetOutputInfoParams) Name

func (o *GetOutputInfoParams) Name() string

Name just returns "GetOutputInfo".

type GetOutputInfoResponse

type GetOutputInfoResponse struct {
	requests.ResponseBasic

	// Output info
	OutputInfo []typedefs.Output `json:"outputInfo"`
}

GetOutputInfoResponse represents the response body for the "GetOutputInfo" request. Get information about a single output

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#GetOutputInfo.

type ListOutputsParams

type ListOutputsParams struct {
	requests.ParamsBasic
}

ListOutputsParams represents the params body for the "ListOutputs" request. List existing outputs

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#ListOutputs.

func (*ListOutputsParams) Name

func (o *ListOutputsParams) Name() string

Name just returns "ListOutputs".

type ListOutputsResponse

type ListOutputsResponse struct {
	requests.ResponseBasic

	// Outputs list
	Outputs []typedefs.Output `json:"outputs"`
}

ListOutputsResponse represents the response body for the "ListOutputs" request. List existing outputs

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#ListOutputs.

type StartOutputParams

type StartOutputParams struct {
	requests.ParamsBasic

	// Output name
	OutputName string `json:"outputName"`
}

StartOutputParams represents the params body for the "StartOutput" request. Start an output

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StartOutput.

func (*StartOutputParams) Name

func (o *StartOutputParams) Name() string

Name just returns "StartOutput".

type StartOutputResponse

type StartOutputResponse struct {
	requests.ResponseBasic
}

StartOutputResponse represents the response body for the "StartOutput" request. Start an output

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StartOutput.

type StopOutputParams

type StopOutputParams struct {
	requests.ParamsBasic

	// Force stop (default: false)
	Force bool `json:"force"`

	// Output name
	OutputName string `json:"outputName"`
}

StopOutputParams represents the params body for the "StopOutput" request. Stop an output

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StopOutput.

func (*StopOutputParams) Name

func (o *StopOutputParams) Name() string

Name just returns "StopOutput".

type StopOutputResponse

type StopOutputResponse struct {
	requests.ResponseBasic
}

StopOutputResponse represents the response body for the "StopOutput" request. Stop an output

Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StopOutput.

Jump to

Keyboard shortcuts

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