obsws

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 11 Imported by: 0

README

obsws

Build Status GoDoc

obsws provides client functionality for obs-websocket. Currently, the target version is 4.4.

Installation

go get github.com/FlowingSPDG/go-obs-websocket

Usage

package main

import (
	"log"
	"time"

	"github.com/FlowingSPDG/go-obs-websocket"
)

func main() {
	// Connect a client.
	c := obsws.Client{Host: "localhost", Port: 4444}
	if err := c.Connect(); err != nil {
		log.Fatal(err)
	}
	defer c.Disconnect()

	// Send and receive a request asynchronously.
	req := obsws.NewGetStreamingStatusRequest()
	if err := req.Send(c); err != nil {
		log.Fatal(err)
	}
	// This will block until the response comes (potentially forever).
	resp, err := req.Receive()
	if err != nil {
		log.Fatal(err)
	}
	log.Println("streaming:", resp.Streaming)

	// Set the amount of time we can wait for a response.
	obsws.SetReceiveTimeout(time.Second * 2)

	// Send and receive a request synchronously.
	req = obsws.NewGetStreamingStatusRequest()
	// Note that we create a new request,
	// because requests have IDs that must be unique.
	// This will block for up to two seconds, since we set a timeout.
	resp, err = req.SendReceive(c)
	if err != nil {
		log.Fatal(err)
	}
	log.Println("streaming:", resp.Streaming)

	// Respond to events by registering handlers.
	c.AddEventHandler("SwitchScenes", func(e obsws.Event) {
		// Make sure to assert the actual event type.
		log.Println("new scene:", e.(obsws.SwitchScenesEvent).SceneName)
	})

	time.Sleep(time.Second * 10)
}

Documentation

Overview

Package obsws provides client functionality for obs-websocket.

Index

Constants

View Source
const (
	// StatusOK indicates that the request was successful.
	StatusOK = "ok"
	// StatusError indicates that the request was unsuccessful.
	StatusError = "error"
)

Variables

View Source
var (
	// ErrNotConnected is returned when a request is sent by a client which is not connected.
	ErrNotConnected = errors.New("not connected")
	// ErrReceiveTimeout is returned when a response takes too long to arrive.
	ErrReceiveTimeout = errors.New("receive timed out")
)
View Source
var (
	// ErrNotSent is returned when you call Receive on a request that has not been sent.
	ErrNotSent = errors.New("request not yet sent")
	// ErrAlreadySent is returned when a request has already been sent.
	ErrAlreadySent = errors.New("request already sent")
)
View Source
var ErrUnknownEventType = errors.New("unknown event type")

ErrUnknownEventType is returned when a handler is added for an unknown event.

View Source
var Logger = log.New(os.Stdout, "[obsws] ", log.LstdFlags)

Functions

func GetMessageID

func GetMessageID() string

GetMessageID generates a string that the client has not yet used.

func SetReceiveTimeout

func SetReceiveTimeout(timeout time.Duration)

SetReceiveTimeout sets the maximum blocking time for receiving request responses. If set to 0 (the default), there is no timeout.

Types

type AddFilterToSourceRequest

type AddFilterToSourceRequest struct {
	// Name of the source on which the filter is added.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Name of the new filter.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// Filter type.
	// Required: Yes.
	FilterType string `json:"filterType"`
	// Filter settings.
	// Required: Yes.
	FilterSettings map[string]interface{} `json:"filterSettings"`
	// contains filtered or unexported fields
}

AddFilterToSourceRequest : Add a new filter to a source Available source types along with their settings properties are available from `GetSourceTypesList`.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#addfiltertosource

func NewAddFilterToSourceRequest

func NewAddFilterToSourceRequest(
	sourceName string,
	filterName string,
	filterType string,
	filterSettings map[string]interface{},
) AddFilterToSourceRequest

NewAddFilterToSourceRequest returns a new AddFilterToSourceRequest.

func (AddFilterToSourceRequest) ID

func (r AddFilterToSourceRequest) ID() string

ID returns the request's message ID.

func (AddFilterToSourceRequest) Receive

Receive waits for the response.

func (*AddFilterToSourceRequest) Send

Send sends the request.

func (AddFilterToSourceRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (AddFilterToSourceRequest) Type

func (r AddFilterToSourceRequest) Type() string

Type returns the request's message type.

type AddFilterToSourceResponse

type AddFilterToSourceResponse struct {
	// contains filtered or unexported fields
}

AddFilterToSourceResponse : Response for AddFilterToSourceRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#addfiltertosource

func (AddFilterToSourceResponse) Error

func (r AddFilterToSourceResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (AddFilterToSourceResponse) ID

func (r AddFilterToSourceResponse) ID() string

ID returns the response's message ID.

func (AddFilterToSourceResponse) Status

func (r AddFilterToSourceResponse) Status() string

Status returns the response's status.

type AddSceneItemRequest

type AddSceneItemRequest struct {
	// Name of the scene to create the scene item in.
	// Required: Yes.
	SceneName string `json:"sceneName"`
	// Name of the source to be added.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Whether to make the sceneitem visible on creation or not.
	// Default `true`.
	// Required: No.
	SetVisible bool `json:"setVisible"`
	// contains filtered or unexported fields
}

AddSceneItemRequest : Creates a scene item in a scene In other words, this is how you add a source into a scene.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#addsceneitem

func NewAddSceneItemRequest

func NewAddSceneItemRequest(
	sceneName string,
	sourceName string,
	setVisible bool,
) AddSceneItemRequest

NewAddSceneItemRequest returns a new AddSceneItemRequest.

func (AddSceneItemRequest) ID

func (r AddSceneItemRequest) ID() string

ID returns the request's message ID.

func (AddSceneItemRequest) Receive

Receive waits for the response.

func (*AddSceneItemRequest) Send

func (r *AddSceneItemRequest) Send(c Client) error

Send sends the request.

func (AddSceneItemRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (AddSceneItemRequest) Type

func (r AddSceneItemRequest) Type() string

Type returns the request's message type.

type AddSceneItemResponse

type AddSceneItemResponse struct {
	// Numerical ID of the created scene item.
	// Required: Yes.
	ItemID int `json:"itemId"`
	// contains filtered or unexported fields
}

AddSceneItemResponse : Response for AddSceneItemRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#addsceneitem

func (AddSceneItemResponse) Error

func (r AddSceneItemResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (AddSceneItemResponse) ID

func (r AddSceneItemResponse) ID() string

ID returns the response's message ID.

func (AddSceneItemResponse) Status

func (r AddSceneItemResponse) Status() string

Status returns the response's status.

type AuthenticateRequest

type AuthenticateRequest struct {
	// Response to the auth challenge (see "Authentication" for more information).
	// Required: Yes.
	Auth string `json:"auth"`
	// contains filtered or unexported fields
}

AuthenticateRequest : Attempt to authenticate the client to the server.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#authenticate

func NewAuthenticateRequest

func NewAuthenticateRequest(auth string) AuthenticateRequest

NewAuthenticateRequest returns a new AuthenticateRequest.

func (AuthenticateRequest) ID

func (r AuthenticateRequest) ID() string

ID returns the request's message ID.

func (AuthenticateRequest) Receive

Receive waits for the response.

func (*AuthenticateRequest) Send

func (r *AuthenticateRequest) Send(c Client) error

Send sends the request.

func (AuthenticateRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (AuthenticateRequest) Type

func (r AuthenticateRequest) Type() string

Type returns the request's message type.

type AuthenticateResponse

type AuthenticateResponse struct {
	// contains filtered or unexported fields
}

AuthenticateResponse : Response for AuthenticateRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#authenticate

func (AuthenticateResponse) Error

func (r AuthenticateResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (AuthenticateResponse) ID

func (r AuthenticateResponse) ID() string

ID returns the response's message ID.

func (AuthenticateResponse) Status

func (r AuthenticateResponse) Status() string

Status returns the response's status.

type BroadcastCustomMessageEvent

type BroadcastCustomMessageEvent struct {
	// Identifier provided by the sender.
	// Required: Yes.
	Realm string `json:"realm"`
	// User-defined data.
	// Required: Yes.
	Data map[string]interface{} `json:"data"`
	// contains filtered or unexported fields
}

BroadcastCustomMessageEvent : A custom broadcast message, sent by the server, requested by one of the websocket clients.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#broadcastcustommessage

func (BroadcastCustomMessageEvent) RecTimecode

func (e BroadcastCustomMessageEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (BroadcastCustomMessageEvent) StreamTimecode

func (e BroadcastCustomMessageEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (BroadcastCustomMessageEvent) Type

func (e BroadcastCustomMessageEvent) Type() string

Type returns the event's update type.

type BroadcastCustomMessageRequest

type BroadcastCustomMessageRequest struct {
	// Identifier to be choosen by the client.
	// Required: Yes.
	Realm string `json:"realm"`
	// User-defined data.
	// Required: Yes.
	Data map[string]interface{} `json:"data"`
	// contains filtered or unexported fields
}

BroadcastCustomMessageRequest : Broadcast custom message to all connected WebSocket clients.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#broadcastcustommessage

func NewBroadcastCustomMessageRequest

func NewBroadcastCustomMessageRequest(
	realm string,
	data map[string]interface{},
) BroadcastCustomMessageRequest

NewBroadcastCustomMessageRequest returns a new BroadcastCustomMessageRequest.

func (BroadcastCustomMessageRequest) ID

func (r BroadcastCustomMessageRequest) ID() string

ID returns the request's message ID.

func (BroadcastCustomMessageRequest) Receive

Receive waits for the response.

func (*BroadcastCustomMessageRequest) Send

Send sends the request.

func (BroadcastCustomMessageRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (BroadcastCustomMessageRequest) Type

func (r BroadcastCustomMessageRequest) Type() string

Type returns the request's message type.

type BroadcastCustomMessageResponse

type BroadcastCustomMessageResponse struct {
	// contains filtered or unexported fields
}

BroadcastCustomMessageResponse : Response for BroadcastCustomMessageRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#broadcastcustommessage

func (BroadcastCustomMessageResponse) Error

func (r BroadcastCustomMessageResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (BroadcastCustomMessageResponse) ID

func (r BroadcastCustomMessageResponse) ID() string

ID returns the response's message ID.

func (BroadcastCustomMessageResponse) Status

func (r BroadcastCustomMessageResponse) Status() string

Status returns the response's status.

type Client

type Client struct {
	Host     string // Host (probably "localhost").
	Port     int    // Port (OBS default is 4444).
	Password string // Password (OBS default is "").
	// contains filtered or unexported fields
}

Client is the interface to obs-websocket. Client{Host: "localhost", Port: 4444} will probably work if you haven't configured OBS.

func (*Client) AddEventHandler

func (c *Client) AddEventHandler(eventType string, handler func(Event)) error

AddEventHandler adds a handler function for a given event type.

func (*Client) Connect

func (c *Client) Connect() error

Connect opens a WebSocket connection and authenticates if necessary.

func (Client) Connected

func (c Client) Connected() bool

Connected returns wheter or not the client is connected.

func (*Client) Disconnect

func (c *Client) Disconnect() error

Disconnect closes the WebSocket connection.

func (*Client) MustAddEventHandler

func (c *Client) MustAddEventHandler(eventType string, handler func(Event))

MustAddEventHandler adds a handler function for a given event type. Panics if eventType is of an unknown type.

func (*Client) RemoveEventHandler

func (c *Client) RemoveEventHandler(eventType string)

RemoveEventHandler removes the handler for a given event type.

func (*Client) SendRequest

func (c *Client) SendRequest(req Request) (chan map[string]interface{}, error)

SendRequest sends a request to the WebSocket server.

type CreateSceneRequest

type CreateSceneRequest struct {
	// Name of the scene to create.
	// Required: Yes.
	SceneName string `json:"sceneName"`
	// contains filtered or unexported fields
}

CreateSceneRequest : Create a new scene scene.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#createscene

func NewCreateSceneRequest

func NewCreateSceneRequest(sceneName string) CreateSceneRequest

NewCreateSceneRequest returns a new CreateSceneRequest.

func (CreateSceneRequest) ID

func (r CreateSceneRequest) ID() string

ID returns the request's message ID.

func (CreateSceneRequest) Receive

Receive waits for the response.

func (*CreateSceneRequest) Send

func (r *CreateSceneRequest) Send(c Client) error

Send sends the request.

func (CreateSceneRequest) SendReceive

func (r CreateSceneRequest) SendReceive(c Client) (CreateSceneResponse, error)

SendReceive sends the request then immediately waits for the response.

func (CreateSceneRequest) Type

func (r CreateSceneRequest) Type() string

Type returns the request's message type.

type CreateSceneResponse

type CreateSceneResponse struct {
	// contains filtered or unexported fields
}

CreateSceneResponse : Response for CreateSceneRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#createscene

func (CreateSceneResponse) Error

func (r CreateSceneResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (CreateSceneResponse) ID

func (r CreateSceneResponse) ID() string

ID returns the response's message ID.

func (CreateSceneResponse) Status

func (r CreateSceneResponse) Status() string

Status returns the response's status.

type CreateSourceRequest

type CreateSourceRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Source kind, Eg.
	// `vlc_source`.
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// Scene to add the new source to.
	// Required: Yes.
	SceneName string `json:"sceneName"`
	// Source settings data.
	// Required: No.
	SourceSettings map[string]interface{} `json:"sourceSettings"`
	// Set the created SceneItem as visible or not.
	// Defaults to true.
	// Required: No.
	SetVisible bool `json:"setVisible"`
	// contains filtered or unexported fields
}

CreateSourceRequest : Create a source and add it as a sceneitem to a scene.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#createsource

func NewCreateSourceRequest

func NewCreateSourceRequest(
	sourceName string,
	sourceKind string,
	sceneName string,
	sourceSettings map[string]interface{},
	setVisible bool,
) CreateSourceRequest

NewCreateSourceRequest returns a new CreateSourceRequest.

func (CreateSourceRequest) ID

func (r CreateSourceRequest) ID() string

ID returns the request's message ID.

func (CreateSourceRequest) Receive

Receive waits for the response.

func (*CreateSourceRequest) Send

func (r *CreateSourceRequest) Send(c Client) error

Send sends the request.

func (CreateSourceRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (CreateSourceRequest) Type

func (r CreateSourceRequest) Type() string

Type returns the request's message type.

type CreateSourceResponse

type CreateSourceResponse struct {
	// ID of the SceneItem in the scene.
	// Required: Yes.
	ItemID int `json:"itemId"`
	// contains filtered or unexported fields
}

CreateSourceResponse : Response for CreateSourceRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#createsource

func (CreateSourceResponse) Error

func (r CreateSourceResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (CreateSourceResponse) ID

func (r CreateSourceResponse) ID() string

ID returns the response's message ID.

func (CreateSourceResponse) Status

func (r CreateSourceResponse) Status() string

Status returns the response's status.

type DeleteSceneItemRequest

type DeleteSceneItemRequest struct {
	// Name of the scene the scene item belongs to.
	// Defaults to the current scene.
	// Required: No.
	Scene string `json:"scene"`
	// Scene item to delete (required).
	// Required: Yes.
	Item map[string]interface{} `json:"item"`
	// Scene Item name (prefer `id`, including both is acceptable).
	// Required: Yes.
	ItemName string `json:"item.name"`
	// Scene Item ID.
	// Required: Yes.
	ItemID int `json:"item.id"`
	// contains filtered or unexported fields
}

DeleteSceneItemRequest : Deletes a scene item.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#deletesceneitem

func NewDeleteSceneItemRequest

func NewDeleteSceneItemRequest(
	scene string,
	item map[string]interface{},
	itemName string,
	itemID int,
) DeleteSceneItemRequest

NewDeleteSceneItemRequest returns a new DeleteSceneItemRequest.

func (DeleteSceneItemRequest) ID

func (r DeleteSceneItemRequest) ID() string

ID returns the request's message ID.

func (DeleteSceneItemRequest) Receive

Receive waits for the response.

func (*DeleteSceneItemRequest) Send

func (r *DeleteSceneItemRequest) Send(c Client) error

Send sends the request.

func (DeleteSceneItemRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (DeleteSceneItemRequest) Type

func (r DeleteSceneItemRequest) Type() string

Type returns the request's message type.

type DeleteSceneItemResponse

type DeleteSceneItemResponse struct {
	// contains filtered or unexported fields
}

DeleteSceneItemResponse : Response for DeleteSceneItemRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#deletesceneitem

func (DeleteSceneItemResponse) Error

func (r DeleteSceneItemResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (DeleteSceneItemResponse) ID

func (r DeleteSceneItemResponse) ID() string

ID returns the response's message ID.

func (DeleteSceneItemResponse) Status

func (r DeleteSceneItemResponse) Status() string

Status returns the response's status.

type DisableStudioModeRequest

type DisableStudioModeRequest struct {
	// contains filtered or unexported fields
}

DisableStudioModeRequest : Disables Studio Mode.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#disablestudiomode

func NewDisableStudioModeRequest

func NewDisableStudioModeRequest() DisableStudioModeRequest

NewDisableStudioModeRequest returns a new DisableStudioModeRequest.

func (DisableStudioModeRequest) ID

func (r DisableStudioModeRequest) ID() string

ID returns the request's message ID.

func (DisableStudioModeRequest) Receive

Receive waits for the response.

func (*DisableStudioModeRequest) Send

Send sends the request.

func (DisableStudioModeRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (DisableStudioModeRequest) Type

func (r DisableStudioModeRequest) Type() string

Type returns the request's message type.

type DisableStudioModeResponse

type DisableStudioModeResponse struct {
	// contains filtered or unexported fields
}

DisableStudioModeResponse : Response for DisableStudioModeRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#disablestudiomode

func (DisableStudioModeResponse) Error

func (r DisableStudioModeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (DisableStudioModeResponse) ID

func (r DisableStudioModeResponse) ID() string

ID returns the response's message ID.

func (DisableStudioModeResponse) Status

func (r DisableStudioModeResponse) Status() string

Status returns the response's status.

type DuplicateSceneItemRequest

type DuplicateSceneItemRequest struct {
	// Name of the scene to copy the item from.
	// Defaults to the current scene.
	// Required: No.
	FromScene string `json:"fromScene"`
	// Name of the scene to create the item in.
	// Defaults to the current scene.
	// Required: No.
	ToScene string `json:"toScene"`
	// Scene Item to duplicate from the source scene (required).
	// Required: Yes.
	Item map[string]interface{} `json:"item"`
	// Scene Item name (prefer `id`, including both is acceptable).
	// Required: Yes.
	ItemName string `json:"item.name"`
	// Scene Item ID.
	// Required: Yes.
	ItemID int `json:"item.id"`
	// contains filtered or unexported fields
}

DuplicateSceneItemRequest : Duplicates a scene item.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#duplicatesceneitem

func NewDuplicateSceneItemRequest

func NewDuplicateSceneItemRequest(
	fromScene string,
	toScene string,
	item map[string]interface{},
	itemName string,
	itemID int,
) DuplicateSceneItemRequest

NewDuplicateSceneItemRequest returns a new DuplicateSceneItemRequest.

func (DuplicateSceneItemRequest) ID

func (r DuplicateSceneItemRequest) ID() string

ID returns the request's message ID.

func (DuplicateSceneItemRequest) Receive

Receive waits for the response.

func (*DuplicateSceneItemRequest) Send

Send sends the request.

func (DuplicateSceneItemRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (DuplicateSceneItemRequest) Type

func (r DuplicateSceneItemRequest) Type() string

Type returns the request's message type.

type DuplicateSceneItemResponse

type DuplicateSceneItemResponse struct {
	// Name of the scene where the new item was created.
	// Required: Yes.
	Scene string `json:"scene"`
	// New item info.
	// Required: Yes.
	Item map[string]interface{} `json:"item"`
	// New item ID.
	// Required: Yes.
	ItemID int `json:"item.id"`
	// New item name.
	// Required: Yes.
	ItemName string `json:"item.name"`
	// contains filtered or unexported fields
}

DuplicateSceneItemResponse : Response for DuplicateSceneItemRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#duplicatesceneitem

func (DuplicateSceneItemResponse) Error

func (r DuplicateSceneItemResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (DuplicateSceneItemResponse) ID

func (r DuplicateSceneItemResponse) ID() string

ID returns the response's message ID.

func (DuplicateSceneItemResponse) Status

func (r DuplicateSceneItemResponse) Status() string

Status returns the response's status.

type EnableStudioModeRequest

type EnableStudioModeRequest struct {
	// contains filtered or unexported fields
}

EnableStudioModeRequest : Enables Studio Mode.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#enablestudiomode

func NewEnableStudioModeRequest

func NewEnableStudioModeRequest() EnableStudioModeRequest

NewEnableStudioModeRequest returns a new EnableStudioModeRequest.

func (EnableStudioModeRequest) ID

func (r EnableStudioModeRequest) ID() string

ID returns the request's message ID.

func (EnableStudioModeRequest) Receive

Receive waits for the response.

func (*EnableStudioModeRequest) Send

Send sends the request.

func (EnableStudioModeRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (EnableStudioModeRequest) Type

func (r EnableStudioModeRequest) Type() string

Type returns the request's message type.

type EnableStudioModeResponse

type EnableStudioModeResponse struct {
	// contains filtered or unexported fields
}

EnableStudioModeResponse : Response for EnableStudioModeRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#enablestudiomode

func (EnableStudioModeResponse) Error

func (r EnableStudioModeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (EnableStudioModeResponse) ID

func (r EnableStudioModeResponse) ID() string

ID returns the response's message ID.

func (EnableStudioModeResponse) Status

func (r EnableStudioModeResponse) Status() string

Status returns the response's status.

type Event

type Event interface {
	Type() string
	StreamTimecode() string
	RecTimecode() string
}

Event is broadcast by the server to each connected client when a recognized action occurs within OBS.

type ExecuteBatchRequest

type ExecuteBatchRequest struct {
	// Array of requests to perform.
	// Executed in order.
	// Required: Yes.
	Requests []map[string]interface{} `json:"requests"`
	// Request type.
	// Eg.
	// `GetVersion`.
	// Required: Yes.
	RequestsRequestType string `json:"requests.*.request-type"`
	// ID of the individual request.
	// Can be any string and not required to be unique.
	// Defaults to empty string if not specified.
	// Required: Yes.
	RequestsMessageID string `json:"requests.*.message-id"`
	// Stop processing batch requests if one returns a failure.
	// Required: Yes.
	AbortOnFail bool `json:"abortOnFail"`
	// contains filtered or unexported fields
}

ExecuteBatchRequest : Executes a list of requests sequentially (one-by-one on the same thread).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#executebatch

func NewExecuteBatchRequest

func NewExecuteBatchRequest(
	requests []map[string]interface{},
	requestsRequestType string,
	requestsMessageID string,
	abortOnFail bool,
) ExecuteBatchRequest

NewExecuteBatchRequest returns a new ExecuteBatchRequest.

func (ExecuteBatchRequest) ID

func (r ExecuteBatchRequest) ID() string

ID returns the request's message ID.

func (ExecuteBatchRequest) Receive

Receive waits for the response.

func (*ExecuteBatchRequest) Send

func (r *ExecuteBatchRequest) Send(c Client) error

Send sends the request.

func (ExecuteBatchRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ExecuteBatchRequest) Type

func (r ExecuteBatchRequest) Type() string

Type returns the request's message type.

type ExecuteBatchResponse

type ExecuteBatchResponse struct {
	// Batch requests results, ordered sequentially.
	// Required: Yes.
	Results []map[string]interface{} `json:"results"`
	// ID of the individual request which was originally provided by the client.
	// Required: Yes.
	ResultsMessageID string `json:"results.*.message-id"`
	// Status response as string.
	// Either `ok` or `error`.
	// Required: Yes.
	ResultsStatus string `json:"results.*.status"`
	// Error message accompanying an `error` status.
	// Required: Yes.
	ResultsError string `json:"results.*.error"`
	// contains filtered or unexported fields
}

ExecuteBatchResponse : Response for ExecuteBatchRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#executebatch

func (ExecuteBatchResponse) Error

func (r ExecuteBatchResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ExecuteBatchResponse) ID

func (r ExecuteBatchResponse) ID() string

ID returns the response's message ID.

func (ExecuteBatchResponse) Status

func (r ExecuteBatchResponse) Status() string

Status returns the response's status.

type ExitingEvent

type ExitingEvent struct {
	// contains filtered or unexported fields
}

ExitingEvent : OBS is exiting.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#exiting

func (ExitingEvent) RecTimecode

func (e ExitingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ExitingEvent) StreamTimecode

func (e ExitingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ExitingEvent) Type

func (e ExitingEvent) Type() string

Type returns the event's update type.

type GetAudioActiveRequest

type GetAudioActiveRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetAudioActiveRequest : Get the audio's active status of a specified source.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getaudioactive

func NewGetAudioActiveRequest

func NewGetAudioActiveRequest(sourceName string) GetAudioActiveRequest

NewGetAudioActiveRequest returns a new GetAudioActiveRequest.

func (GetAudioActiveRequest) ID

func (r GetAudioActiveRequest) ID() string

ID returns the request's message ID.

func (GetAudioActiveRequest) Receive

Receive waits for the response.

func (*GetAudioActiveRequest) Send

func (r *GetAudioActiveRequest) Send(c Client) error

Send sends the request.

func (GetAudioActiveRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetAudioActiveRequest) Type

func (r GetAudioActiveRequest) Type() string

Type returns the request's message type.

type GetAudioActiveResponse

type GetAudioActiveResponse struct {
	// Audio active status of the source.
	// Required: Yes.
	AudioActive bool `json:"audioActive"`
	// contains filtered or unexported fields
}

GetAudioActiveResponse : Response for GetAudioActiveRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getaudioactive

func (GetAudioActiveResponse) Error

func (r GetAudioActiveResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetAudioActiveResponse) ID

func (r GetAudioActiveResponse) ID() string

ID returns the response's message ID.

func (GetAudioActiveResponse) Status

func (r GetAudioActiveResponse) Status() string

Status returns the response's status.

type GetAudioMonitorTypeRequest

type GetAudioMonitorTypeRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetAudioMonitorTypeRequest : Get the audio monitoring type of the specified source.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getaudiomonitortype

func NewGetAudioMonitorTypeRequest

func NewGetAudioMonitorTypeRequest(sourceName string) GetAudioMonitorTypeRequest

NewGetAudioMonitorTypeRequest returns a new GetAudioMonitorTypeRequest.

func (GetAudioMonitorTypeRequest) ID

func (r GetAudioMonitorTypeRequest) ID() string

ID returns the request's message ID.

func (GetAudioMonitorTypeRequest) Receive

Receive waits for the response.

func (*GetAudioMonitorTypeRequest) Send

Send sends the request.

func (GetAudioMonitorTypeRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetAudioMonitorTypeRequest) Type

func (r GetAudioMonitorTypeRequest) Type() string

Type returns the request's message type.

type GetAudioMonitorTypeResponse

type GetAudioMonitorTypeResponse struct {
	// The monitor type in use.
	// Options: `none`, `monitorOnly`, `monitorAndOutput`.
	// Required: Yes.
	MonitorType string `json:"monitorType"`
	// contains filtered or unexported fields
}

GetAudioMonitorTypeResponse : Response for GetAudioMonitorTypeRequest.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getaudiomonitortype

func (GetAudioMonitorTypeResponse) Error

func (r GetAudioMonitorTypeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetAudioMonitorTypeResponse) ID

func (r GetAudioMonitorTypeResponse) ID() string

ID returns the response's message ID.

func (GetAudioMonitorTypeResponse) Status

func (r GetAudioMonitorTypeResponse) Status() string

Status returns the response's status.

type GetAudioTracksRequest

type GetAudioTracksRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetAudioTracksRequest : Gets whether an audio track is active for a source.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getaudiotracks

func NewGetAudioTracksRequest

func NewGetAudioTracksRequest(sourceName string) GetAudioTracksRequest

NewGetAudioTracksRequest returns a new GetAudioTracksRequest.

func (GetAudioTracksRequest) ID

func (r GetAudioTracksRequest) ID() string

ID returns the request's message ID.

func (GetAudioTracksRequest) Receive

Receive waits for the response.

func (*GetAudioTracksRequest) Send

func (r *GetAudioTracksRequest) Send(c Client) error

Send sends the request.

func (GetAudioTracksRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetAudioTracksRequest) Type

func (r GetAudioTracksRequest) Type() string

Type returns the request's message type.

type GetAudioTracksResponse

type GetAudioTracksResponse struct {
	// Required: Yes.
	Track1 bool `json:"track1"`
	// Required: Yes.
	Track2 bool `json:"track2"`
	// Required: Yes.
	Track3 bool `json:"track3"`
	// Required: Yes.
	Track4 bool `json:"track4"`
	// Required: Yes.
	Track5 bool `json:"track5"`
	// Required: Yes.
	Track6 bool `json:"track6"`
	// contains filtered or unexported fields
}

GetAudioTracksResponse : Response for GetAudioTracksRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getaudiotracks

func (GetAudioTracksResponse) Error

func (r GetAudioTracksResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetAudioTracksResponse) ID

func (r GetAudioTracksResponse) ID() string

ID returns the response's message ID.

func (GetAudioTracksResponse) Status

func (r GetAudioTracksResponse) Status() string

Status returns the response's status.

type GetAuthRequiredRequest

type GetAuthRequiredRequest struct {
	// contains filtered or unexported fields
}

GetAuthRequiredRequest : Tells the client if authentication is required If so, returns authentication parameters `challenge` and `salt` (see "Authentication" for more information).

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getauthrequired

func NewGetAuthRequiredRequest

func NewGetAuthRequiredRequest() GetAuthRequiredRequest

NewGetAuthRequiredRequest returns a new GetAuthRequiredRequest.

func (GetAuthRequiredRequest) ID

func (r GetAuthRequiredRequest) ID() string

ID returns the request's message ID.

func (GetAuthRequiredRequest) Receive

Receive waits for the response.

func (*GetAuthRequiredRequest) Send

func (r *GetAuthRequiredRequest) Send(c Client) error

Send sends the request.

func (GetAuthRequiredRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetAuthRequiredRequest) Type

func (r GetAuthRequiredRequest) Type() string

Type returns the request's message type.

type GetAuthRequiredResponse

type GetAuthRequiredResponse struct {
	// Indicates whether authentication is required.
	// Required: Yes.
	AuthRequired bool `json:"authRequired"`
	// Required: No.
	Challenge string `json:"challenge"`
	// Required: No.
	Salt string `json:"salt"`
	// contains filtered or unexported fields
}

GetAuthRequiredResponse : Response for GetAuthRequiredRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getauthrequired

func (GetAuthRequiredResponse) Error

func (r GetAuthRequiredResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetAuthRequiredResponse) ID

func (r GetAuthRequiredResponse) ID() string

ID returns the response's message ID.

func (GetAuthRequiredResponse) Status

func (r GetAuthRequiredResponse) Status() string

Status returns the response's status.

type GetBrowserSourcePropertiesRequest

type GetBrowserSourcePropertiesRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// contains filtered or unexported fields
}

GetBrowserSourcePropertiesRequest : Get current properties for a Browser Source.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getbrowsersourceproperties

func NewGetBrowserSourcePropertiesRequest

func NewGetBrowserSourcePropertiesRequest(source string) GetBrowserSourcePropertiesRequest

NewGetBrowserSourcePropertiesRequest returns a new GetBrowserSourcePropertiesRequest.

func (GetBrowserSourcePropertiesRequest) ID

func (r GetBrowserSourcePropertiesRequest) ID() string

ID returns the request's message ID.

func (GetBrowserSourcePropertiesRequest) Receive

Receive waits for the response.

func (*GetBrowserSourcePropertiesRequest) Send

Send sends the request.

func (GetBrowserSourcePropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetBrowserSourcePropertiesRequest) Type

func (r GetBrowserSourcePropertiesRequest) Type() string

Type returns the request's message type.

type GetBrowserSourcePropertiesResponse

type GetBrowserSourcePropertiesResponse struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// Indicates that a local file is in use.
	// Required: Yes.
	IsLocalFile bool `json:"is_local_file"`
	// file path.
	// Required: Yes.
	LocalFile string `json:"local_file"`
	// Url.
	// Required: Yes.
	Url string `json:"url"`
	// CSS to inject.
	// Required: Yes.
	Css string `json:"css"`
	// Width.
	// Required: Yes.
	Width int `json:"width"`
	// Height.
	// Required: Yes.
	Height int `json:"height"`
	// Framerate.
	// Required: Yes.
	FPS int `json:"fps"`
	// Indicates whether the source should be shutdown when not visible.
	// Required: Yes.
	Shutdown bool `json:"shutdown"`
	// contains filtered or unexported fields
}

GetBrowserSourcePropertiesResponse : Response for GetBrowserSourcePropertiesRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getbrowsersourceproperties

func (GetBrowserSourcePropertiesResponse) Error

func (r GetBrowserSourcePropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetBrowserSourcePropertiesResponse) ID

func (r GetBrowserSourcePropertiesResponse) ID() string

ID returns the response's message ID.

func (GetBrowserSourcePropertiesResponse) Status

func (r GetBrowserSourcePropertiesResponse) Status() string

Status returns the response's status.

type GetCurrentProfileRequest

type GetCurrentProfileRequest struct {
	// contains filtered or unexported fields
}

GetCurrentProfileRequest : Get the name of the current profile.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrentprofile

func NewGetCurrentProfileRequest

func NewGetCurrentProfileRequest() GetCurrentProfileRequest

NewGetCurrentProfileRequest returns a new GetCurrentProfileRequest.

func (GetCurrentProfileRequest) ID

func (r GetCurrentProfileRequest) ID() string

ID returns the request's message ID.

func (GetCurrentProfileRequest) Receive

Receive waits for the response.

func (*GetCurrentProfileRequest) Send

Send sends the request.

func (GetCurrentProfileRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetCurrentProfileRequest) Type

func (r GetCurrentProfileRequest) Type() string

Type returns the request's message type.

type GetCurrentProfileResponse

type GetCurrentProfileResponse struct {
	// Name of the currently active profile.
	// Required: Yes.
	ProfileName string `json:"profile-name"`
	// contains filtered or unexported fields
}

GetCurrentProfileResponse : Response for GetCurrentProfileRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrentprofile

func (GetCurrentProfileResponse) Error

func (r GetCurrentProfileResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetCurrentProfileResponse) ID

func (r GetCurrentProfileResponse) ID() string

ID returns the response's message ID.

func (GetCurrentProfileResponse) Status

func (r GetCurrentProfileResponse) Status() string

Status returns the response's status.

type GetCurrentSceneCollectionRequest

type GetCurrentSceneCollectionRequest struct {
	// contains filtered or unexported fields
}

GetCurrentSceneCollectionRequest : Get the name of the current scene collection.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrentscenecollection

func NewGetCurrentSceneCollectionRequest

func NewGetCurrentSceneCollectionRequest() GetCurrentSceneCollectionRequest

NewGetCurrentSceneCollectionRequest returns a new GetCurrentSceneCollectionRequest.

func (GetCurrentSceneCollectionRequest) ID

func (r GetCurrentSceneCollectionRequest) ID() string

ID returns the request's message ID.

func (GetCurrentSceneCollectionRequest) Receive

Receive waits for the response.

func (*GetCurrentSceneCollectionRequest) Send

Send sends the request.

func (GetCurrentSceneCollectionRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetCurrentSceneCollectionRequest) Type

func (r GetCurrentSceneCollectionRequest) Type() string

Type returns the request's message type.

type GetCurrentSceneCollectionResponse

type GetCurrentSceneCollectionResponse struct {
	// Name of the currently active scene collection.
	// Required: Yes.
	ScName string `json:"sc-name"`
	// contains filtered or unexported fields
}

GetCurrentSceneCollectionResponse : Response for GetCurrentSceneCollectionRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrentscenecollection

func (GetCurrentSceneCollectionResponse) Error

func (r GetCurrentSceneCollectionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetCurrentSceneCollectionResponse) ID

func (r GetCurrentSceneCollectionResponse) ID() string

ID returns the response's message ID.

func (GetCurrentSceneCollectionResponse) Status

func (r GetCurrentSceneCollectionResponse) Status() string

Status returns the response's status.

type GetCurrentSceneRequest

type GetCurrentSceneRequest struct {
	// contains filtered or unexported fields
}

GetCurrentSceneRequest : Get the current scene's name and source items.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrentscene

func NewGetCurrentSceneRequest

func NewGetCurrentSceneRequest() GetCurrentSceneRequest

NewGetCurrentSceneRequest returns a new GetCurrentSceneRequest.

func (GetCurrentSceneRequest) ID

func (r GetCurrentSceneRequest) ID() string

ID returns the request's message ID.

func (GetCurrentSceneRequest) Receive

Receive waits for the response.

func (*GetCurrentSceneRequest) Send

func (r *GetCurrentSceneRequest) Send(c Client) error

Send sends the request.

func (GetCurrentSceneRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetCurrentSceneRequest) Type

func (r GetCurrentSceneRequest) Type() string

Type returns the request's message type.

type GetCurrentSceneResponse

type GetCurrentSceneResponse struct {
	// Name of the currently active scene.
	// Required: Yes.
	Name string `json:"name"`
	// Ordered list of the current scene's source items.
	// Required: Yes.
	Sources []*SceneItem `json:"sources"`
	// contains filtered or unexported fields
}

GetCurrentSceneResponse : Response for GetCurrentSceneRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrentscene

func (GetCurrentSceneResponse) Error

func (r GetCurrentSceneResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetCurrentSceneResponse) ID

func (r GetCurrentSceneResponse) ID() string

ID returns the response's message ID.

func (GetCurrentSceneResponse) Status

func (r GetCurrentSceneResponse) Status() string

Status returns the response's status.

type GetCurrentTransitionRequest

type GetCurrentTransitionRequest struct {
	// contains filtered or unexported fields
}

GetCurrentTransitionRequest : Get the name of the currently selected transition in the frontend's dropdown menu.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrenttransition

func NewGetCurrentTransitionRequest

func NewGetCurrentTransitionRequest() GetCurrentTransitionRequest

NewGetCurrentTransitionRequest returns a new GetCurrentTransitionRequest.

func (GetCurrentTransitionRequest) ID

func (r GetCurrentTransitionRequest) ID() string

ID returns the request's message ID.

func (GetCurrentTransitionRequest) Receive

Receive waits for the response.

func (*GetCurrentTransitionRequest) Send

Send sends the request.

func (GetCurrentTransitionRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetCurrentTransitionRequest) Type

func (r GetCurrentTransitionRequest) Type() string

Type returns the request's message type.

type GetCurrentTransitionResponse

type GetCurrentTransitionResponse struct {
	// Name of the selected transition.
	// Required: Yes.
	Name string `json:"name"`
	// Transition duration (in milliseconds) if supported by the transition.
	// Required: No.
	Duration int `json:"duration"`
	// contains filtered or unexported fields
}

GetCurrentTransitionResponse : Response for GetCurrentTransitionRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getcurrenttransition

func (GetCurrentTransitionResponse) Error

func (r GetCurrentTransitionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetCurrentTransitionResponse) ID

func (r GetCurrentTransitionResponse) ID() string

ID returns the response's message ID.

func (GetCurrentTransitionResponse) Status

func (r GetCurrentTransitionResponse) Status() string

Status returns the response's status.

type GetFilenameFormattingRequest

type GetFilenameFormattingRequest struct {
	// contains filtered or unexported fields
}

GetFilenameFormattingRequest : Get the filename formatting string.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getfilenameformatting

func NewGetFilenameFormattingRequest

func NewGetFilenameFormattingRequest() GetFilenameFormattingRequest

NewGetFilenameFormattingRequest returns a new GetFilenameFormattingRequest.

func (GetFilenameFormattingRequest) ID

func (r GetFilenameFormattingRequest) ID() string

ID returns the request's message ID.

func (GetFilenameFormattingRequest) Receive

Receive waits for the response.

func (*GetFilenameFormattingRequest) Send

Send sends the request.

func (GetFilenameFormattingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetFilenameFormattingRequest) Type

func (r GetFilenameFormattingRequest) Type() string

Type returns the request's message type.

type GetFilenameFormattingResponse

type GetFilenameFormattingResponse struct {
	// Current filename formatting string.
	// Required: Yes.
	FilenameFormatting string `json:"filename-formatting"`
	// contains filtered or unexported fields
}

GetFilenameFormattingResponse : Response for GetFilenameFormattingRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getfilenameformatting

func (GetFilenameFormattingResponse) Error

func (r GetFilenameFormattingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetFilenameFormattingResponse) ID

func (r GetFilenameFormattingResponse) ID() string

ID returns the response's message ID.

func (GetFilenameFormattingResponse) Status

func (r GetFilenameFormattingResponse) Status() string

Status returns the response's status.

type GetMediaDurationRequest

type GetMediaDurationRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetMediaDurationRequest : Get the length of media in milliseconds Supports ffmpeg and vlc media sources (as of OBS v25.0.8) Note: For some reason, for the first 5 or so seconds that the media is playing, the total duration can be off by upwards of 50ms.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediaduration

func NewGetMediaDurationRequest

func NewGetMediaDurationRequest(sourceName string) GetMediaDurationRequest

NewGetMediaDurationRequest returns a new GetMediaDurationRequest.

func (GetMediaDurationRequest) ID

func (r GetMediaDurationRequest) ID() string

ID returns the request's message ID.

func (GetMediaDurationRequest) Receive

Receive waits for the response.

func (*GetMediaDurationRequest) Send

Send sends the request.

func (GetMediaDurationRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetMediaDurationRequest) Type

func (r GetMediaDurationRequest) Type() string

Type returns the request's message type.

type GetMediaDurationResponse

type GetMediaDurationResponse struct {
	// The total length of media in milliseconds..
	// Required: Yes.
	MediaDuration int `json:"mediaDuration"`
	// contains filtered or unexported fields
}

GetMediaDurationResponse : Response for GetMediaDurationRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediaduration

func (GetMediaDurationResponse) Error

func (r GetMediaDurationResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetMediaDurationResponse) ID

func (r GetMediaDurationResponse) ID() string

ID returns the response's message ID.

func (GetMediaDurationResponse) Status

func (r GetMediaDurationResponse) Status() string

Status returns the response's status.

type GetMediaSourcesListRequest

type GetMediaSourcesListRequest struct {
	// contains filtered or unexported fields
}

GetMediaSourcesListRequest : List the media state of all media sources (vlc and media source).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediasourceslist

func NewGetMediaSourcesListRequest

func NewGetMediaSourcesListRequest() GetMediaSourcesListRequest

NewGetMediaSourcesListRequest returns a new GetMediaSourcesListRequest.

func (GetMediaSourcesListRequest) ID

func (r GetMediaSourcesListRequest) ID() string

ID returns the request's message ID.

func (GetMediaSourcesListRequest) Receive

Receive waits for the response.

func (*GetMediaSourcesListRequest) Send

Send sends the request.

func (GetMediaSourcesListRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetMediaSourcesListRequest) Type

func (r GetMediaSourcesListRequest) Type() string

Type returns the request's message type.

type GetMediaSourcesListResponse

type GetMediaSourcesListResponse struct {
	// Array of sources.
	// Required: Yes.
	MediaSources []map[string]interface{} `json:"mediaSources"`
	// Unique source name.
	// Required: Yes.
	MediaSourcesSourceName string `json:"mediaSources.*.sourceName"`
	// Unique source internal type (a.k.a `ffmpeg_source` or `vlc_source`).
	// Required: Yes.
	MediaSourcesSourceKind string `json:"mediaSources.*.sourceKind"`
	// The current state of media for that source.
	// States: `none`, `playing`, `opening`, `buffering`, `paused`, `stopped`, `ended`, `error`, `unknown`.
	// Required: Yes.
	MediaSourcesMediaState string `json:"mediaSources.*.mediaState"`
	// contains filtered or unexported fields
}

GetMediaSourcesListResponse : Response for GetMediaSourcesListRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediasourceslist

func (GetMediaSourcesListResponse) Error

func (r GetMediaSourcesListResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetMediaSourcesListResponse) ID

func (r GetMediaSourcesListResponse) ID() string

ID returns the response's message ID.

func (GetMediaSourcesListResponse) Status

func (r GetMediaSourcesListResponse) Status() string

Status returns the response's status.

type GetMediaStateRequest

type GetMediaStateRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetMediaStateRequest : Get the current playing state of a media source Supports ffmpeg and vlc media sources (as of OBS v25.0.8).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediastate

func NewGetMediaStateRequest

func NewGetMediaStateRequest(sourceName string) GetMediaStateRequest

NewGetMediaStateRequest returns a new GetMediaStateRequest.

func (GetMediaStateRequest) ID

func (r GetMediaStateRequest) ID() string

ID returns the request's message ID.

func (GetMediaStateRequest) Receive

Receive waits for the response.

func (*GetMediaStateRequest) Send

func (r *GetMediaStateRequest) Send(c Client) error

Send sends the request.

func (GetMediaStateRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetMediaStateRequest) Type

func (r GetMediaStateRequest) Type() string

Type returns the request's message type.

type GetMediaStateResponse

type GetMediaStateResponse struct {
	// The media state of the provided source.
	// States: `none`, `playing`, `opening`, `buffering`, `paused`, `stopped`, `ended`, `error`, `unknown`.
	// Required: Yes.
	MediaState string `json:"mediaState"`
	// contains filtered or unexported fields
}

GetMediaStateResponse : Response for GetMediaStateRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediastate

func (GetMediaStateResponse) Error

func (r GetMediaStateResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetMediaStateResponse) ID

func (r GetMediaStateResponse) ID() string

ID returns the response's message ID.

func (GetMediaStateResponse) Status

func (r GetMediaStateResponse) Status() string

Status returns the response's status.

type GetMediaTimeRequest

type GetMediaTimeRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetMediaTimeRequest : Get the current timestamp of media in milliseconds Supports ffmpeg and vlc media sources (as of OBS v25.0.8).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediatime

func NewGetMediaTimeRequest

func NewGetMediaTimeRequest(sourceName string) GetMediaTimeRequest

NewGetMediaTimeRequest returns a new GetMediaTimeRequest.

func (GetMediaTimeRequest) ID

func (r GetMediaTimeRequest) ID() string

ID returns the request's message ID.

func (GetMediaTimeRequest) Receive

Receive waits for the response.

func (*GetMediaTimeRequest) Send

func (r *GetMediaTimeRequest) Send(c Client) error

Send sends the request.

func (GetMediaTimeRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetMediaTimeRequest) Type

func (r GetMediaTimeRequest) Type() string

Type returns the request's message type.

type GetMediaTimeResponse

type GetMediaTimeResponse struct {
	// The time in milliseconds since the start of the media.
	// Required: Yes.
	Timestamp int `json:"timestamp"`
	// contains filtered or unexported fields
}

GetMediaTimeResponse : Response for GetMediaTimeRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmediatime

func (GetMediaTimeResponse) Error

func (r GetMediaTimeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetMediaTimeResponse) ID

func (r GetMediaTimeResponse) ID() string

ID returns the response's message ID.

func (GetMediaTimeResponse) Status

func (r GetMediaTimeResponse) Status() string

Status returns the response's status.

type GetMuteRequest

type GetMuteRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// contains filtered or unexported fields
}

GetMuteRequest : Get the mute status of a specified source.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmute

func NewGetMuteRequest

func NewGetMuteRequest(source string) GetMuteRequest

NewGetMuteRequest returns a new GetMuteRequest.

func (GetMuteRequest) ID

func (r GetMuteRequest) ID() string

ID returns the request's message ID.

func (GetMuteRequest) Receive

func (r GetMuteRequest) Receive() (GetMuteResponse, error)

Receive waits for the response.

func (*GetMuteRequest) Send

func (r *GetMuteRequest) Send(c Client) error

Send sends the request.

func (GetMuteRequest) SendReceive

func (r GetMuteRequest) SendReceive(c Client) (GetMuteResponse, error)

SendReceive sends the request then immediately waits for the response.

func (GetMuteRequest) Type

func (r GetMuteRequest) Type() string

Type returns the request's message type.

type GetMuteResponse

type GetMuteResponse struct {
	// Source name.
	// Required: Yes.
	Name string `json:"name"`
	// Mute status of the source.
	// Required: Yes.
	Muted bool `json:"muted"`
	// contains filtered or unexported fields
}

GetMuteResponse : Response for GetMuteRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getmute

func (GetMuteResponse) Error

func (r GetMuteResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetMuteResponse) ID

func (r GetMuteResponse) ID() string

ID returns the response's message ID.

func (GetMuteResponse) Status

func (r GetMuteResponse) Status() string

Status returns the response's status.

type GetOutputInfoRequest

type GetOutputInfoRequest struct {
	// Output name.
	// Required: Yes.
	OutputName string `json:"outputName"`
	// contains filtered or unexported fields
}

GetOutputInfoRequest : Get information about a single output.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getoutputinfo

func NewGetOutputInfoRequest

func NewGetOutputInfoRequest(outputName string) GetOutputInfoRequest

NewGetOutputInfoRequest returns a new GetOutputInfoRequest.

func (GetOutputInfoRequest) ID

func (r GetOutputInfoRequest) ID() string

ID returns the request's message ID.

func (GetOutputInfoRequest) Receive

Receive waits for the response.

func (*GetOutputInfoRequest) Send

func (r *GetOutputInfoRequest) Send(c Client) error

Send sends the request.

func (GetOutputInfoRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetOutputInfoRequest) Type

func (r GetOutputInfoRequest) Type() string

Type returns the request's message type.

type GetOutputInfoResponse

type GetOutputInfoResponse struct {
	// Output info.
	// Required: Yes.
	OutputInfo map[string]interface{} `json:"outputInfo"`
	// contains filtered or unexported fields
}

GetOutputInfoResponse : Response for GetOutputInfoRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getoutputinfo

func (GetOutputInfoResponse) Error

func (r GetOutputInfoResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetOutputInfoResponse) ID

func (r GetOutputInfoResponse) ID() string

ID returns the response's message ID.

func (GetOutputInfoResponse) Status

func (r GetOutputInfoResponse) Status() string

Status returns the response's status.

type GetPreviewSceneRequest

type GetPreviewSceneRequest struct {
	// contains filtered or unexported fields
}

GetPreviewSceneRequest : Get the name of the currently previewed scene and its list of sources. Will return an `error` if Studio Mode is not enabled.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getpreviewscene

func NewGetPreviewSceneRequest

func NewGetPreviewSceneRequest() GetPreviewSceneRequest

NewGetPreviewSceneRequest returns a new GetPreviewSceneRequest.

func (GetPreviewSceneRequest) ID

func (r GetPreviewSceneRequest) ID() string

ID returns the request's message ID.

func (GetPreviewSceneRequest) Receive

Receive waits for the response.

func (*GetPreviewSceneRequest) Send

func (r *GetPreviewSceneRequest) Send(c Client) error

Send sends the request.

func (GetPreviewSceneRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetPreviewSceneRequest) Type

func (r GetPreviewSceneRequest) Type() string

Type returns the request's message type.

type GetPreviewSceneResponse

type GetPreviewSceneResponse struct {
	// The name of the active preview scene.
	// Required: Yes.
	Name string `json:"name"`
	// Required: Yes.
	Sources []*SceneItem `json:"sources"`
	// contains filtered or unexported fields
}

GetPreviewSceneResponse : Response for GetPreviewSceneRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getpreviewscene

func (GetPreviewSceneResponse) Error

func (r GetPreviewSceneResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetPreviewSceneResponse) ID

func (r GetPreviewSceneResponse) ID() string

ID returns the response's message ID.

func (GetPreviewSceneResponse) Status

func (r GetPreviewSceneResponse) Status() string

Status returns the response's status.

type GetRecordingFolderRequest

type GetRecordingFolderRequest struct {
	// contains filtered or unexported fields
}

GetRecordingFolderRequest : Get the path of the current recording folder.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getrecordingfolder

func NewGetRecordingFolderRequest

func NewGetRecordingFolderRequest() GetRecordingFolderRequest

NewGetRecordingFolderRequest returns a new GetRecordingFolderRequest.

func (GetRecordingFolderRequest) ID

func (r GetRecordingFolderRequest) ID() string

ID returns the request's message ID.

func (GetRecordingFolderRequest) Receive

Receive waits for the response.

func (*GetRecordingFolderRequest) Send

Send sends the request.

func (GetRecordingFolderRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetRecordingFolderRequest) Type

func (r GetRecordingFolderRequest) Type() string

Type returns the request's message type.

type GetRecordingFolderResponse

type GetRecordingFolderResponse struct {
	// Path of the recording folder.
	// Required: Yes.
	RecFolder string `json:"rec-folder"`
	// contains filtered or unexported fields
}

GetRecordingFolderResponse : Response for GetRecordingFolderRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getrecordingfolder

func (GetRecordingFolderResponse) Error

func (r GetRecordingFolderResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetRecordingFolderResponse) ID

func (r GetRecordingFolderResponse) ID() string

ID returns the response's message ID.

func (GetRecordingFolderResponse) Status

func (r GetRecordingFolderResponse) Status() string

Status returns the response's status.

type GetRecordingStatusRequest

type GetRecordingStatusRequest struct {
	// contains filtered or unexported fields
}

GetRecordingStatusRequest : Get current recording status.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getrecordingstatus

func NewGetRecordingStatusRequest

func NewGetRecordingStatusRequest() GetRecordingStatusRequest

NewGetRecordingStatusRequest returns a new GetRecordingStatusRequest.

func (GetRecordingStatusRequest) ID

func (r GetRecordingStatusRequest) ID() string

ID returns the request's message ID.

func (GetRecordingStatusRequest) Receive

Receive waits for the response.

func (*GetRecordingStatusRequest) Send

Send sends the request.

func (GetRecordingStatusRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetRecordingStatusRequest) Type

func (r GetRecordingStatusRequest) Type() string

Type returns the request's message type.

type GetRecordingStatusResponse

type GetRecordingStatusResponse struct {
	// Current recording status.
	// Required: Yes.
	IsRecording bool `json:"isRecording"`
	// Whether the recording is paused or not.
	// Required: Yes.
	IsRecordingPaused bool `json:"isRecordingPaused"`
	// Time elapsed since recording started (only present if currently recording).
	// Required: No.
	RecordTimecode string `json:"recordTimecode"`
	// Absolute path to the recording file (only present if currently recording).
	// Required: No.
	RecordingFilename string `json:"recordingFilename"`
	// contains filtered or unexported fields
}

GetRecordingStatusResponse : Response for GetRecordingStatusRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getrecordingstatus

func (GetRecordingStatusResponse) Error

func (r GetRecordingStatusResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetRecordingStatusResponse) ID

func (r GetRecordingStatusResponse) ID() string

ID returns the response's message ID.

func (GetRecordingStatusResponse) Status

func (r GetRecordingStatusResponse) Status() string

Status returns the response's status.

type GetReplayBufferStatusRequest

type GetReplayBufferStatusRequest struct {
	// contains filtered or unexported fields
}

GetReplayBufferStatusRequest : Get the status of the OBS replay buffer.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getreplaybufferstatus

func NewGetReplayBufferStatusRequest

func NewGetReplayBufferStatusRequest() GetReplayBufferStatusRequest

NewGetReplayBufferStatusRequest returns a new GetReplayBufferStatusRequest.

func (GetReplayBufferStatusRequest) ID

func (r GetReplayBufferStatusRequest) ID() string

ID returns the request's message ID.

func (GetReplayBufferStatusRequest) Receive

Receive waits for the response.

func (*GetReplayBufferStatusRequest) Send

Send sends the request.

func (GetReplayBufferStatusRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetReplayBufferStatusRequest) Type

func (r GetReplayBufferStatusRequest) Type() string

Type returns the request's message type.

type GetReplayBufferStatusResponse

type GetReplayBufferStatusResponse struct {
	// Current recording status.
	// Required: Yes.
	IsReplayBufferActive bool `json:"isReplayBufferActive"`
	// contains filtered or unexported fields
}

GetReplayBufferStatusResponse : Response for GetReplayBufferStatusRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getreplaybufferstatus

func (GetReplayBufferStatusResponse) Error

func (r GetReplayBufferStatusResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetReplayBufferStatusResponse) ID

func (r GetReplayBufferStatusResponse) ID() string

ID returns the response's message ID.

func (GetReplayBufferStatusResponse) Status

func (r GetReplayBufferStatusResponse) Status() string

Status returns the response's status.

type GetSceneItemListRequest

type GetSceneItemListRequest struct {
	// Name of the scene to get the list of scene items from.
	// Defaults to the current scene if not specified.
	// Required: No.
	SceneName string `json:"sceneName"`
	// contains filtered or unexported fields
}

GetSceneItemListRequest : Get a list of all scene items in a scene.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsceneitemlist

func NewGetSceneItemListRequest

func NewGetSceneItemListRequest(sceneName string) GetSceneItemListRequest

NewGetSceneItemListRequest returns a new GetSceneItemListRequest.

func (GetSceneItemListRequest) ID

func (r GetSceneItemListRequest) ID() string

ID returns the request's message ID.

func (GetSceneItemListRequest) Receive

Receive waits for the response.

func (*GetSceneItemListRequest) Send

Send sends the request.

func (GetSceneItemListRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSceneItemListRequest) Type

func (r GetSceneItemListRequest) Type() string

Type returns the request's message type.

type GetSceneItemListResponse

type GetSceneItemListResponse struct {
	// Name of the requested (or current) scene.
	// Required: Yes.
	SceneName string `json:"sceneName"`
	// Array of scene items.
	// Required: Yes.
	SceneItems []map[string]interface{} `json:"sceneItems"`
	// Unique item id of the source item.
	// Required: Yes.
	SceneItemsItemID int `json:"sceneItems.*.itemId"`
	// ID if the scene item's source.
	// For example `vlc_source` or `image_source`.
	// Required: Yes.
	SceneItemsSourceKind string `json:"sceneItems.*.sourceKind"`
	// Name of the scene item's source.
	// Required: Yes.
	SceneItemsSourceName string `json:"sceneItems.*.sourceName"`
	// Type of the scene item's source.
	// Either `input`, `group`, or `scene`.
	// Required: Yes.
	SceneItemsSourceType string `json:"sceneItems.*.sourceType"`
	// contains filtered or unexported fields
}

GetSceneItemListResponse : Response for GetSceneItemListRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsceneitemlist

func (GetSceneItemListResponse) Error

func (r GetSceneItemListResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSceneItemListResponse) ID

func (r GetSceneItemListResponse) ID() string

ID returns the response's message ID.

func (GetSceneItemListResponse) Status

func (r GetSceneItemListResponse) Status() string

Status returns the response's status.

type GetSceneItemPropertiesRequest

type GetSceneItemPropertiesRequest struct {
	// Name of the scene the scene item belongs to.
	// Defaults to the current scene.
	// Required: No.
	SceneName string `json:"scene-name"`
	// Scene Item name (if this field is a string) or specification (if it is an object).
	// Required: Yes.
	Item interface{} `json:"item"`
	// Scene Item name (if the `item` field is an object).
	// Required: No.
	ItemName string `json:"item.name"`
	// Scene Item ID (if the `item` field is an object).
	// Required: No.
	ItemID int `json:"item.id"`
	// contains filtered or unexported fields
}

GetSceneItemPropertiesRequest : Gets the scene specific properties of the specified source item. Coordinates are relative to the item's parent (the scene or group it belongs to).

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsceneitemproperties

func NewGetSceneItemPropertiesRequest

func NewGetSceneItemPropertiesRequest(
	sceneName string,
	item interface{},
	itemName string,
	itemID int,
) GetSceneItemPropertiesRequest

NewGetSceneItemPropertiesRequest returns a new GetSceneItemPropertiesRequest.

func (GetSceneItemPropertiesRequest) ID

func (r GetSceneItemPropertiesRequest) ID() string

ID returns the request's message ID.

func (GetSceneItemPropertiesRequest) Receive

Receive waits for the response.

func (*GetSceneItemPropertiesRequest) Send

Send sends the request.

func (GetSceneItemPropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSceneItemPropertiesRequest) Type

func (r GetSceneItemPropertiesRequest) Type() string

Type returns the request's message type.

type GetSceneItemPropertiesResponse

type GetSceneItemPropertiesResponse struct {
	// Scene Item name.
	// Required: Yes.
	Name string `json:"name"`
	// Scene Item ID.
	// Required: Yes.
	ItemID int `json:"itemId"`
	// The x position of the source from the left.
	// Required: Yes.
	PositionX float64 `json:"position.x"`
	// The y position of the source from the top.
	// Required: Yes.
	PositionY float64 `json:"position.y"`
	// The point on the source that the item is manipulated from.
	// The sum of 1=Left or 2=Right, and 4=Top or 8=Bottom, or omit to center on that axis.
	// Required: Yes.
	PositionAlignment int `json:"position.alignment"`
	// The clockwise rotation of the item in degrees around the point of alignment.
	// Required: Yes.
	Rotation float64 `json:"rotation"`
	// The x-scale factor of the source.
	// Required: Yes.
	ScaleX float64 `json:"scale.x"`
	// The y-scale factor of the source.
	// Required: Yes.
	ScaleY float64 `json:"scale.y"`
	// The scale filter of the source.
	// Can be "OBS_SCALE_DISABLE", "OBS_SCALE_POINT", "OBS_SCALE_BICUBIC", "OBS_SCALE_BILINEAR", "OBS_SCALE_LANCZOS" or "OBS_SCALE_AREA".
	// Required: Yes.
	ScaleFilter string `json:"scale.filter"`
	// The number of pixels cropped off the top of the source before scaling.
	// Required: Yes.
	CropTop int `json:"crop.top"`
	// The number of pixels cropped off the right of the source before scaling.
	// Required: Yes.
	CropRight int `json:"crop.right"`
	// The number of pixels cropped off the bottom of the source before scaling.
	// Required: Yes.
	CropBottom int `json:"crop.bottom"`
	// The number of pixels cropped off the left of the source before scaling.
	// Required: Yes.
	CropLeft int `json:"crop.left"`
	// If the source is visible.
	// Required: Yes.
	Visible bool `json:"visible"`
	// If the source is muted.
	// Required: Yes.
	Muted bool `json:"muted"`
	// If the source's transform is locked.
	// Required: Yes.
	Locked bool `json:"locked"`
	// Type of bounding box.
	// Can be "OBS_BOUNDS_STRETCH", "OBS_BOUNDS_SCALE_INNER", "OBS_BOUNDS_SCALE_OUTER", "OBS_BOUNDS_SCALE_TO_WIDTH", "OBS_BOUNDS_SCALE_TO_HEIGHT", "OBS_BOUNDS_MAX_ONLY" or "OBS_BOUNDS_NONE".
	// Required: Yes.
	BoundsType string `json:"bounds.type"`
	// Alignment of the bounding box.
	// Required: Yes.
	BoundsAlignment int `json:"bounds.alignment"`
	// Width of the bounding box.
	// Required: Yes.
	BoundsX float64 `json:"bounds.x"`
	// Height of the bounding box.
	// Required: Yes.
	BoundsY float64 `json:"bounds.y"`
	// Base width (without scaling) of the source.
	// Required: Yes.
	SourceWidth int `json:"sourceWidth"`
	// Base source (without scaling) of the source.
	// Required: Yes.
	SourceHeight int `json:"sourceHeight"`
	// Scene item width (base source width multiplied by the horizontal scaling factor).
	// Required: Yes.
	Width float64 `json:"width"`
	// Scene item height (base source height multiplied by the vertical scaling factor).
	// Required: Yes.
	Height float64 `json:"height"`
	// Name of the item's parent (if this item belongs to a group).
	// Required: No.
	ParentGroupName string `json:"parentGroupName"`
	// List of children (if this item is a group).
	// Required: No.
	GroupChildren []*SceneItemTransform `json:"groupChildren"`
	// contains filtered or unexported fields
}

GetSceneItemPropertiesResponse : Response for GetSceneItemPropertiesRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsceneitemproperties

func (GetSceneItemPropertiesResponse) Error

func (r GetSceneItemPropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSceneItemPropertiesResponse) ID

func (r GetSceneItemPropertiesResponse) ID() string

ID returns the response's message ID.

func (GetSceneItemPropertiesResponse) Status

func (r GetSceneItemPropertiesResponse) Status() string

Status returns the response's status.

type GetSceneListRequest

type GetSceneListRequest struct {
	// contains filtered or unexported fields
}

GetSceneListRequest : Get a list of scenes in the currently active profile.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getscenelist

func NewGetSceneListRequest

func NewGetSceneListRequest() GetSceneListRequest

NewGetSceneListRequest returns a new GetSceneListRequest.

func (GetSceneListRequest) ID

func (r GetSceneListRequest) ID() string

ID returns the request's message ID.

func (GetSceneListRequest) Receive

Receive waits for the response.

func (*GetSceneListRequest) Send

func (r *GetSceneListRequest) Send(c Client) error

Send sends the request.

func (GetSceneListRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSceneListRequest) Type

func (r GetSceneListRequest) Type() string

Type returns the request's message type.

type GetSceneListResponse

type GetSceneListResponse struct {
	// Name of the currently active scene.
	// Required: Yes.
	CurrentScene string `json:"current-scene"`
	// Ordered list of the current profile's scenes (See [GetCurrentScene](#getcurrentscene) for more information).
	// Required: Yes.
	Scenes []*Scene `json:"scenes"`
	// contains filtered or unexported fields
}

GetSceneListResponse : Response for GetSceneListRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getscenelist

func (GetSceneListResponse) Error

func (r GetSceneListResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSceneListResponse) ID

func (r GetSceneListResponse) ID() string

ID returns the response's message ID.

func (GetSceneListResponse) Status

func (r GetSceneListResponse) Status() string

Status returns the response's status.

type GetSceneTransitionOverrideRequest

type GetSceneTransitionOverrideRequest struct {
	// Name of the scene to switch to.
	// Required: Yes.
	SceneName string `json:"sceneName"`
	// contains filtered or unexported fields
}

GetSceneTransitionOverrideRequest : Get the current scene transition override.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getscenetransitionoverride

func NewGetSceneTransitionOverrideRequest

func NewGetSceneTransitionOverrideRequest(sceneName string) GetSceneTransitionOverrideRequest

NewGetSceneTransitionOverrideRequest returns a new GetSceneTransitionOverrideRequest.

func (GetSceneTransitionOverrideRequest) ID

func (r GetSceneTransitionOverrideRequest) ID() string

ID returns the request's message ID.

func (GetSceneTransitionOverrideRequest) Receive

Receive waits for the response.

func (*GetSceneTransitionOverrideRequest) Send

Send sends the request.

func (GetSceneTransitionOverrideRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSceneTransitionOverrideRequest) Type

func (r GetSceneTransitionOverrideRequest) Type() string

Type returns the request's message type.

type GetSceneTransitionOverrideResponse

type GetSceneTransitionOverrideResponse struct {
	// Name of the current overriding transition.
	// Empty string if no override is set.
	// Required: Yes.
	TransitionName string `json:"transitionName"`
	// Transition duration.
	// `-1` if no override is set.
	// Required: Yes.
	TransitionDuration int `json:"transitionDuration"`
	// contains filtered or unexported fields
}

GetSceneTransitionOverrideResponse : Response for GetSceneTransitionOverrideRequest.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getscenetransitionoverride

func (GetSceneTransitionOverrideResponse) Error

func (r GetSceneTransitionOverrideResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSceneTransitionOverrideResponse) ID

func (r GetSceneTransitionOverrideResponse) ID() string

ID returns the response's message ID.

func (GetSceneTransitionOverrideResponse) Status

func (r GetSceneTransitionOverrideResponse) Status() string

Status returns the response's status.

type GetSourceActiveRequest

type GetSourceActiveRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetSourceActiveRequest : Get the source's active status of a specified source (if it is showing in the final mix).

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourceactive

func NewGetSourceActiveRequest

func NewGetSourceActiveRequest(sourceName string) GetSourceActiveRequest

NewGetSourceActiveRequest returns a new GetSourceActiveRequest.

func (GetSourceActiveRequest) ID

func (r GetSourceActiveRequest) ID() string

ID returns the request's message ID.

func (GetSourceActiveRequest) Receive

Receive waits for the response.

func (*GetSourceActiveRequest) Send

func (r *GetSourceActiveRequest) Send(c Client) error

Send sends the request.

func (GetSourceActiveRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSourceActiveRequest) Type

func (r GetSourceActiveRequest) Type() string

Type returns the request's message type.

type GetSourceActiveResponse

type GetSourceActiveResponse struct {
	// Source active status of the source.
	// Required: Yes.
	SourceActive bool `json:"sourceActive"`
	// contains filtered or unexported fields
}

GetSourceActiveResponse : Response for GetSourceActiveRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourceactive

func (GetSourceActiveResponse) Error

func (r GetSourceActiveResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSourceActiveResponse) ID

func (r GetSourceActiveResponse) ID() string

ID returns the response's message ID.

func (GetSourceActiveResponse) Status

func (r GetSourceActiveResponse) Status() string

Status returns the response's status.

type GetSourceDefaultSettingsRequest

type GetSourceDefaultSettingsRequest struct {
	// Source kind.
	// Also called "source id" in libobs terminology.
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

GetSourceDefaultSettingsRequest : Get the default settings for a given source type.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcedefaultsettings

func NewGetSourceDefaultSettingsRequest

func NewGetSourceDefaultSettingsRequest(sourceKind string) GetSourceDefaultSettingsRequest

NewGetSourceDefaultSettingsRequest returns a new GetSourceDefaultSettingsRequest.

func (GetSourceDefaultSettingsRequest) ID

func (r GetSourceDefaultSettingsRequest) ID() string

ID returns the request's message ID.

func (GetSourceDefaultSettingsRequest) Receive

Receive waits for the response.

func (*GetSourceDefaultSettingsRequest) Send

Send sends the request.

func (GetSourceDefaultSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSourceDefaultSettingsRequest) Type

func (r GetSourceDefaultSettingsRequest) Type() string

Type returns the request's message type.

type GetSourceDefaultSettingsResponse

type GetSourceDefaultSettingsResponse struct {
	// Source kind.
	// Same value as the `sourceKind` parameter.
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// Settings object for source.
	// Required: Yes.
	DefaultSettings map[string]interface{} `json:"defaultSettings"`
	// contains filtered or unexported fields
}

GetSourceDefaultSettingsResponse : Response for GetSourceDefaultSettingsRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcedefaultsettings

func (GetSourceDefaultSettingsResponse) Error

func (r GetSourceDefaultSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSourceDefaultSettingsResponse) ID

func (r GetSourceDefaultSettingsResponse) ID() string

ID returns the response's message ID.

func (GetSourceDefaultSettingsResponse) Status

func (r GetSourceDefaultSettingsResponse) Status() string

Status returns the response's status.

type GetSourceFilterInfoRequest

type GetSourceFilterInfoRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Source filter name.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// contains filtered or unexported fields
}

GetSourceFilterInfoRequest : List filters applied to a source.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcefilterinfo

func NewGetSourceFilterInfoRequest

func NewGetSourceFilterInfoRequest(
	sourceName string,
	filterName string,
) GetSourceFilterInfoRequest

NewGetSourceFilterInfoRequest returns a new GetSourceFilterInfoRequest.

func (GetSourceFilterInfoRequest) ID

func (r GetSourceFilterInfoRequest) ID() string

ID returns the request's message ID.

func (GetSourceFilterInfoRequest) Receive

Receive waits for the response.

func (*GetSourceFilterInfoRequest) Send

Send sends the request.

func (GetSourceFilterInfoRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSourceFilterInfoRequest) Type

func (r GetSourceFilterInfoRequest) Type() string

Type returns the request's message type.

type GetSourceFilterInfoResponse

type GetSourceFilterInfoResponse struct {
	// Filter status (enabled or not).
	// Required: Yes.
	Enabled bool `json:"enabled"`
	// Filter type.
	// Required: Yes.
	Type_ string `json:"type"`
	// Filter name.
	// Required: Yes.
	Name string `json:"name"`
	// Filter settings.
	// Required: Yes.
	Settings map[string]interface{} `json:"settings"`
	// contains filtered or unexported fields
}

GetSourceFilterInfoResponse : Response for GetSourceFilterInfoRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcefilterinfo

func (GetSourceFilterInfoResponse) Error

func (r GetSourceFilterInfoResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSourceFilterInfoResponse) ID

func (r GetSourceFilterInfoResponse) ID() string

ID returns the response's message ID.

func (GetSourceFilterInfoResponse) Status

func (r GetSourceFilterInfoResponse) Status() string

Status returns the response's status.

type GetSourceFiltersRequest

type GetSourceFiltersRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

GetSourceFiltersRequest : List filters applied to a source.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcefilters

func NewGetSourceFiltersRequest

func NewGetSourceFiltersRequest(sourceName string) GetSourceFiltersRequest

NewGetSourceFiltersRequest returns a new GetSourceFiltersRequest.

func (GetSourceFiltersRequest) ID

func (r GetSourceFiltersRequest) ID() string

ID returns the request's message ID.

func (GetSourceFiltersRequest) Receive

Receive waits for the response.

func (*GetSourceFiltersRequest) Send

Send sends the request.

func (GetSourceFiltersRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSourceFiltersRequest) Type

func (r GetSourceFiltersRequest) Type() string

Type returns the request's message type.

type GetSourceFiltersResponse

type GetSourceFiltersResponse struct {
	// List of filters for the specified source.
	// Required: Yes.
	Filters []map[string]interface{} `json:"filters"`
	// Filter status (enabled or not).
	// Required: Yes.
	FiltersEnabled bool `json:"filters.*.enabled"`
	// Filter type.
	// Required: Yes.
	FiltersType string `json:"filters.*.type"`
	// Filter name.
	// Required: Yes.
	FiltersName string `json:"filters.*.name"`
	// Filter settings.
	// Required: Yes.
	FiltersSettings map[string]interface{} `json:"filters.*.settings"`
	// contains filtered or unexported fields
}

GetSourceFiltersResponse : Response for GetSourceFiltersRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcefilters

func (GetSourceFiltersResponse) Error

func (r GetSourceFiltersResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSourceFiltersResponse) ID

func (r GetSourceFiltersResponse) ID() string

ID returns the response's message ID.

func (GetSourceFiltersResponse) Status

func (r GetSourceFiltersResponse) Status() string

Status returns the response's status.

type GetSourceSettingsRequest

type GetSourceSettingsRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Type of the specified source.
	// Useful for type-checking if you expect a specific settings schema.
	// Required: No.
	SourceType string `json:"sourceType"`
	// contains filtered or unexported fields
}

GetSourceSettingsRequest : Get settings of the specified source.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcesettings

func NewGetSourceSettingsRequest

func NewGetSourceSettingsRequest(
	sourceName string,
	sourceType string,
) GetSourceSettingsRequest

NewGetSourceSettingsRequest returns a new GetSourceSettingsRequest.

func (GetSourceSettingsRequest) ID

func (r GetSourceSettingsRequest) ID() string

ID returns the request's message ID.

func (GetSourceSettingsRequest) Receive

Receive waits for the response.

func (*GetSourceSettingsRequest) Send

Send sends the request.

func (GetSourceSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSourceSettingsRequest) Type

func (r GetSourceSettingsRequest) Type() string

Type returns the request's message type.

type GetSourceSettingsResponse

type GetSourceSettingsResponse struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Type of the specified source.
	// Required: Yes.
	SourceType string `json:"sourceType"`
	// Source settings (varies between source types, may require some probing around).
	// Required: Yes.
	SourceSettings map[string]interface{} `json:"sourceSettings"`
	// contains filtered or unexported fields
}

GetSourceSettingsResponse : Response for GetSourceSettingsRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcesettings

func (GetSourceSettingsResponse) Error

func (r GetSourceSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSourceSettingsResponse) ID

func (r GetSourceSettingsResponse) ID() string

ID returns the response's message ID.

func (GetSourceSettingsResponse) Status

func (r GetSourceSettingsResponse) Status() string

Status returns the response's status.

type GetSourceTypesListRequest

type GetSourceTypesListRequest struct {
	// contains filtered or unexported fields
}

GetSourceTypesListRequest : Get a list of all available sources types.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcetypeslist

func NewGetSourceTypesListRequest

func NewGetSourceTypesListRequest() GetSourceTypesListRequest

NewGetSourceTypesListRequest returns a new GetSourceTypesListRequest.

func (GetSourceTypesListRequest) ID

func (r GetSourceTypesListRequest) ID() string

ID returns the request's message ID.

func (GetSourceTypesListRequest) Receive

Receive waits for the response.

func (*GetSourceTypesListRequest) Send

Send sends the request.

func (GetSourceTypesListRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSourceTypesListRequest) Type

func (r GetSourceTypesListRequest) Type() string

Type returns the request's message type.

type GetSourceTypesListResponse

type GetSourceTypesListResponse struct {
	// Array of source types.
	// Required: Yes.
	Types []map[string]interface{} `json:"types"`
	// Non-unique internal source type ID.
	// Required: Yes.
	TypesTypeID string `json:"types.*.typeId"`
	// Display name of the source type.
	// Required: Yes.
	TypesDisplayName string `json:"types.*.displayName"`
	// Type.
	// Value is one of the following: "input", "filter", "transition" or "other".
	// Required: Yes.
	TypesType string `json:"types.*.type"`
	// Default settings of this source type.
	// Required: Yes.
	TypesDefaultSettings map[string]interface{} `json:"types.*.defaultSettings"`
	// Source type capabilities.
	// Required: Yes.
	TypesCaps map[string]interface{} `json:"types.*.caps"`
	// True if source of this type provide frames asynchronously.
	// Required: Yes.
	TypesCapsIsAsync bool `json:"types.*.caps.isAsync"`
	// True if sources of this type provide video.
	// Required: Yes.
	TypesCapsHasVideo bool `json:"types.*.caps.hasVideo"`
	// True if sources of this type provide audio.
	// Required: Yes.
	TypesCapsHasAudio bool `json:"types.*.caps.hasAudio"`
	// True if interaction with this sources of this type is possible.
	// Required: Yes.
	TypesCapsCanInteract bool `json:"types.*.caps.canInteract"`
	// True if sources of this type composite one or more sub-sources.
	// Required: Yes.
	TypesCapsIsComposite bool `json:"types.*.caps.isComposite"`
	// True if sources of this type should not be fully duplicated.
	// Required: Yes.
	TypesCapsDoNotDuplicate bool `json:"types.*.caps.doNotDuplicate"`
	// True if sources of this type may cause a feedback loop if it's audio is monitored and shouldn't be.
	// Required: Yes.
	TypesCapsDoNotSelfMonitor bool `json:"types.*.caps.doNotSelfMonitor"`
	// contains filtered or unexported fields
}

GetSourceTypesListResponse : Response for GetSourceTypesListRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourcetypeslist

func (GetSourceTypesListResponse) Error

func (r GetSourceTypesListResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSourceTypesListResponse) ID

func (r GetSourceTypesListResponse) ID() string

ID returns the response's message ID.

func (GetSourceTypesListResponse) Status

func (r GetSourceTypesListResponse) Status() string

Status returns the response's status.

type GetSourcesListRequest

type GetSourcesListRequest struct {
	// contains filtered or unexported fields
}

GetSourcesListRequest : List all sources available in the running OBS instance.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourceslist

func NewGetSourcesListRequest

func NewGetSourcesListRequest() GetSourcesListRequest

NewGetSourcesListRequest returns a new GetSourcesListRequest.

func (GetSourcesListRequest) ID

func (r GetSourcesListRequest) ID() string

ID returns the request's message ID.

func (GetSourcesListRequest) Receive

Receive waits for the response.

func (*GetSourcesListRequest) Send

func (r *GetSourcesListRequest) Send(c Client) error

Send sends the request.

func (GetSourcesListRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSourcesListRequest) Type

func (r GetSourcesListRequest) Type() string

Type returns the request's message type.

type GetSourcesListResponse

type GetSourcesListResponse struct {
	// Array of sources.
	// Required: Yes.
	Sources []map[string]interface{} `json:"sources"`
	// Unique source name.
	// Required: Yes.
	SourcesName string `json:"sources.*.name"`
	// Non-unique source internal type (a.k.a kind).
	// Required: Yes.
	SourcesTypeID string `json:"sources.*.typeId"`
	// Source type.
	// Value is one of the following: "input", "filter", "transition", "scene" or "unknown".
	// Required: Yes.
	SourcesType string `json:"sources.*.type"`
	// contains filtered or unexported fields
}

GetSourcesListResponse : Response for GetSourcesListRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsourceslist

func (GetSourcesListResponse) Error

func (r GetSourcesListResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSourcesListResponse) ID

func (r GetSourcesListResponse) ID() string

ID returns the response's message ID.

func (GetSourcesListResponse) Status

func (r GetSourcesListResponse) Status() string

Status returns the response's status.

type GetSpecialSourcesRequest

type GetSpecialSourcesRequest struct {
	// contains filtered or unexported fields
}

GetSpecialSourcesRequest : Get configured special sources like Desktop Audio and Mic/Aux sources.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getspecialsources

func NewGetSpecialSourcesRequest

func NewGetSpecialSourcesRequest() GetSpecialSourcesRequest

NewGetSpecialSourcesRequest returns a new GetSpecialSourcesRequest.

func (GetSpecialSourcesRequest) ID

func (r GetSpecialSourcesRequest) ID() string

ID returns the request's message ID.

func (GetSpecialSourcesRequest) Receive

Receive waits for the response.

func (*GetSpecialSourcesRequest) Send

Send sends the request.

func (GetSpecialSourcesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSpecialSourcesRequest) Type

func (r GetSpecialSourcesRequest) Type() string

Type returns the request's message type.

type GetSpecialSourcesResponse

type GetSpecialSourcesResponse struct {
	// Name of the first Desktop Audio capture source.
	// Required: No.
	Desktop1 string `json:"desktop-1"`
	// Name of the second Desktop Audio capture source.
	// Required: No.
	Desktop2 string `json:"desktop-2"`
	// Name of the first Mic/Aux input source.
	// Required: No.
	Mic1 string `json:"mic-1"`
	// Name of the second Mic/Aux input source.
	// Required: No.
	Mic2 string `json:"mic-2"`
	// NAme of the third Mic/Aux input source.
	// Required: No.
	Mic3 string `json:"mic-3"`
	// contains filtered or unexported fields
}

GetSpecialSourcesResponse : Response for GetSpecialSourcesRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getspecialsources

func (GetSpecialSourcesResponse) Error

func (r GetSpecialSourcesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSpecialSourcesResponse) ID

func (r GetSpecialSourcesResponse) ID() string

ID returns the response's message ID.

func (GetSpecialSourcesResponse) Status

func (r GetSpecialSourcesResponse) Status() string

Status returns the response's status.

type GetStatsRequest

type GetStatsRequest struct {
	// contains filtered or unexported fields
}

GetStatsRequest : Get OBS stats (almost the same info as provided in OBS' stats window).

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstats

func NewGetStatsRequest

func NewGetStatsRequest() GetStatsRequest

NewGetStatsRequest returns a new GetStatsRequest.

func (GetStatsRequest) ID

func (r GetStatsRequest) ID() string

ID returns the request's message ID.

func (GetStatsRequest) Receive

func (r GetStatsRequest) Receive() (GetStatsResponse, error)

Receive waits for the response.

func (*GetStatsRequest) Send

func (r *GetStatsRequest) Send(c Client) error

Send sends the request.

func (GetStatsRequest) SendReceive

func (r GetStatsRequest) SendReceive(c Client) (GetStatsResponse, error)

SendReceive sends the request then immediately waits for the response.

func (GetStatsRequest) Type

func (r GetStatsRequest) Type() string

Type returns the request's message type.

type GetStatsResponse

type GetStatsResponse struct {
	// [OBS stats](#obsstats).
	// Required: Yes.
	Stats *OBSStats `json:"stats"`
	// contains filtered or unexported fields
}

GetStatsResponse : Response for GetStatsRequest.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstats

func (GetStatsResponse) Error

func (r GetStatsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetStatsResponse) ID

func (r GetStatsResponse) ID() string

ID returns the response's message ID.

func (GetStatsResponse) Status

func (r GetStatsResponse) Status() string

Status returns the response's status.

type GetStreamSettingsRequest

type GetStreamSettingsRequest struct {
	// contains filtered or unexported fields
}

GetStreamSettingsRequest : Get the current streaming server settings.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstreamsettings

func NewGetStreamSettingsRequest

func NewGetStreamSettingsRequest() GetStreamSettingsRequest

NewGetStreamSettingsRequest returns a new GetStreamSettingsRequest.

func (GetStreamSettingsRequest) ID

func (r GetStreamSettingsRequest) ID() string

ID returns the request's message ID.

func (GetStreamSettingsRequest) Receive

Receive waits for the response.

func (*GetStreamSettingsRequest) Send

Send sends the request.

func (GetStreamSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetStreamSettingsRequest) Type

func (r GetStreamSettingsRequest) Type() string

Type returns the request's message type.

type GetStreamSettingsResponse

type GetStreamSettingsResponse struct {
	// The type of streaming service configuration.
	// Possible values: 'rtmp_custom' or 'rtmp_common'.
	// Required: Yes.
	Type_ string `json:"type"`
	// Stream settings object.
	// Required: Yes.
	Settings map[string]interface{} `json:"settings"`
	// The publish URL.
	// Required: Yes.
	SettingsServer string `json:"settings.server"`
	// The publish key of the stream.
	// Required: Yes.
	SettingsKey string `json:"settings.key"`
	// Indicates whether authentication should be used when connecting to the streaming server.
	// Required: Yes.
	SettingsUseAuth bool `json:"settings.use_auth"`
	// The username to use when accessing the streaming server.
	// Only present if `use_auth` is `true`.
	// Required: Yes.
	SettingsUsername string `json:"settings.username"`
	// The password to use when accessing the streaming server.
	// Only present if `use_auth` is `true`.
	// Required: Yes.
	SettingsPassword string `json:"settings.password"`
	// contains filtered or unexported fields
}

GetStreamSettingsResponse : Response for GetStreamSettingsRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstreamsettings

func (GetStreamSettingsResponse) Error

func (r GetStreamSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetStreamSettingsResponse) ID

func (r GetStreamSettingsResponse) ID() string

ID returns the response's message ID.

func (GetStreamSettingsResponse) Status

func (r GetStreamSettingsResponse) Status() string

Status returns the response's status.

type GetStreamingStatusRequest

type GetStreamingStatusRequest struct {
	// contains filtered or unexported fields
}

GetStreamingStatusRequest : Get current streaming and recording status.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstreamingstatus

func NewGetStreamingStatusRequest

func NewGetStreamingStatusRequest() GetStreamingStatusRequest

NewGetStreamingStatusRequest returns a new GetStreamingStatusRequest.

func (GetStreamingStatusRequest) ID

func (r GetStreamingStatusRequest) ID() string

ID returns the request's message ID.

func (GetStreamingStatusRequest) Receive

Receive waits for the response.

func (*GetStreamingStatusRequest) Send

Send sends the request.

func (GetStreamingStatusRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetStreamingStatusRequest) Type

func (r GetStreamingStatusRequest) Type() string

Type returns the request's message type.

type GetStreamingStatusResponse

type GetStreamingStatusResponse struct {
	// Current streaming status.
	// Required: Yes.
	Streaming bool `json:"streaming"`
	// Current recording status.
	// Required: Yes.
	Recording bool `json:"recording"`
	// If recording is paused.
	// Required: Yes.
	RecordingPaused bool `json:"recording-paused"`
	// Current virtual cam status.
	// Required: Yes.
	Virtualcam bool `json:"virtualcam"`
	// Always false.
	// Retrocompatibility with OBSRemote.
	// Required: Yes.
	PreviewOnly bool `json:"preview-only"`
	// Time elapsed since streaming started (only present if currently streaming).
	// Required: No.
	StreamTimecode string `json:"stream-timecode"`
	// Time elapsed since recording started (only present if currently recording).
	// Required: No.
	RecTimecode string `json:"rec-timecode"`
	// Time elapsed since virtual cam started (only present if virtual cam currently active).
	// Required: No.
	VirtualcamTimecode string `json:"virtualcam-timecode"`
	// contains filtered or unexported fields
}

GetStreamingStatusResponse : Response for GetStreamingStatusRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstreamingstatus

func (GetStreamingStatusResponse) Error

func (r GetStreamingStatusResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetStreamingStatusResponse) ID

func (r GetStreamingStatusResponse) ID() string

ID returns the response's message ID.

func (GetStreamingStatusResponse) Status

func (r GetStreamingStatusResponse) Status() string

Status returns the response's status.

type GetStudioModeStatusRequest

type GetStudioModeStatusRequest struct {
	// contains filtered or unexported fields
}

GetStudioModeStatusRequest : Indicates if Studio Mode is currently enabled.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstudiomodestatus

func NewGetStudioModeStatusRequest

func NewGetStudioModeStatusRequest() GetStudioModeStatusRequest

NewGetStudioModeStatusRequest returns a new GetStudioModeStatusRequest.

func (GetStudioModeStatusRequest) ID

func (r GetStudioModeStatusRequest) ID() string

ID returns the request's message ID.

func (GetStudioModeStatusRequest) Receive

Receive waits for the response.

func (*GetStudioModeStatusRequest) Send

Send sends the request.

func (GetStudioModeStatusRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetStudioModeStatusRequest) Type

func (r GetStudioModeStatusRequest) Type() string

Type returns the request's message type.

type GetStudioModeStatusResponse

type GetStudioModeStatusResponse struct {
	// Indicates if Studio Mode is enabled.
	// Required: Yes.
	StudioMode bool `json:"studio-mode"`
	// contains filtered or unexported fields
}

GetStudioModeStatusResponse : Response for GetStudioModeStatusRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getstudiomodestatus

func (GetStudioModeStatusResponse) Error

func (r GetStudioModeStatusResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetStudioModeStatusResponse) ID

func (r GetStudioModeStatusResponse) ID() string

ID returns the response's message ID.

func (GetStudioModeStatusResponse) Status

func (r GetStudioModeStatusResponse) Status() string

Status returns the response's status.

type GetSyncOffsetRequest

type GetSyncOffsetRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// contains filtered or unexported fields
}

GetSyncOffsetRequest : Get the audio sync offset of a specified source.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsyncoffset

func NewGetSyncOffsetRequest

func NewGetSyncOffsetRequest(source string) GetSyncOffsetRequest

NewGetSyncOffsetRequest returns a new GetSyncOffsetRequest.

func (GetSyncOffsetRequest) ID

func (r GetSyncOffsetRequest) ID() string

ID returns the request's message ID.

func (GetSyncOffsetRequest) Receive

Receive waits for the response.

func (*GetSyncOffsetRequest) Send

func (r *GetSyncOffsetRequest) Send(c Client) error

Send sends the request.

func (GetSyncOffsetRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetSyncOffsetRequest) Type

func (r GetSyncOffsetRequest) Type() string

Type returns the request's message type.

type GetSyncOffsetResponse

type GetSyncOffsetResponse struct {
	// Source name.
	// Required: Yes.
	Name string `json:"name"`
	// The audio sync offset (in nanoseconds).
	// Required: Yes.
	Offset int `json:"offset"`
	// contains filtered or unexported fields
}

GetSyncOffsetResponse : Response for GetSyncOffsetRequest.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getsyncoffset

func (GetSyncOffsetResponse) Error

func (r GetSyncOffsetResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetSyncOffsetResponse) ID

func (r GetSyncOffsetResponse) ID() string

ID returns the response's message ID.

func (GetSyncOffsetResponse) Status

func (r GetSyncOffsetResponse) Status() string

Status returns the response's status.

type GetTextFreetype2PropertiesRequest

type GetTextFreetype2PropertiesRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// contains filtered or unexported fields
}

GetTextFreetype2PropertiesRequest : Get the current properties of a Text Freetype 2 source.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettextfreetype2properties

func NewGetTextFreetype2PropertiesRequest

func NewGetTextFreetype2PropertiesRequest(source string) GetTextFreetype2PropertiesRequest

NewGetTextFreetype2PropertiesRequest returns a new GetTextFreetype2PropertiesRequest.

func (GetTextFreetype2PropertiesRequest) ID

func (r GetTextFreetype2PropertiesRequest) ID() string

ID returns the request's message ID.

func (GetTextFreetype2PropertiesRequest) Receive

Receive waits for the response.

func (*GetTextFreetype2PropertiesRequest) Send

Send sends the request.

func (GetTextFreetype2PropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetTextFreetype2PropertiesRequest) Type

func (r GetTextFreetype2PropertiesRequest) Type() string

Type returns the request's message type.

type GetTextFreetype2PropertiesResponse

type GetTextFreetype2PropertiesResponse struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// Gradient top color.
	// Required: Yes.
	Color1 int `json:"color1"`
	// Gradient bottom color.
	// Required: Yes.
	Color2 int `json:"color2"`
	// Custom width (0 to disable).
	// Required: Yes.
	CustomWidth int `json:"custom_width"`
	// Drop shadow.
	// Required: Yes.
	DropShadow bool `json:"drop_shadow"`
	// Holds data for the font.
	// Ex: `"font": { "face": "Arial", "flags": 0, "size": 150, "style": "" }`.
	// Required: Yes.
	Font map[string]interface{} `json:"font"`
	// Font face.
	// Required: Yes.
	FontFace string `json:"font.face"`
	// Font text styling flag.
	// `Bold=1, Italic=2, Bold Italic=3, Underline=5, Strikeout=8`.
	// Required: Yes.
	FontFlags int `json:"font.flags"`
	// Font text size.
	// Required: Yes.
	FontSize int `json:"font.size"`
	// Font Style (unknown function).
	// Required: Yes.
	FontStyle string `json:"font.style"`
	// Read text from the specified file.
	// Required: Yes.
	FromFile bool `json:"from_file"`
	// Chat log.
	// Required: Yes.
	LogMode bool `json:"log_mode"`
	// Outline.
	// Required: Yes.
	Outline bool `json:"outline"`
	// Text content to be displayed.
	// Required: Yes.
	Text string `json:"text"`
	// File path.
	// Required: Yes.
	TextFile string `json:"text_file"`
	// Word wrap.
	// Required: Yes.
	WordWrap bool `json:"word_wrap"`
	// contains filtered or unexported fields
}

GetTextFreetype2PropertiesResponse : Response for GetTextFreetype2PropertiesRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettextfreetype2properties

func (GetTextFreetype2PropertiesResponse) Error

func (r GetTextFreetype2PropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetTextFreetype2PropertiesResponse) ID

func (r GetTextFreetype2PropertiesResponse) ID() string

ID returns the response's message ID.

func (GetTextFreetype2PropertiesResponse) Status

func (r GetTextFreetype2PropertiesResponse) Status() string

Status returns the response's status.

type GetTextGDIPlusPropertiesRequest

type GetTextGDIPlusPropertiesRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// contains filtered or unexported fields
}

GetTextGDIPlusPropertiesRequest : Get the current properties of a Text GDI Plus source.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettextgdiplusproperties

func NewGetTextGDIPlusPropertiesRequest

func NewGetTextGDIPlusPropertiesRequest(source string) GetTextGDIPlusPropertiesRequest

NewGetTextGDIPlusPropertiesRequest returns a new GetTextGDIPlusPropertiesRequest.

func (GetTextGDIPlusPropertiesRequest) ID

func (r GetTextGDIPlusPropertiesRequest) ID() string

ID returns the request's message ID.

func (GetTextGDIPlusPropertiesRequest) Receive

Receive waits for the response.

func (*GetTextGDIPlusPropertiesRequest) Send

Send sends the request.

func (GetTextGDIPlusPropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetTextGDIPlusPropertiesRequest) Type

func (r GetTextGDIPlusPropertiesRequest) Type() string

Type returns the request's message type.

type GetTextGDIPlusPropertiesResponse

type GetTextGDIPlusPropertiesResponse struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// Text Alignment ("left", "center", "right").
	// Required: Yes.
	Align string `json:"align"`
	// Background color.
	// Required: Yes.
	BkColor int `json:"bk_color"`
	// Background opacity (0-100).
	// Required: Yes.
	BkOpacity int `json:"bk_opacity"`
	// Chat log.
	// Required: Yes.
	Chatlog bool `json:"chatlog"`
	// Chat log lines.
	// Required: Yes.
	ChatlogLines int `json:"chatlog_lines"`
	// Text color.
	// Required: Yes.
	Color int `json:"color"`
	// Extents wrap.
	// Required: Yes.
	Extents bool `json:"extents"`
	// Extents cx.
	// Required: Yes.
	ExtentsCx int `json:"extents_cx"`
	// Extents cy.
	// Required: Yes.
	ExtentsCy int `json:"extents_cy"`
	// File path name.
	// Required: Yes.
	File string `json:"file"`
	// Read text from the specified file.
	// Required: Yes.
	ReadFromFile bool `json:"read_from_file"`
	// Holds data for the font.
	// Ex: `"font": { "face": "Arial", "flags": 0, "size": 150, "style": "" }`.
	// Required: Yes.
	Font map[string]interface{} `json:"font"`
	// Font face.
	// Required: Yes.
	FontFace string `json:"font.face"`
	// Font text styling flag.
	// `Bold=1, Italic=2, Bold Italic=3, Underline=5, Strikeout=8`.
	// Required: Yes.
	FontFlags int `json:"font.flags"`
	// Font text size.
	// Required: Yes.
	FontSize int `json:"font.size"`
	// Font Style (unknown function).
	// Required: Yes.
	FontStyle string `json:"font.style"`
	// Gradient enabled.
	// Required: Yes.
	Gradient bool `json:"gradient"`
	// Gradient color.
	// Required: Yes.
	GradientColor int `json:"gradient_color"`
	// Gradient direction.
	// Required: Yes.
	GradientDir float64 `json:"gradient_dir"`
	// Gradient opacity (0-100).
	// Required: Yes.
	GradientOpacity int `json:"gradient_opacity"`
	// Outline.
	// Required: Yes.
	Outline bool `json:"outline"`
	// Outline color.
	// Required: Yes.
	OutlineColor int `json:"outline_color"`
	// Outline size.
	// Required: Yes.
	OutlineSize int `json:"outline_size"`
	// Outline opacity (0-100).
	// Required: Yes.
	OutlineOpacity int `json:"outline_opacity"`
	// Text content to be displayed.
	// Required: Yes.
	Text string `json:"text"`
	// Text vertical alignment ("top", "center", "bottom").
	// Required: Yes.
	Valign string `json:"valign"`
	// Vertical text enabled.
	// Required: Yes.
	Vertical bool `json:"vertical"`
	// contains filtered or unexported fields
}

GetTextGDIPlusPropertiesResponse : Response for GetTextGDIPlusPropertiesRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettextgdiplusproperties

func (GetTextGDIPlusPropertiesResponse) Error

func (r GetTextGDIPlusPropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetTextGDIPlusPropertiesResponse) ID

func (r GetTextGDIPlusPropertiesResponse) ID() string

ID returns the response's message ID.

func (GetTextGDIPlusPropertiesResponse) Status

func (r GetTextGDIPlusPropertiesResponse) Status() string

Status returns the response's status.

type GetTransitionDurationRequest

type GetTransitionDurationRequest struct {
	// contains filtered or unexported fields
}

GetTransitionDurationRequest : Get the duration of the currently selected transition if supported.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionduration

func NewGetTransitionDurationRequest

func NewGetTransitionDurationRequest() GetTransitionDurationRequest

NewGetTransitionDurationRequest returns a new GetTransitionDurationRequest.

func (GetTransitionDurationRequest) ID

func (r GetTransitionDurationRequest) ID() string

ID returns the request's message ID.

func (GetTransitionDurationRequest) Receive

Receive waits for the response.

func (*GetTransitionDurationRequest) Send

Send sends the request.

func (GetTransitionDurationRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetTransitionDurationRequest) Type

func (r GetTransitionDurationRequest) Type() string

Type returns the request's message type.

type GetTransitionDurationResponse

type GetTransitionDurationResponse struct {
	// Duration of the current transition (in milliseconds).
	// Required: Yes.
	TransitionDuration int `json:"transition-duration"`
	// contains filtered or unexported fields
}

GetTransitionDurationResponse : Response for GetTransitionDurationRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionduration

func (GetTransitionDurationResponse) Error

func (r GetTransitionDurationResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetTransitionDurationResponse) ID

func (r GetTransitionDurationResponse) ID() string

ID returns the response's message ID.

func (GetTransitionDurationResponse) Status

func (r GetTransitionDurationResponse) Status() string

Status returns the response's status.

type GetTransitionListRequest

type GetTransitionListRequest struct {
	// contains filtered or unexported fields
}

GetTransitionListRequest : List of all transitions available in the frontend's dropdown menu.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionlist

func NewGetTransitionListRequest

func NewGetTransitionListRequest() GetTransitionListRequest

NewGetTransitionListRequest returns a new GetTransitionListRequest.

func (GetTransitionListRequest) ID

func (r GetTransitionListRequest) ID() string

ID returns the request's message ID.

func (GetTransitionListRequest) Receive

Receive waits for the response.

func (*GetTransitionListRequest) Send

Send sends the request.

func (GetTransitionListRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetTransitionListRequest) Type

func (r GetTransitionListRequest) Type() string

Type returns the request's message type.

type GetTransitionListResponse

type GetTransitionListResponse struct {
	// Name of the currently active transition.
	// Required: Yes.
	CurrentTransition string `json:"current-transition"`
	// List of transitions.
	// Required: Yes.
	Transitions []map[string]interface{} `json:"transitions"`
	// Name of the transition.
	// Required: Yes.
	TransitionsName string `json:"transitions.*.name"`
	// contains filtered or unexported fields
}

GetTransitionListResponse : Response for GetTransitionListRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionlist

func (GetTransitionListResponse) Error

func (r GetTransitionListResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetTransitionListResponse) ID

func (r GetTransitionListResponse) ID() string

ID returns the response's message ID.

func (GetTransitionListResponse) Status

func (r GetTransitionListResponse) Status() string

Status returns the response's status.

type GetTransitionPositionRequest

type GetTransitionPositionRequest struct {
	// contains filtered or unexported fields
}

GetTransitionPositionRequest : Get the position of the current transition.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionposition

func NewGetTransitionPositionRequest

func NewGetTransitionPositionRequest() GetTransitionPositionRequest

NewGetTransitionPositionRequest returns a new GetTransitionPositionRequest.

func (GetTransitionPositionRequest) ID

func (r GetTransitionPositionRequest) ID() string

ID returns the request's message ID.

func (GetTransitionPositionRequest) Receive

Receive waits for the response.

func (*GetTransitionPositionRequest) Send

Send sends the request.

func (GetTransitionPositionRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetTransitionPositionRequest) Type

func (r GetTransitionPositionRequest) Type() string

Type returns the request's message type.

type GetTransitionPositionResponse

type GetTransitionPositionResponse struct {
	// current transition position.
	// This value will be between 0.0 and 1.0.
	// Note: Transition returns 1.0 when not active.
	// Required: Yes.
	Position float64 `json:"position"`
	// contains filtered or unexported fields
}

GetTransitionPositionResponse : Response for GetTransitionPositionRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionposition

func (GetTransitionPositionResponse) Error

func (r GetTransitionPositionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetTransitionPositionResponse) ID

func (r GetTransitionPositionResponse) ID() string

ID returns the response's message ID.

func (GetTransitionPositionResponse) Status

func (r GetTransitionPositionResponse) Status() string

Status returns the response's status.

type GetTransitionSettingsRequest

type GetTransitionSettingsRequest struct {
	// Transition name.
	// Required: Yes.
	TransitionName string `json:"transitionName"`
	// contains filtered or unexported fields
}

GetTransitionSettingsRequest : Get the current settings of a transition.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionsettings

func NewGetTransitionSettingsRequest

func NewGetTransitionSettingsRequest(transitionName string) GetTransitionSettingsRequest

NewGetTransitionSettingsRequest returns a new GetTransitionSettingsRequest.

func (GetTransitionSettingsRequest) ID

func (r GetTransitionSettingsRequest) ID() string

ID returns the request's message ID.

func (GetTransitionSettingsRequest) Receive

Receive waits for the response.

func (*GetTransitionSettingsRequest) Send

Send sends the request.

func (GetTransitionSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetTransitionSettingsRequest) Type

func (r GetTransitionSettingsRequest) Type() string

Type returns the request's message type.

type GetTransitionSettingsResponse

type GetTransitionSettingsResponse struct {
	// Current transition settings.
	// Required: Yes.
	TransitionSettings map[string]interface{} `json:"transitionSettings"`
	// contains filtered or unexported fields
}

GetTransitionSettingsResponse : Response for GetTransitionSettingsRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#gettransitionsettings

func (GetTransitionSettingsResponse) Error

func (r GetTransitionSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetTransitionSettingsResponse) ID

func (r GetTransitionSettingsResponse) ID() string

ID returns the response's message ID.

func (GetTransitionSettingsResponse) Status

func (r GetTransitionSettingsResponse) Status() string

Status returns the response's status.

type GetVersionRequest

type GetVersionRequest struct {
	// contains filtered or unexported fields
}

GetVersionRequest : Returns the latest version of the plugin and the API.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getversion

func NewGetVersionRequest

func NewGetVersionRequest() GetVersionRequest

NewGetVersionRequest returns a new GetVersionRequest.

func (GetVersionRequest) ID

func (r GetVersionRequest) ID() string

ID returns the request's message ID.

func (GetVersionRequest) Receive

Receive waits for the response.

func (*GetVersionRequest) Send

func (r *GetVersionRequest) Send(c Client) error

Send sends the request.

func (GetVersionRequest) SendReceive

func (r GetVersionRequest) SendReceive(c Client) (GetVersionResponse, error)

SendReceive sends the request then immediately waits for the response.

func (GetVersionRequest) Type

func (r GetVersionRequest) Type() string

Type returns the request's message type.

type GetVersionResponse

type GetVersionResponse struct {
	// OBSRemote compatible API version.
	// Fixed to 1.1 for retrocompatibility.
	// Required: Yes.
	Version float64 `json:"version"`
	// obs-websocket plugin version.
	// Required: Yes.
	OBSWebsocketVersion string `json:"obs-websocket-version"`
	// OBS Studio program version.
	// Required: Yes.
	OBSStudioVersion string `json:"obs-studio-version"`
	// List of available request types, formatted as a comma-separated list string (e.g. : "Method1,Method2,Method3").
	// Required: Yes.
	AvailableRequests string `json:"available-requests"`
	// List of supported formats for features that use image export (like the TakeSourceScreenshot request type) formatted as a comma-separated list string.
	// Required: Yes.
	SupportedImageExportFormats string `json:"supported-image-export-formats"`
	// contains filtered or unexported fields
}

GetVersionResponse : Response for GetVersionRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getversion

func (GetVersionResponse) Error

func (r GetVersionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetVersionResponse) ID

func (r GetVersionResponse) ID() string

ID returns the response's message ID.

func (GetVersionResponse) Status

func (r GetVersionResponse) Status() string

Status returns the response's status.

type GetVideoInfoRequest

type GetVideoInfoRequest struct {
	// contains filtered or unexported fields
}

GetVideoInfoRequest : Get basic OBS video information.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getvideoinfo

func NewGetVideoInfoRequest

func NewGetVideoInfoRequest() GetVideoInfoRequest

NewGetVideoInfoRequest returns a new GetVideoInfoRequest.

func (GetVideoInfoRequest) ID

func (r GetVideoInfoRequest) ID() string

ID returns the request's message ID.

func (GetVideoInfoRequest) Receive

Receive waits for the response.

func (*GetVideoInfoRequest) Send

func (r *GetVideoInfoRequest) Send(c Client) error

Send sends the request.

func (GetVideoInfoRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetVideoInfoRequest) Type

func (r GetVideoInfoRequest) Type() string

Type returns the request's message type.

type GetVideoInfoResponse

type GetVideoInfoResponse struct {
	// Base (canvas) width.
	// Required: Yes.
	BaseWidth int `json:"baseWidth"`
	// Base (canvas) height.
	// Required: Yes.
	BaseHeight int `json:"baseHeight"`
	// Output width.
	// Required: Yes.
	OutputWidth int `json:"outputWidth"`
	// Output height.
	// Required: Yes.
	OutputHeight int `json:"outputHeight"`
	// Scaling method used if output size differs from base size.
	// Required: Yes.
	ScaleType string `json:"scaleType"`
	// Frames rendered per second.
	// Required: Yes.
	FPS float64 `json:"fps"`
	// Video color format.
	// Required: Yes.
	VideoFormat string `json:"videoFormat"`
	// Color space for YUV.
	// Required: Yes.
	ColorSpace string `json:"colorSpace"`
	// Color range (full or partial).
	// Required: Yes.
	ColorRange string `json:"colorRange"`
	// contains filtered or unexported fields
}

GetVideoInfoResponse : Response for GetVideoInfoRequest.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getvideoinfo

func (GetVideoInfoResponse) Error

func (r GetVideoInfoResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetVideoInfoResponse) ID

func (r GetVideoInfoResponse) ID() string

ID returns the response's message ID.

func (GetVideoInfoResponse) Status

func (r GetVideoInfoResponse) Status() string

Status returns the response's status.

type GetVirtualCamStatusRequest

type GetVirtualCamStatusRequest struct {
	// contains filtered or unexported fields
}

GetVirtualCamStatusRequest : Get current virtual cam status.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getvirtualcamstatus

func NewGetVirtualCamStatusRequest

func NewGetVirtualCamStatusRequest() GetVirtualCamStatusRequest

NewGetVirtualCamStatusRequest returns a new GetVirtualCamStatusRequest.

func (GetVirtualCamStatusRequest) ID

func (r GetVirtualCamStatusRequest) ID() string

ID returns the request's message ID.

func (GetVirtualCamStatusRequest) Receive

Receive waits for the response.

func (*GetVirtualCamStatusRequest) Send

Send sends the request.

func (GetVirtualCamStatusRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (GetVirtualCamStatusRequest) Type

func (r GetVirtualCamStatusRequest) Type() string

Type returns the request's message type.

type GetVirtualCamStatusResponse

type GetVirtualCamStatusResponse struct {
	// Current virtual camera status.
	// Required: Yes.
	IsVirtualCam bool `json:"isVirtualCam"`
	// Time elapsed since virtual cam started (only present if virtual cam currently active).
	// Required: No.
	VirtualCamTimecode string `json:"virtualCamTimecode"`
	// contains filtered or unexported fields
}

GetVirtualCamStatusResponse : Response for GetVirtualCamStatusRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getvirtualcamstatus

func (GetVirtualCamStatusResponse) Error

func (r GetVirtualCamStatusResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetVirtualCamStatusResponse) ID

func (r GetVirtualCamStatusResponse) ID() string

ID returns the response's message ID.

func (GetVirtualCamStatusResponse) Status

func (r GetVirtualCamStatusResponse) Status() string

Status returns the response's status.

type GetVolumeRequest

type GetVolumeRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// Output volume in decibels of attenuation instead of amplitude/mul.
	// Required: No.
	UseDecibel bool `json:"useDecibel"`
	// contains filtered or unexported fields
}

GetVolumeRequest : Get the volume of the specified source Default response uses mul format, NOT SLIDER PERCENTAGE.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getvolume

func NewGetVolumeRequest

func NewGetVolumeRequest(
	source string,
	useDecibel bool,
) GetVolumeRequest

NewGetVolumeRequest returns a new GetVolumeRequest.

func (GetVolumeRequest) ID

func (r GetVolumeRequest) ID() string

ID returns the request's message ID.

func (GetVolumeRequest) Receive

func (r GetVolumeRequest) Receive() (GetVolumeResponse, error)

Receive waits for the response.

func (*GetVolumeRequest) Send

func (r *GetVolumeRequest) Send(c Client) error

Send sends the request.

func (GetVolumeRequest) SendReceive

func (r GetVolumeRequest) SendReceive(c Client) (GetVolumeResponse, error)

SendReceive sends the request then immediately waits for the response.

func (GetVolumeRequest) Type

func (r GetVolumeRequest) Type() string

Type returns the request's message type.

type GetVolumeResponse

type GetVolumeResponse struct {
	// Source name.
	// Required: Yes.
	Name string `json:"name"`
	// Volume of the source.
	// Between `0.0` and `20.0` if using mul, under `26.0` if using dB.
	// Required: Yes.
	Volume float64 `json:"volume"`
	// Indicates whether the source is muted.
	// Required: Yes.
	Muted bool `json:"muted"`
	// contains filtered or unexported fields
}

GetVolumeResponse : Response for GetVolumeRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#getvolume

func (GetVolumeResponse) Error

func (r GetVolumeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (GetVolumeResponse) ID

func (r GetVolumeResponse) ID() string

ID returns the response's message ID.

func (GetVolumeResponse) Status

func (r GetVolumeResponse) Status() string

Status returns the response's status.

type HeartbeatEvent

type HeartbeatEvent struct {
	// Toggles between every JSON message as an "I am alive" indicator.
	// Required: Yes.
	Pulse bool `json:"pulse"`
	// Current active profile.
	// Required: No.
	CurrentProfile string `json:"current-profile"`
	// Current active scene.
	// Required: No.
	CurrentScene string `json:"current-scene"`
	// Current streaming state.
	// Required: No.
	Streaming bool `json:"streaming"`
	// Total time (in seconds) since the stream started.
	// Required: No.
	TotalStreamTime int `json:"total-stream-time"`
	// Total bytes sent since the stream started.
	// Required: No.
	TotalStreamBytes int `json:"total-stream-bytes"`
	// Total frames streamed since the stream started.
	// Required: No.
	TotalStreamFrames int `json:"total-stream-frames"`
	// Current recording state.
	// Required: No.
	Recording bool `json:"recording"`
	// Total time (in seconds) since recording started.
	// Required: No.
	TotalRecordTime int `json:"total-record-time"`
	// Total bytes recorded since the recording started.
	// Required: No.
	TotalRecordBytes int `json:"total-record-bytes"`
	// Total frames recorded since the recording started.
	// Required: No.
	TotalRecordFrames int `json:"total-record-frames"`
	// OBS Stats.
	// Required: Yes.
	Stats *OBSStats `json:"stats"`
	// contains filtered or unexported fields
}

HeartbeatEvent : Emitted every 2 seconds after enabling it by calling SetHeartbeat.

Since obs-websocket version: V0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#heartbeat

func (HeartbeatEvent) RecTimecode

func (e HeartbeatEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (HeartbeatEvent) StreamTimecode

func (e HeartbeatEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (HeartbeatEvent) Type

func (e HeartbeatEvent) Type() string

Type returns the event's update type.

type ListOutputsRequest

type ListOutputsRequest struct {
	// contains filtered or unexported fields
}

ListOutputsRequest : List existing outputs.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#listoutputs

func NewListOutputsRequest

func NewListOutputsRequest() ListOutputsRequest

NewListOutputsRequest returns a new ListOutputsRequest.

func (ListOutputsRequest) ID

func (r ListOutputsRequest) ID() string

ID returns the request's message ID.

func (ListOutputsRequest) Receive

Receive waits for the response.

func (*ListOutputsRequest) Send

func (r *ListOutputsRequest) Send(c Client) error

Send sends the request.

func (ListOutputsRequest) SendReceive

func (r ListOutputsRequest) SendReceive(c Client) (ListOutputsResponse, error)

SendReceive sends the request then immediately waits for the response.

func (ListOutputsRequest) Type

func (r ListOutputsRequest) Type() string

Type returns the request's message type.

type ListOutputsResponse

type ListOutputsResponse struct {
	// Outputs list.
	// Required: Yes.
	Outputs []map[string]interface{} `json:"outputs"`
	// contains filtered or unexported fields
}

ListOutputsResponse : Response for ListOutputsRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#listoutputs

func (ListOutputsResponse) Error

func (r ListOutputsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ListOutputsResponse) ID

func (r ListOutputsResponse) ID() string

ID returns the response's message ID.

func (ListOutputsResponse) Status

func (r ListOutputsResponse) Status() string

Status returns the response's status.

type ListProfilesRequest

type ListProfilesRequest struct {
	// contains filtered or unexported fields
}

ListProfilesRequest : Get a list of available profiles.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#listprofiles

func NewListProfilesRequest

func NewListProfilesRequest() ListProfilesRequest

NewListProfilesRequest returns a new ListProfilesRequest.

func (ListProfilesRequest) ID

func (r ListProfilesRequest) ID() string

ID returns the request's message ID.

func (ListProfilesRequest) Receive

Receive waits for the response.

func (*ListProfilesRequest) Send

func (r *ListProfilesRequest) Send(c Client) error

Send sends the request.

func (ListProfilesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ListProfilesRequest) Type

func (r ListProfilesRequest) Type() string

Type returns the request's message type.

type ListProfilesResponse

type ListProfilesResponse struct {
	// List of available profiles.
	// Required: Yes.
	Profiles []map[string]interface{} `json:"profiles"`
	// Filter name.
	// Required: Yes.
	ProfilesProfileName string `json:"profiles.*.profile-name"`
	// contains filtered or unexported fields
}

ListProfilesResponse : Response for ListProfilesRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#listprofiles

func (ListProfilesResponse) Error

func (r ListProfilesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ListProfilesResponse) ID

func (r ListProfilesResponse) ID() string

ID returns the response's message ID.

func (ListProfilesResponse) Status

func (r ListProfilesResponse) Status() string

Status returns the response's status.

type ListSceneCollectionsRequest

type ListSceneCollectionsRequest struct {
	// contains filtered or unexported fields
}

ListSceneCollectionsRequest : List available scene collections.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#listscenecollections

func NewListSceneCollectionsRequest

func NewListSceneCollectionsRequest() ListSceneCollectionsRequest

NewListSceneCollectionsRequest returns a new ListSceneCollectionsRequest.

func (ListSceneCollectionsRequest) ID

func (r ListSceneCollectionsRequest) ID() string

ID returns the request's message ID.

func (ListSceneCollectionsRequest) Receive

Receive waits for the response.

func (*ListSceneCollectionsRequest) Send

Send sends the request.

func (ListSceneCollectionsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ListSceneCollectionsRequest) Type

func (r ListSceneCollectionsRequest) Type() string

Type returns the request's message type.

type ListSceneCollectionsResponse

type ListSceneCollectionsResponse struct {
	// Scene collections list.
	// Required: Yes.
	SceneCollections []*SceneCollection `json:"scene-collections"`
	// contains filtered or unexported fields
}

ListSceneCollectionsResponse : Response for ListSceneCollectionsRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#listscenecollections

func (ListSceneCollectionsResponse) Error

func (r ListSceneCollectionsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ListSceneCollectionsResponse) ID

func (r ListSceneCollectionsResponse) ID() string

ID returns the response's message ID.

func (ListSceneCollectionsResponse) Status

func (r ListSceneCollectionsResponse) Status() string

Status returns the response's status.

type MediaEndedEvent

type MediaEndedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaEndedEvent :

Note: These events are emitted by the OBS sources themselves For example when the media file ends The behavior depends on the type of media source being used.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#mediaended

func (MediaEndedEvent) RecTimecode

func (e MediaEndedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaEndedEvent) StreamTimecode

func (e MediaEndedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaEndedEvent) Type

func (e MediaEndedEvent) Type() string

Type returns the event's update type.

type MediaNextEvent

type MediaNextEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaNextEvent :

Note: This event is only emitted when something actively controls the media/VLC source In other words, the source will never emit this on its own naturally.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#medianext

func (MediaNextEvent) RecTimecode

func (e MediaNextEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaNextEvent) StreamTimecode

func (e MediaNextEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaNextEvent) Type

func (e MediaNextEvent) Type() string

Type returns the event's update type.

type MediaPausedEvent

type MediaPausedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaPausedEvent :

Note: This event is only emitted when something actively controls the media/VLC source In other words, the source will never emit this on its own naturally.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#mediapaused

func (MediaPausedEvent) RecTimecode

func (e MediaPausedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaPausedEvent) StreamTimecode

func (e MediaPausedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaPausedEvent) Type

func (e MediaPausedEvent) Type() string

Type returns the event's update type.

type MediaPlayingEvent

type MediaPlayingEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaPlayingEvent :

Note: This event is only emitted when something actively controls the media/VLC source In other words, the source will never emit this on its own naturally.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#mediaplaying

func (MediaPlayingEvent) RecTimecode

func (e MediaPlayingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaPlayingEvent) StreamTimecode

func (e MediaPlayingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaPlayingEvent) Type

func (e MediaPlayingEvent) Type() string

Type returns the event's update type.

type MediaPreviousEvent

type MediaPreviousEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaPreviousEvent :

Note: This event is only emitted when something actively controls the media/VLC source In other words, the source will never emit this on its own naturally.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#mediaprevious

func (MediaPreviousEvent) RecTimecode

func (e MediaPreviousEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaPreviousEvent) StreamTimecode

func (e MediaPreviousEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaPreviousEvent) Type

func (e MediaPreviousEvent) Type() string

Type returns the event's update type.

type MediaRestartedEvent

type MediaRestartedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaRestartedEvent :

Note: This event is only emitted when something actively controls the media/VLC source In other words, the source will never emit this on its own naturally.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#mediarestarted

func (MediaRestartedEvent) RecTimecode

func (e MediaRestartedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaRestartedEvent) StreamTimecode

func (e MediaRestartedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaRestartedEvent) Type

func (e MediaRestartedEvent) Type() string

Type returns the event's update type.

type MediaStartedEvent

type MediaStartedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaStartedEvent :

Note: These events are emitted by the OBS sources themselves For example when the media file starts playing The behavior depends on the type of media source being used.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#mediastarted

func (MediaStartedEvent) RecTimecode

func (e MediaStartedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaStartedEvent) StreamTimecode

func (e MediaStartedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaStartedEvent) Type

func (e MediaStartedEvent) Type() string

Type returns the event's update type.

type MediaStoppedEvent

type MediaStoppedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The ID type of the source (Eg.
	// `vlc_source` or `ffmpeg_source`).
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

MediaStoppedEvent :

Note: This event is only emitted when something actively controls the media/VLC source In other words, the source will never emit this on its own naturally.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#mediastopped

func (MediaStoppedEvent) RecTimecode

func (e MediaStoppedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (MediaStoppedEvent) StreamTimecode

func (e MediaStoppedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (MediaStoppedEvent) Type

func (e MediaStoppedEvent) Type() string

Type returns the event's update type.

type MoveSourceFilterRequest

type MoveSourceFilterRequest struct {
	// Name of the source to which the filter belongs.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Name of the filter to reorder.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// How to move the filter around in the source's filter chain.
	// Either "up", "down", "top" or "bottom".
	// Required: Yes.
	MovementType string `json:"movementType"`
	// contains filtered or unexported fields
}

MoveSourceFilterRequest : Move a filter in the chain (relative positioning).

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#movesourcefilter

func NewMoveSourceFilterRequest

func NewMoveSourceFilterRequest(
	sourceName string,
	filterName string,
	movementType string,
) MoveSourceFilterRequest

NewMoveSourceFilterRequest returns a new MoveSourceFilterRequest.

func (MoveSourceFilterRequest) ID

func (r MoveSourceFilterRequest) ID() string

ID returns the request's message ID.

func (MoveSourceFilterRequest) Receive

Receive waits for the response.

func (*MoveSourceFilterRequest) Send

Send sends the request.

func (MoveSourceFilterRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (MoveSourceFilterRequest) Type

func (r MoveSourceFilterRequest) Type() string

Type returns the request's message type.

type MoveSourceFilterResponse

type MoveSourceFilterResponse struct {
	// contains filtered or unexported fields
}

MoveSourceFilterResponse : Response for MoveSourceFilterRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#movesourcefilter

func (MoveSourceFilterResponse) Error

func (r MoveSourceFilterResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (MoveSourceFilterResponse) ID

func (r MoveSourceFilterResponse) ID() string

ID returns the response's message ID.

func (MoveSourceFilterResponse) Status

func (r MoveSourceFilterResponse) Status() string

Status returns the response's status.

type NextMediaRequest

type NextMediaRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

NextMediaRequest : Skip to the next media item in the playlist Supports only vlc media source (as of OBS v25.0.8).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#nextmedia

func NewNextMediaRequest

func NewNextMediaRequest(sourceName string) NextMediaRequest

NewNextMediaRequest returns a new NextMediaRequest.

func (NextMediaRequest) ID

func (r NextMediaRequest) ID() string

ID returns the request's message ID.

func (NextMediaRequest) Receive

func (r NextMediaRequest) Receive() (NextMediaResponse, error)

Receive waits for the response.

func (*NextMediaRequest) Send

func (r *NextMediaRequest) Send(c Client) error

Send sends the request.

func (NextMediaRequest) SendReceive

func (r NextMediaRequest) SendReceive(c Client) (NextMediaResponse, error)

SendReceive sends the request then immediately waits for the response.

func (NextMediaRequest) Type

func (r NextMediaRequest) Type() string

Type returns the request's message type.

type NextMediaResponse

type NextMediaResponse struct {
	// contains filtered or unexported fields
}

NextMediaResponse : Response for NextMediaRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#nextmedia

func (NextMediaResponse) Error

func (r NextMediaResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (NextMediaResponse) ID

func (r NextMediaResponse) ID() string

ID returns the response's message ID.

func (NextMediaResponse) Status

func (r NextMediaResponse) Status() string

Status returns the response's status.

type OBSStats

type OBSStats struct {
	FPS                float64 `json:"fps"`
	RenderTotalFrames  int     `json:"render-total-frames"`
	RenderMissedFrames int     `json:"render-missed-frames"`
	OutputTotalFrames  int     `json:"output-total-frames"`
	OutputMissedFrames int     `json:"output-missed-frames"`
	AverageFrameTime   float64 `json:"average-frame-time"`
	CPUUsage           float64 `json:"cpu-usage"`
	MemoryUsage        float64 `json:"memory-usage"`
	FreeDiskSpace      float64 `json:"free-disk-space`
}

type OpenProjectorRequest

type OpenProjectorRequest struct {
	// Type of projector: `Preview` (default), `Source`, `Scene`, `StudioProgram`, or `Multiview` (case insensitive).
	// Required: Yes.
	Type_ string `json:"type"`
	// Monitor to open the projector on.
	// If -1 or omitted, opens a window.
	// Required: Yes.
	Monitor int `json:"monitor"`
	// Size and position of the projector window (only if monitor is -1).
	// Encoded in Base64 using [Qt's geometry encoding](https://doc.qt.io/qt-5/qwidget.html#saveGeometry).
	// Corresponds to OBS's saved projectors.
	// Required: Yes.
	Geometry string `json:"geometry"`
	// Name of the source or scene to be displayed (ignored for other projector types).
	// Required: Yes.
	Name string `json:"name"`
	// contains filtered or unexported fields
}

OpenProjectorRequest : Open a projector window or create a projector on a monitor Requires OBS v24.0.4 or newer.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#openprojector

func NewOpenProjectorRequest

func NewOpenProjectorRequest(
	_type string,
	monitor int,
	geometry string,
	name string,
) OpenProjectorRequest

NewOpenProjectorRequest returns a new OpenProjectorRequest.

func (OpenProjectorRequest) ID

func (r OpenProjectorRequest) ID() string

ID returns the request's message ID.

func (OpenProjectorRequest) Receive

Receive waits for the response.

func (*OpenProjectorRequest) Send

func (r *OpenProjectorRequest) Send(c Client) error

Send sends the request.

func (OpenProjectorRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (OpenProjectorRequest) Type

func (r OpenProjectorRequest) Type() string

Type returns the request's message type.

type OpenProjectorResponse

type OpenProjectorResponse struct {
	// contains filtered or unexported fields
}

OpenProjectorResponse : Response for OpenProjectorRequest.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#openprojector

func (OpenProjectorResponse) Error

func (r OpenProjectorResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (OpenProjectorResponse) ID

func (r OpenProjectorResponse) ID() string

ID returns the response's message ID.

func (OpenProjectorResponse) Status

func (r OpenProjectorResponse) Status() string

Status returns the response's status.

type PauseRecordingRequest

type PauseRecordingRequest struct {
	// contains filtered or unexported fields
}

PauseRecordingRequest : Pause the current recording. Returns an error if recording is not active or already paused.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#pauserecording

func NewPauseRecordingRequest

func NewPauseRecordingRequest() PauseRecordingRequest

NewPauseRecordingRequest returns a new PauseRecordingRequest.

func (PauseRecordingRequest) ID

func (r PauseRecordingRequest) ID() string

ID returns the request's message ID.

func (PauseRecordingRequest) Receive

Receive waits for the response.

func (*PauseRecordingRequest) Send

func (r *PauseRecordingRequest) Send(c Client) error

Send sends the request.

func (PauseRecordingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (PauseRecordingRequest) Type

func (r PauseRecordingRequest) Type() string

Type returns the request's message type.

type PauseRecordingResponse

type PauseRecordingResponse struct {
	// contains filtered or unexported fields
}

PauseRecordingResponse : Response for PauseRecordingRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#pauserecording

func (PauseRecordingResponse) Error

func (r PauseRecordingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (PauseRecordingResponse) ID

func (r PauseRecordingResponse) ID() string

ID returns the response's message ID.

func (PauseRecordingResponse) Status

func (r PauseRecordingResponse) Status() string

Status returns the response's status.

type PlayPauseMediaRequest

type PlayPauseMediaRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// (optional) Whether to pause or play the source.
	// `false` for play, `true` for pause.
	// Required: Yes.
	PlayPause bool `json:"playPause"`
	// contains filtered or unexported fields
}

PlayPauseMediaRequest : Pause or play a media source Supports ffmpeg and vlc media sources (as of OBS v25.0.8) Note :Leaving out `playPause` toggles the current pause state.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#playpausemedia

func NewPlayPauseMediaRequest

func NewPlayPauseMediaRequest(
	sourceName string,
	playPause bool,
) PlayPauseMediaRequest

NewPlayPauseMediaRequest returns a new PlayPauseMediaRequest.

func (PlayPauseMediaRequest) ID

func (r PlayPauseMediaRequest) ID() string

ID returns the request's message ID.

func (PlayPauseMediaRequest) Receive

Receive waits for the response.

func (*PlayPauseMediaRequest) Send

func (r *PlayPauseMediaRequest) Send(c Client) error

Send sends the request.

func (PlayPauseMediaRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (PlayPauseMediaRequest) Type

func (r PlayPauseMediaRequest) Type() string

Type returns the request's message type.

type PlayPauseMediaResponse

type PlayPauseMediaResponse struct {
	// contains filtered or unexported fields
}

PlayPauseMediaResponse : Response for PlayPauseMediaRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#playpausemedia

func (PlayPauseMediaResponse) Error

func (r PlayPauseMediaResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (PlayPauseMediaResponse) ID

func (r PlayPauseMediaResponse) ID() string

ID returns the response's message ID.

func (PlayPauseMediaResponse) Status

func (r PlayPauseMediaResponse) Status() string

Status returns the response's status.

type PreviewSceneChangedEvent

type PreviewSceneChangedEvent struct {
	// Name of the scene being previewed.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// List of sources composing the scene.
	// Same specification as [`GetCurrentScene`](#getcurrentscene).
	// Required: Yes.
	Sources []*SceneItem `json:"sources"`
	// contains filtered or unexported fields
}

PreviewSceneChangedEvent : The selected preview scene has changed (only available in Studio Mode).

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#previewscenechanged

func (PreviewSceneChangedEvent) RecTimecode

func (e PreviewSceneChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (PreviewSceneChangedEvent) StreamTimecode

func (e PreviewSceneChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (PreviewSceneChangedEvent) Type

func (e PreviewSceneChangedEvent) Type() string

Type returns the event's update type.

type PreviousMediaRequest

type PreviousMediaRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

PreviousMediaRequest : Go to the previous media item in the playlist Supports only vlc media source (as of OBS v25.0.8).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#previousmedia

func NewPreviousMediaRequest

func NewPreviousMediaRequest(sourceName string) PreviousMediaRequest

NewPreviousMediaRequest returns a new PreviousMediaRequest.

func (PreviousMediaRequest) ID

func (r PreviousMediaRequest) ID() string

ID returns the request's message ID.

func (PreviousMediaRequest) Receive

Receive waits for the response.

func (*PreviousMediaRequest) Send

func (r *PreviousMediaRequest) Send(c Client) error

Send sends the request.

func (PreviousMediaRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (PreviousMediaRequest) Type

func (r PreviousMediaRequest) Type() string

Type returns the request's message type.

type PreviousMediaResponse

type PreviousMediaResponse struct {
	// contains filtered or unexported fields
}

PreviousMediaResponse : Response for PreviousMediaRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#previousmedia

func (PreviousMediaResponse) Error

func (r PreviousMediaResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (PreviousMediaResponse) ID

func (r PreviousMediaResponse) ID() string

ID returns the response's message ID.

func (PreviousMediaResponse) Status

func (r PreviousMediaResponse) Status() string

Status returns the response's status.

type ProfileChangedEvent

type ProfileChangedEvent struct {
	// Name of the new current profile.
	// Required: Yes.
	Profile string `json:"profile"`
	// contains filtered or unexported fields
}

ProfileChangedEvent : Triggered when switching to another profile or when renaming the current profile.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#profilechanged

func (ProfileChangedEvent) RecTimecode

func (e ProfileChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ProfileChangedEvent) StreamTimecode

func (e ProfileChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ProfileChangedEvent) Type

func (e ProfileChangedEvent) Type() string

Type returns the event's update type.

type ProfileListChangedEvent

type ProfileListChangedEvent struct {
	// Profiles list.
	// Required: Yes.
	Profiles []map[string]interface{} `json:"profiles"`
	// Profile name.
	// Required: Yes.
	ProfilesName string `json:"profiles.*.name"`
	// contains filtered or unexported fields
}

ProfileListChangedEvent : Triggered when a profile is created, added, renamed, or removed.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#profilelistchanged

func (ProfileListChangedEvent) RecTimecode

func (e ProfileListChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ProfileListChangedEvent) StreamTimecode

func (e ProfileListChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ProfileListChangedEvent) Type

func (e ProfileListChangedEvent) Type() string

Type returns the event's update type.

type RecordingPausedEvent

type RecordingPausedEvent struct {
	// contains filtered or unexported fields
}

RecordingPausedEvent : Current recording paused.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#recordingpaused

func (RecordingPausedEvent) RecTimecode

func (e RecordingPausedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (RecordingPausedEvent) StreamTimecode

func (e RecordingPausedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (RecordingPausedEvent) Type

func (e RecordingPausedEvent) Type() string

Type returns the event's update type.

type RecordingResumedEvent

type RecordingResumedEvent struct {
	// contains filtered or unexported fields
}

RecordingResumedEvent : Current recording resumed.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#recordingresumed

func (RecordingResumedEvent) RecTimecode

func (e RecordingResumedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (RecordingResumedEvent) StreamTimecode

func (e RecordingResumedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (RecordingResumedEvent) Type

func (e RecordingResumedEvent) Type() string

Type returns the event's update type.

type RecordingStartedEvent

type RecordingStartedEvent struct {
	// Absolute path to the file of the current recording.
	// Required: Yes.
	RecordingFilename string `json:"recordingFilename"`
	// contains filtered or unexported fields
}

RecordingStartedEvent : Recording started successfully.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#recordingstarted

func (RecordingStartedEvent) RecTimecode

func (e RecordingStartedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (RecordingStartedEvent) StreamTimecode

func (e RecordingStartedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (RecordingStartedEvent) Type

func (e RecordingStartedEvent) Type() string

Type returns the event's update type.

type RecordingStartingEvent

type RecordingStartingEvent struct {
	// contains filtered or unexported fields
}

RecordingStartingEvent :

Note: `recordingFilename` is not provided in this event because this information is not available at the time this event is emitted.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#recordingstarting

func (RecordingStartingEvent) RecTimecode

func (e RecordingStartingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (RecordingStartingEvent) StreamTimecode

func (e RecordingStartingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (RecordingStartingEvent) Type

func (e RecordingStartingEvent) Type() string

Type returns the event's update type.

type RecordingStoppedEvent

type RecordingStoppedEvent struct {
	// Absolute path to the file of the current recording.
	// Required: Yes.
	RecordingFilename string `json:"recordingFilename"`
	// contains filtered or unexported fields
}

RecordingStoppedEvent : Recording stopped successfully.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#recordingstopped

func (RecordingStoppedEvent) RecTimecode

func (e RecordingStoppedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (RecordingStoppedEvent) StreamTimecode

func (e RecordingStoppedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (RecordingStoppedEvent) Type

func (e RecordingStoppedEvent) Type() string

Type returns the event's update type.

type RecordingStoppingEvent

type RecordingStoppingEvent struct {
	// Absolute path to the file of the current recording.
	// Required: Yes.
	RecordingFilename string `json:"recordingFilename"`
	// contains filtered or unexported fields
}

RecordingStoppingEvent : A request to stop recording has been issued.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#recordingstopping

func (RecordingStoppingEvent) RecTimecode

func (e RecordingStoppingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (RecordingStoppingEvent) StreamTimecode

func (e RecordingStoppingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (RecordingStoppingEvent) Type

func (e RecordingStoppingEvent) Type() string

Type returns the event's update type.

type RefreshBrowserSourceRequest

type RefreshBrowserSourceRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

RefreshBrowserSourceRequest : Refreshes the specified browser source.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#refreshbrowsersource

func NewRefreshBrowserSourceRequest

func NewRefreshBrowserSourceRequest(sourceName string) RefreshBrowserSourceRequest

NewRefreshBrowserSourceRequest returns a new RefreshBrowserSourceRequest.

func (RefreshBrowserSourceRequest) ID

func (r RefreshBrowserSourceRequest) ID() string

ID returns the request's message ID.

func (RefreshBrowserSourceRequest) Receive

Receive waits for the response.

func (*RefreshBrowserSourceRequest) Send

Send sends the request.

func (RefreshBrowserSourceRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (RefreshBrowserSourceRequest) Type

func (r RefreshBrowserSourceRequest) Type() string

Type returns the request's message type.

type RefreshBrowserSourceResponse

type RefreshBrowserSourceResponse struct {
	// contains filtered or unexported fields
}

RefreshBrowserSourceResponse : Response for RefreshBrowserSourceRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#refreshbrowsersource

func (RefreshBrowserSourceResponse) Error

func (r RefreshBrowserSourceResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (RefreshBrowserSourceResponse) ID

func (r RefreshBrowserSourceResponse) ID() string

ID returns the response's message ID.

func (RefreshBrowserSourceResponse) Status

func (r RefreshBrowserSourceResponse) Status() string

Status returns the response's status.

type ReleaseTBarRequest

type ReleaseTBarRequest struct {
	// contains filtered or unexported fields
}

ReleaseTBarRequest : Release the T-Bar (like a user releasing their mouse button after moving it). *YOU MUST CALL THIS if you called `SetTBarPosition` with the `release` parameter set to `false`.*.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#releasetbar

func NewReleaseTBarRequest

func NewReleaseTBarRequest() ReleaseTBarRequest

NewReleaseTBarRequest returns a new ReleaseTBarRequest.

func (ReleaseTBarRequest) ID

func (r ReleaseTBarRequest) ID() string

ID returns the request's message ID.

func (ReleaseTBarRequest) Receive

Receive waits for the response.

func (*ReleaseTBarRequest) Send

func (r *ReleaseTBarRequest) Send(c Client) error

Send sends the request.

func (ReleaseTBarRequest) SendReceive

func (r ReleaseTBarRequest) SendReceive(c Client) (ReleaseTBarResponse, error)

SendReceive sends the request then immediately waits for the response.

func (ReleaseTBarRequest) Type

func (r ReleaseTBarRequest) Type() string

Type returns the request's message type.

type ReleaseTBarResponse

type ReleaseTBarResponse struct {
	// contains filtered or unexported fields
}

ReleaseTBarResponse : Response for ReleaseTBarRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#releasetbar

func (ReleaseTBarResponse) Error

func (r ReleaseTBarResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ReleaseTBarResponse) ID

func (r ReleaseTBarResponse) ID() string

ID returns the response's message ID.

func (ReleaseTBarResponse) Status

func (r ReleaseTBarResponse) Status() string

Status returns the response's status.

type RemoveFilterFromSourceRequest

type RemoveFilterFromSourceRequest struct {
	// Name of the source from which the specified filter is removed.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Name of the filter to remove.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// contains filtered or unexported fields
}

RemoveFilterFromSourceRequest : Remove a filter from a source.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#removefilterfromsource

func NewRemoveFilterFromSourceRequest

func NewRemoveFilterFromSourceRequest(
	sourceName string,
	filterName string,
) RemoveFilterFromSourceRequest

NewRemoveFilterFromSourceRequest returns a new RemoveFilterFromSourceRequest.

func (RemoveFilterFromSourceRequest) ID

func (r RemoveFilterFromSourceRequest) ID() string

ID returns the request's message ID.

func (RemoveFilterFromSourceRequest) Receive

Receive waits for the response.

func (*RemoveFilterFromSourceRequest) Send

Send sends the request.

func (RemoveFilterFromSourceRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (RemoveFilterFromSourceRequest) Type

func (r RemoveFilterFromSourceRequest) Type() string

Type returns the request's message type.

type RemoveFilterFromSourceResponse

type RemoveFilterFromSourceResponse struct {
	// contains filtered or unexported fields
}

RemoveFilterFromSourceResponse : Response for RemoveFilterFromSourceRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#removefilterfromsource

func (RemoveFilterFromSourceResponse) Error

func (r RemoveFilterFromSourceResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (RemoveFilterFromSourceResponse) ID

func (r RemoveFilterFromSourceResponse) ID() string

ID returns the response's message ID.

func (RemoveFilterFromSourceResponse) Status

func (r RemoveFilterFromSourceResponse) Status() string

Status returns the response's status.

type RemoveSceneTransitionOverrideRequest

type RemoveSceneTransitionOverrideRequest struct {
	// Name of the scene to switch to.
	// Required: Yes.
	SceneName string `json:"sceneName"`
	// contains filtered or unexported fields
}

RemoveSceneTransitionOverrideRequest : Remove any transition override on a scene.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#removescenetransitionoverride

func NewRemoveSceneTransitionOverrideRequest

func NewRemoveSceneTransitionOverrideRequest(sceneName string) RemoveSceneTransitionOverrideRequest

NewRemoveSceneTransitionOverrideRequest returns a new RemoveSceneTransitionOverrideRequest.

func (RemoveSceneTransitionOverrideRequest) ID

func (r RemoveSceneTransitionOverrideRequest) ID() string

ID returns the request's message ID.

func (RemoveSceneTransitionOverrideRequest) Receive

Receive waits for the response.

func (*RemoveSceneTransitionOverrideRequest) Send

Send sends the request.

func (RemoveSceneTransitionOverrideRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (RemoveSceneTransitionOverrideRequest) Type

func (r RemoveSceneTransitionOverrideRequest) Type() string

Type returns the request's message type.

type RemoveSceneTransitionOverrideResponse

type RemoveSceneTransitionOverrideResponse struct {
	// contains filtered or unexported fields
}

RemoveSceneTransitionOverrideResponse : Response for RemoveSceneTransitionOverrideRequest.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#removescenetransitionoverride

func (RemoveSceneTransitionOverrideResponse) Error

func (r RemoveSceneTransitionOverrideResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (RemoveSceneTransitionOverrideResponse) ID

func (r RemoveSceneTransitionOverrideResponse) ID() string

ID returns the response's message ID.

func (RemoveSceneTransitionOverrideResponse) Status

func (r RemoveSceneTransitionOverrideResponse) Status() string

Status returns the response's status.

type ReorderSceneItemsRequest

type ReorderSceneItemsRequest struct {
	// Name of the scene to reorder (defaults to current).
	// Required: No.
	Scene string `json:"scene"`
	// Ordered list of objects with name and/or id specified.
	// Id preferred due to uniqueness per scene.
	// Required: Yes.
	Items []map[string]interface{} `json:"items"`
	// Id of a specific scene item.
	// Unique on a scene by scene basis.
	// Required: No.
	ItemsID int `json:"items.*.id"`
	// Name of a scene item.
	// Sufficiently unique if no scene items share sources within the scene.
	// Required: No.
	ItemsName string `json:"items.*.name"`
	// contains filtered or unexported fields
}

ReorderSceneItemsRequest : Changes the order of scene items in the requested scene.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#reordersceneitems

func NewReorderSceneItemsRequest

func NewReorderSceneItemsRequest(
	scene string,
	items []map[string]interface{},
	itemsID int,
	itemsName string,
) ReorderSceneItemsRequest

NewReorderSceneItemsRequest returns a new ReorderSceneItemsRequest.

func (ReorderSceneItemsRequest) ID

func (r ReorderSceneItemsRequest) ID() string

ID returns the request's message ID.

func (ReorderSceneItemsRequest) Receive

Receive waits for the response.

func (*ReorderSceneItemsRequest) Send

Send sends the request.

func (ReorderSceneItemsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ReorderSceneItemsRequest) Type

func (r ReorderSceneItemsRequest) Type() string

Type returns the request's message type.

type ReorderSceneItemsResponse

type ReorderSceneItemsResponse struct {
	// contains filtered or unexported fields
}

ReorderSceneItemsResponse : Response for ReorderSceneItemsRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#reordersceneitems

func (ReorderSceneItemsResponse) Error

func (r ReorderSceneItemsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ReorderSceneItemsResponse) ID

func (r ReorderSceneItemsResponse) ID() string

ID returns the response's message ID.

func (ReorderSceneItemsResponse) Status

func (r ReorderSceneItemsResponse) Status() string

Status returns the response's status.

type ReorderSourceFilterRequest

type ReorderSourceFilterRequest struct {
	// Name of the source to which the filter belongs.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Name of the filter to reorder.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// Desired position of the filter in the chain.
	// Required: Yes.
	NewIndex int `json:"newIndex"`
	// contains filtered or unexported fields
}

ReorderSourceFilterRequest : Move a filter in the chain (absolute index positioning).

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#reordersourcefilter

func NewReorderSourceFilterRequest

func NewReorderSourceFilterRequest(
	sourceName string,
	filterName string,
	newIndex int,
) ReorderSourceFilterRequest

NewReorderSourceFilterRequest returns a new ReorderSourceFilterRequest.

func (ReorderSourceFilterRequest) ID

func (r ReorderSourceFilterRequest) ID() string

ID returns the request's message ID.

func (ReorderSourceFilterRequest) Receive

Receive waits for the response.

func (*ReorderSourceFilterRequest) Send

Send sends the request.

func (ReorderSourceFilterRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ReorderSourceFilterRequest) Type

func (r ReorderSourceFilterRequest) Type() string

Type returns the request's message type.

type ReorderSourceFilterResponse

type ReorderSourceFilterResponse struct {
	// contains filtered or unexported fields
}

ReorderSourceFilterResponse : Response for ReorderSourceFilterRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#reordersourcefilter

func (ReorderSourceFilterResponse) Error

func (r ReorderSourceFilterResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ReorderSourceFilterResponse) ID

func (r ReorderSourceFilterResponse) ID() string

ID returns the response's message ID.

func (ReorderSourceFilterResponse) Status

func (r ReorderSourceFilterResponse) Status() string

Status returns the response's status.

type ReplayStartedEvent

type ReplayStartedEvent struct {
	// contains filtered or unexported fields
}

ReplayStartedEvent : Replay Buffer started successfully.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#replaystarted

func (ReplayStartedEvent) RecTimecode

func (e ReplayStartedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ReplayStartedEvent) StreamTimecode

func (e ReplayStartedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ReplayStartedEvent) Type

func (e ReplayStartedEvent) Type() string

Type returns the event's update type.

type ReplayStartingEvent

type ReplayStartingEvent struct {
	// contains filtered or unexported fields
}

ReplayStartingEvent : A request to start the replay buffer has been issued.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#replaystarting

func (ReplayStartingEvent) RecTimecode

func (e ReplayStartingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ReplayStartingEvent) StreamTimecode

func (e ReplayStartingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ReplayStartingEvent) Type

func (e ReplayStartingEvent) Type() string

Type returns the event's update type.

type ReplayStoppedEvent

type ReplayStoppedEvent struct {
	// contains filtered or unexported fields
}

ReplayStoppedEvent : Replay Buffer stopped successfully.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#replaystopped

func (ReplayStoppedEvent) RecTimecode

func (e ReplayStoppedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ReplayStoppedEvent) StreamTimecode

func (e ReplayStoppedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ReplayStoppedEvent) Type

func (e ReplayStoppedEvent) Type() string

Type returns the event's update type.

type ReplayStoppingEvent

type ReplayStoppingEvent struct {
	// contains filtered or unexported fields
}

ReplayStoppingEvent : A request to stop the replay buffer has been issued.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#replaystopping

func (ReplayStoppingEvent) RecTimecode

func (e ReplayStoppingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ReplayStoppingEvent) StreamTimecode

func (e ReplayStoppingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ReplayStoppingEvent) Type

func (e ReplayStoppingEvent) Type() string

Type returns the event's update type.

type Request

type Request interface {
	ID() string
	Type() string
	Send(Client) error
}

Request is a request to obs-websocket.

type ResetSceneItemRequest

type ResetSceneItemRequest struct {
	// Name of the scene the scene item belongs to.
	// Defaults to the current scene.
	// Required: No.
	SceneName string `json:"scene-name"`
	// Scene Item name (if this field is a string) or specification (if it is an object).
	// Required: Yes.
	Item interface{} `json:"item"`
	// Scene Item name (if the `item` field is an object).
	// Required: No.
	ItemName string `json:"item.name"`
	// Scene Item ID (if the `item` field is an object).
	// Required: No.
	ItemID int `json:"item.id"`
	// contains filtered or unexported fields
}

ResetSceneItemRequest : Reset a scene item.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#resetsceneitem

func NewResetSceneItemRequest

func NewResetSceneItemRequest(
	sceneName string,
	item interface{},
	itemName string,
	itemID int,
) ResetSceneItemRequest

NewResetSceneItemRequest returns a new ResetSceneItemRequest.

func (ResetSceneItemRequest) ID

func (r ResetSceneItemRequest) ID() string

ID returns the request's message ID.

func (ResetSceneItemRequest) Receive

Receive waits for the response.

func (*ResetSceneItemRequest) Send

func (r *ResetSceneItemRequest) Send(c Client) error

Send sends the request.

func (ResetSceneItemRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ResetSceneItemRequest) Type

func (r ResetSceneItemRequest) Type() string

Type returns the request's message type.

type ResetSceneItemResponse

type ResetSceneItemResponse struct {
	// contains filtered or unexported fields
}

ResetSceneItemResponse : Response for ResetSceneItemRequest.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#resetsceneitem

func (ResetSceneItemResponse) Error

func (r ResetSceneItemResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ResetSceneItemResponse) ID

func (r ResetSceneItemResponse) ID() string

ID returns the response's message ID.

func (ResetSceneItemResponse) Status

func (r ResetSceneItemResponse) Status() string

Status returns the response's status.

type Response

type Response interface {
	ID() string
	Status() string
	Error() string
}

Response is a response from obs-websocket.

type RestartMediaRequest

type RestartMediaRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

RestartMediaRequest : Restart a media source Supports ffmpeg and vlc media sources (as of OBS v25.0.8).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#restartmedia

func NewRestartMediaRequest

func NewRestartMediaRequest(sourceName string) RestartMediaRequest

NewRestartMediaRequest returns a new RestartMediaRequest.

func (RestartMediaRequest) ID

func (r RestartMediaRequest) ID() string

ID returns the request's message ID.

func (RestartMediaRequest) Receive

Receive waits for the response.

func (*RestartMediaRequest) Send

func (r *RestartMediaRequest) Send(c Client) error

Send sends the request.

func (RestartMediaRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (RestartMediaRequest) Type

func (r RestartMediaRequest) Type() string

Type returns the request's message type.

type RestartMediaResponse

type RestartMediaResponse struct {
	// contains filtered or unexported fields
}

RestartMediaResponse : Response for RestartMediaRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#restartmedia

func (RestartMediaResponse) Error

func (r RestartMediaResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (RestartMediaResponse) ID

func (r RestartMediaResponse) ID() string

ID returns the response's message ID.

func (RestartMediaResponse) Status

func (r RestartMediaResponse) Status() string

Status returns the response's status.

type ResumeRecordingRequest

type ResumeRecordingRequest struct {
	// contains filtered or unexported fields
}

ResumeRecordingRequest : Resume/unpause the current recording (if paused). Returns an error if recording is not active or not paused.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#resumerecording

func NewResumeRecordingRequest

func NewResumeRecordingRequest() ResumeRecordingRequest

NewResumeRecordingRequest returns a new ResumeRecordingRequest.

func (ResumeRecordingRequest) ID

func (r ResumeRecordingRequest) ID() string

ID returns the request's message ID.

func (ResumeRecordingRequest) Receive

Receive waits for the response.

func (*ResumeRecordingRequest) Send

func (r *ResumeRecordingRequest) Send(c Client) error

Send sends the request.

func (ResumeRecordingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ResumeRecordingRequest) Type

func (r ResumeRecordingRequest) Type() string

Type returns the request's message type.

type ResumeRecordingResponse

type ResumeRecordingResponse struct {
	// contains filtered or unexported fields
}

ResumeRecordingResponse : Response for ResumeRecordingRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#resumerecording

func (ResumeRecordingResponse) Error

func (r ResumeRecordingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ResumeRecordingResponse) ID

func (r ResumeRecordingResponse) ID() string

ID returns the response's message ID.

func (ResumeRecordingResponse) Status

func (r ResumeRecordingResponse) Status() string

Status returns the response's status.

type SaveReplayBufferRequest

type SaveReplayBufferRequest struct {
	// contains filtered or unexported fields
}

SaveReplayBufferRequest : Flush and save the contents of the Replay Buffer to disk This is basically the same as triggering the "Save Replay Buffer" hotkey. Will return an `error` if the Replay Buffer is not active.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#savereplaybuffer

func NewSaveReplayBufferRequest

func NewSaveReplayBufferRequest() SaveReplayBufferRequest

NewSaveReplayBufferRequest returns a new SaveReplayBufferRequest.

func (SaveReplayBufferRequest) ID

func (r SaveReplayBufferRequest) ID() string

ID returns the request's message ID.

func (SaveReplayBufferRequest) Receive

Receive waits for the response.

func (*SaveReplayBufferRequest) Send

Send sends the request.

func (SaveReplayBufferRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SaveReplayBufferRequest) Type

func (r SaveReplayBufferRequest) Type() string

Type returns the request's message type.

type SaveReplayBufferResponse

type SaveReplayBufferResponse struct {
	// contains filtered or unexported fields
}

SaveReplayBufferResponse : Response for SaveReplayBufferRequest.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#savereplaybuffer

func (SaveReplayBufferResponse) Error

func (r SaveReplayBufferResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SaveReplayBufferResponse) ID

func (r SaveReplayBufferResponse) ID() string

ID returns the response's message ID.

func (SaveReplayBufferResponse) Status

func (r SaveReplayBufferResponse) Status() string

Status returns the response's status.

type SaveStreamSettingsRequest

type SaveStreamSettingsRequest struct {
	// contains filtered or unexported fields
}

SaveStreamSettingsRequest : Save the current streaming server settings to disk.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#savestreamsettings

func NewSaveStreamSettingsRequest

func NewSaveStreamSettingsRequest() SaveStreamSettingsRequest

NewSaveStreamSettingsRequest returns a new SaveStreamSettingsRequest.

func (SaveStreamSettingsRequest) ID

func (r SaveStreamSettingsRequest) ID() string

ID returns the request's message ID.

func (SaveStreamSettingsRequest) Receive

Receive waits for the response.

func (*SaveStreamSettingsRequest) Send

Send sends the request.

func (SaveStreamSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SaveStreamSettingsRequest) Type

func (r SaveStreamSettingsRequest) Type() string

Type returns the request's message type.

type SaveStreamSettingsResponse

type SaveStreamSettingsResponse struct {
	// contains filtered or unexported fields
}

SaveStreamSettingsResponse : Response for SaveStreamSettingsRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#savestreamsettings

func (SaveStreamSettingsResponse) Error

func (r SaveStreamSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SaveStreamSettingsResponse) ID

func (r SaveStreamSettingsResponse) ID() string

ID returns the response's message ID.

func (SaveStreamSettingsResponse) Status

func (r SaveStreamSettingsResponse) Status() string

Status returns the response's status.

type Scene

type Scene struct {
	Name    string       `json:"name"`
	Sources []*SceneItem `json:"sources"`
}

type SceneCollection

type SceneCollection struct {
	SCName string `json:"sc-name"`
}

type SceneCollectionChangedEvent

type SceneCollectionChangedEvent struct {
	// Name of the new current scene collection.
	// Required: Yes.
	SceneCollection string `json:"sceneCollection"`
	// contains filtered or unexported fields
}

SceneCollectionChangedEvent : Triggered when switching to another scene collection or when renaming the current scene collection.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#scenecollectionchanged

func (SceneCollectionChangedEvent) RecTimecode

func (e SceneCollectionChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneCollectionChangedEvent) StreamTimecode

func (e SceneCollectionChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneCollectionChangedEvent) Type

func (e SceneCollectionChangedEvent) Type() string

Type returns the event's update type.

type SceneCollectionListChangedEvent

type SceneCollectionListChangedEvent struct {
	// Scene collections list.
	// Required: Yes.
	SceneCollections []map[string]interface{} `json:"sceneCollections"`
	// Scene collection name.
	// Required: Yes.
	SceneCollectionsName string `json:"sceneCollections.*.name"`
	// contains filtered or unexported fields
}

SceneCollectionListChangedEvent : Triggered when a scene collection is created, added, renamed, or removed.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#scenecollectionlistchanged

func (SceneCollectionListChangedEvent) RecTimecode

func (e SceneCollectionListChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneCollectionListChangedEvent) StreamTimecode

func (e SceneCollectionListChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneCollectionListChangedEvent) Type

func (e SceneCollectionListChangedEvent) Type() string

Type returns the event's update type.

type SceneItem

type SceneItem struct {
	CY              int          `json:"cy"`
	CX              int          `json:"cx"`
	Name            string       `json:"name"`
	ID              int          `json:"id"`
	Render          bool         `json:"render"` // Visible or not
	Locked          bool         `json:"locked"`
	SourceCX        int          `json:"source_cx"`
	SourceCY        int          `json:"source_cy"`
	Type            string       `json:"type"` // One of: "input", "filter", "transition", "scene" or "unknown"
	Volume          int          `json:"volume"`
	X               int          `json:"x"`
	Y               int          `json:"y"`
	ParentGroupName string       `json:"parentGroupName,omitempty"` // Name of the item's parent (if this item belongs to a group)
	GroupChildren   []*SceneItem `json:"groupChildren"`             // List of children (if this item is a group)
}

type SceneItemAddedEvent

type SceneItemAddedEvent struct {
	// Name of the scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Name of the item added to the scene.
	// Required: Yes.
	ItemName string `json:"item-name"`
	// Scene item ID.
	// Required: Yes.
	ItemID int `json:"item-id"`
	// contains filtered or unexported fields
}

SceneItemAddedEvent : A scene item has been added to a scene.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneitemadded

func (SceneItemAddedEvent) RecTimecode

func (e SceneItemAddedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneItemAddedEvent) StreamTimecode

func (e SceneItemAddedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneItemAddedEvent) Type

func (e SceneItemAddedEvent) Type() string

Type returns the event's update type.

type SceneItemDeselectedEvent

type SceneItemDeselectedEvent struct {
	// Name of the scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Name of the item in the scene.
	// Required: Yes.
	ItemName string `json:"item-name"`
	// Name of the item in the scene.
	// Required: Yes.
	ItemID int `json:"item-id"`
	// contains filtered or unexported fields
}

SceneItemDeselectedEvent : A scene item is deselected.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneitemdeselected

func (SceneItemDeselectedEvent) RecTimecode

func (e SceneItemDeselectedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneItemDeselectedEvent) StreamTimecode

func (e SceneItemDeselectedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneItemDeselectedEvent) Type

func (e SceneItemDeselectedEvent) Type() string

Type returns the event's update type.

type SceneItemLockChangedEvent

type SceneItemLockChangedEvent struct {
	// Name of the scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Name of the item in the scene.
	// Required: Yes.
	ItemName string `json:"item-name"`
	// Scene item ID.
	// Required: Yes.
	ItemID int `json:"item-id"`
	// New locked state of the item.
	// Required: Yes.
	ItemLocked bool `json:"item-locked"`
	// contains filtered or unexported fields
}

SceneItemLockChangedEvent : A scene item's locked status has been toggled.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneitemlockchanged

func (SceneItemLockChangedEvent) RecTimecode

func (e SceneItemLockChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneItemLockChangedEvent) StreamTimecode

func (e SceneItemLockChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneItemLockChangedEvent) Type

func (e SceneItemLockChangedEvent) Type() string

Type returns the event's update type.

type SceneItemRemovedEvent

type SceneItemRemovedEvent struct {
	// Name of the scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Name of the item removed from the scene.
	// Required: Yes.
	ItemName string `json:"item-name"`
	// Scene item ID.
	// Required: Yes.
	ItemID int `json:"item-id"`
	// contains filtered or unexported fields
}

SceneItemRemovedEvent : A scene item has been removed from a scene.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneitemremoved

func (SceneItemRemovedEvent) RecTimecode

func (e SceneItemRemovedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneItemRemovedEvent) StreamTimecode

func (e SceneItemRemovedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneItemRemovedEvent) Type

func (e SceneItemRemovedEvent) Type() string

Type returns the event's update type.

type SceneItemSelectedEvent

type SceneItemSelectedEvent struct {
	// Name of the scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Name of the item in the scene.
	// Required: Yes.
	ItemName string `json:"item-name"`
	// Name of the item in the scene.
	// Required: Yes.
	ItemID int `json:"item-id"`
	// contains filtered or unexported fields
}

SceneItemSelectedEvent : A scene item is selected.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneitemselected

func (SceneItemSelectedEvent) RecTimecode

func (e SceneItemSelectedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneItemSelectedEvent) StreamTimecode

func (e SceneItemSelectedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneItemSelectedEvent) Type

func (e SceneItemSelectedEvent) Type() string

Type returns the event's update type.

type SceneItemTransform

type SceneItemTransform struct {
}

type SceneItemTransformChangedEvent

type SceneItemTransformChangedEvent struct {
	// Name of the scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Name of the item in the scene.
	// Required: Yes.
	ItemName string `json:"item-name"`
	// Scene item ID.
	// Required: Yes.
	ItemID int `json:"item-id"`
	// Scene item transform properties.
	// Required: Yes.
	Transform *SceneItemTransform `json:"transform"`
	// contains filtered or unexported fields
}

SceneItemTransformChangedEvent : A scene item's transform has been changed.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneitemtransformchanged

func (SceneItemTransformChangedEvent) RecTimecode

func (e SceneItemTransformChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneItemTransformChangedEvent) StreamTimecode

func (e SceneItemTransformChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneItemTransformChangedEvent) Type

func (e SceneItemTransformChangedEvent) Type() string

Type returns the event's update type.

type SceneItemVisibilityChangedEvent

type SceneItemVisibilityChangedEvent struct {
	// Name of the scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Name of the item in the scene.
	// Required: Yes.
	ItemName string `json:"item-name"`
	// Scene item ID.
	// Required: Yes.
	ItemID int `json:"item-id"`
	// New visibility state of the item.
	// Required: Yes.
	ItemVisible bool `json:"item-visible"`
	// contains filtered or unexported fields
}

SceneItemVisibilityChangedEvent : A scene item's visibility has been toggled.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneitemvisibilitychanged

func (SceneItemVisibilityChangedEvent) RecTimecode

func (e SceneItemVisibilityChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SceneItemVisibilityChangedEvent) StreamTimecode

func (e SceneItemVisibilityChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SceneItemVisibilityChangedEvent) Type

func (e SceneItemVisibilityChangedEvent) Type() string

Type returns the event's update type.

type ScenesChangedEvent

type ScenesChangedEvent struct {
	// Scenes list.
	// Required: Yes.
	Scenes []*Scene `json:"scenes"`
	// contains filtered or unexported fields
}

ScenesChangedEvent :

Note: This event is not fired when the scenes are reordered.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sceneschanged

func (ScenesChangedEvent) RecTimecode

func (e ScenesChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (ScenesChangedEvent) StreamTimecode

func (e ScenesChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (ScenesChangedEvent) Type

func (e ScenesChangedEvent) Type() string

Type returns the event's update type.

type ScrubMediaRequest

type ScrubMediaRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Millisecond offset (positive or negative) to offset the current media position.
	// Required: Yes.
	TimeOffset int `json:"timeOffset"`
	// contains filtered or unexported fields
}

ScrubMediaRequest : Scrub media using a supplied offset Supports ffmpeg and vlc media sources (as of OBS v25.0.8) Note: Due to processing/network delays, this request is not perfect The processing rate of this request has also not been tested.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#scrubmedia

func NewScrubMediaRequest

func NewScrubMediaRequest(
	sourceName string,
	timeOffset int,
) ScrubMediaRequest

NewScrubMediaRequest returns a new ScrubMediaRequest.

func (ScrubMediaRequest) ID

func (r ScrubMediaRequest) ID() string

ID returns the request's message ID.

func (ScrubMediaRequest) Receive

Receive waits for the response.

func (*ScrubMediaRequest) Send

func (r *ScrubMediaRequest) Send(c Client) error

Send sends the request.

func (ScrubMediaRequest) SendReceive

func (r ScrubMediaRequest) SendReceive(c Client) (ScrubMediaResponse, error)

SendReceive sends the request then immediately waits for the response.

func (ScrubMediaRequest) Type

func (r ScrubMediaRequest) Type() string

Type returns the request's message type.

type ScrubMediaResponse

type ScrubMediaResponse struct {
	// contains filtered or unexported fields
}

ScrubMediaResponse : Response for ScrubMediaRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#scrubmedia

func (ScrubMediaResponse) Error

func (r ScrubMediaResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ScrubMediaResponse) ID

func (r ScrubMediaResponse) ID() string

ID returns the response's message ID.

func (ScrubMediaResponse) Status

func (r ScrubMediaResponse) Status() string

Status returns the response's status.

type SendCaptionsRequest

type SendCaptionsRequest struct {
	// Captions text.
	// Required: Yes.
	Text string `json:"text"`
	// contains filtered or unexported fields
}

SendCaptionsRequest : Send the provided text as embedded CEA-608 caption data.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sendcaptions

func NewSendCaptionsRequest

func NewSendCaptionsRequest(text string) SendCaptionsRequest

NewSendCaptionsRequest returns a new SendCaptionsRequest.

func (SendCaptionsRequest) ID

func (r SendCaptionsRequest) ID() string

ID returns the request's message ID.

func (SendCaptionsRequest) Receive

Receive waits for the response.

func (*SendCaptionsRequest) Send

func (r *SendCaptionsRequest) Send(c Client) error

Send sends the request.

func (SendCaptionsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SendCaptionsRequest) Type

func (r SendCaptionsRequest) Type() string

Type returns the request's message type.

type SendCaptionsResponse

type SendCaptionsResponse struct {
	// contains filtered or unexported fields
}

SendCaptionsResponse : Response for SendCaptionsRequest.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sendcaptions

func (SendCaptionsResponse) Error

func (r SendCaptionsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SendCaptionsResponse) ID

func (r SendCaptionsResponse) ID() string

ID returns the response's message ID.

func (SendCaptionsResponse) Status

func (r SendCaptionsResponse) Status() string

Status returns the response's status.

type SetAudioMonitorTypeRequest

type SetAudioMonitorTypeRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// The monitor type to use.
	// Options: `none`, `monitorOnly`, `monitorAndOutput`.
	// Required: Yes.
	MonitorType string `json:"monitorType"`
	// contains filtered or unexported fields
}

SetAudioMonitorTypeRequest : Set the audio monitoring type of the specified source.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setaudiomonitortype

func NewSetAudioMonitorTypeRequest

func NewSetAudioMonitorTypeRequest(
	sourceName string,
	monitorType string,
) SetAudioMonitorTypeRequest

NewSetAudioMonitorTypeRequest returns a new SetAudioMonitorTypeRequest.

func (SetAudioMonitorTypeRequest) ID

func (r SetAudioMonitorTypeRequest) ID() string

ID returns the request's message ID.

func (SetAudioMonitorTypeRequest) Receive

Receive waits for the response.

func (*SetAudioMonitorTypeRequest) Send

Send sends the request.

func (SetAudioMonitorTypeRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetAudioMonitorTypeRequest) Type

func (r SetAudioMonitorTypeRequest) Type() string

Type returns the request's message type.

type SetAudioMonitorTypeResponse

type SetAudioMonitorTypeResponse struct {
	// contains filtered or unexported fields
}

SetAudioMonitorTypeResponse : Response for SetAudioMonitorTypeRequest.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setaudiomonitortype

func (SetAudioMonitorTypeResponse) Error

func (r SetAudioMonitorTypeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetAudioMonitorTypeResponse) ID

func (r SetAudioMonitorTypeResponse) ID() string

ID returns the response's message ID.

func (SetAudioMonitorTypeResponse) Status

func (r SetAudioMonitorTypeResponse) Status() string

Status returns the response's status.

type SetAudioTracksRequest

type SetAudioTracksRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Audio tracks 1-6.
	// Required: Yes.
	Track int `json:"track"`
	// Whether audio track is active or not.
	// Required: Yes.
	Active bool `json:"active"`
	// contains filtered or unexported fields
}

SetAudioTracksRequest : Changes whether an audio track is active for a source.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setaudiotracks

func NewSetAudioTracksRequest

func NewSetAudioTracksRequest(
	sourceName string,
	track int,
	active bool,
) SetAudioTracksRequest

NewSetAudioTracksRequest returns a new SetAudioTracksRequest.

func (SetAudioTracksRequest) ID

func (r SetAudioTracksRequest) ID() string

ID returns the request's message ID.

func (SetAudioTracksRequest) Receive

Receive waits for the response.

func (*SetAudioTracksRequest) Send

func (r *SetAudioTracksRequest) Send(c Client) error

Send sends the request.

func (SetAudioTracksRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetAudioTracksRequest) Type

func (r SetAudioTracksRequest) Type() string

Type returns the request's message type.

type SetAudioTracksResponse

type SetAudioTracksResponse struct {
	// contains filtered or unexported fields
}

SetAudioTracksResponse : Response for SetAudioTracksRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setaudiotracks

func (SetAudioTracksResponse) Error

func (r SetAudioTracksResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetAudioTracksResponse) ID

func (r SetAudioTracksResponse) ID() string

ID returns the response's message ID.

func (SetAudioTracksResponse) Status

func (r SetAudioTracksResponse) Status() string

Status returns the response's status.

type SetBrowserSourcePropertiesRequest

type SetBrowserSourcePropertiesRequest struct {
	// Name of the source.
	// Required: Yes.
	Source string `json:"source"`
	// Indicates that a local file is in use.
	// Required: No.
	IsLocalFile bool `json:"is_local_file"`
	// file path.
	// Required: No.
	LocalFile string `json:"local_file"`
	// Url.
	// Required: No.
	Url string `json:"url"`
	// CSS to inject.
	// Required: No.
	Css string `json:"css"`
	// Width.
	// Required: No.
	Width int `json:"width"`
	// Height.
	// Required: No.
	Height int `json:"height"`
	// Framerate.
	// Required: No.
	FPS int `json:"fps"`
	// Indicates whether the source should be shutdown when not visible.
	// Required: No.
	Shutdown bool `json:"shutdown"`
	// Visibility of the scene item.
	// Required: No.
	Render bool `json:"render"`
	// contains filtered or unexported fields
}

SetBrowserSourcePropertiesRequest : Set current properties for a Browser Source.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setbrowsersourceproperties

func NewSetBrowserSourcePropertiesRequest

func NewSetBrowserSourcePropertiesRequest(
	source string,
	isLocalFile bool,
	localFile string,
	url string,
	css string,
	width int,
	height int,
	fps int,
	shutdown bool,
	render bool,
) SetBrowserSourcePropertiesRequest

NewSetBrowserSourcePropertiesRequest returns a new SetBrowserSourcePropertiesRequest.

func (SetBrowserSourcePropertiesRequest) ID

func (r SetBrowserSourcePropertiesRequest) ID() string

ID returns the request's message ID.

func (SetBrowserSourcePropertiesRequest) Receive

Receive waits for the response.

func (*SetBrowserSourcePropertiesRequest) Send

Send sends the request.

func (SetBrowserSourcePropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetBrowserSourcePropertiesRequest) Type

func (r SetBrowserSourcePropertiesRequest) Type() string

Type returns the request's message type.

type SetBrowserSourcePropertiesResponse

type SetBrowserSourcePropertiesResponse struct {
	// contains filtered or unexported fields
}

SetBrowserSourcePropertiesResponse : Response for SetBrowserSourcePropertiesRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setbrowsersourceproperties

func (SetBrowserSourcePropertiesResponse) Error

func (r SetBrowserSourcePropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetBrowserSourcePropertiesResponse) ID

func (r SetBrowserSourcePropertiesResponse) ID() string

ID returns the response's message ID.

func (SetBrowserSourcePropertiesResponse) Status

func (r SetBrowserSourcePropertiesResponse) Status() string

Status returns the response's status.

type SetCurrentProfileRequest

type SetCurrentProfileRequest struct {
	// Name of the desired profile.
	// Required: Yes.
	ProfileName string `json:"profile-name"`
	// contains filtered or unexported fields
}

SetCurrentProfileRequest : Set the currently active profile.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrentprofile

func NewSetCurrentProfileRequest

func NewSetCurrentProfileRequest(profileName string) SetCurrentProfileRequest

NewSetCurrentProfileRequest returns a new SetCurrentProfileRequest.

func (SetCurrentProfileRequest) ID

func (r SetCurrentProfileRequest) ID() string

ID returns the request's message ID.

func (SetCurrentProfileRequest) Receive

Receive waits for the response.

func (*SetCurrentProfileRequest) Send

Send sends the request.

func (SetCurrentProfileRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetCurrentProfileRequest) Type

func (r SetCurrentProfileRequest) Type() string

Type returns the request's message type.

type SetCurrentProfileResponse

type SetCurrentProfileResponse struct {
	// contains filtered or unexported fields
}

SetCurrentProfileResponse : Response for SetCurrentProfileRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrentprofile

func (SetCurrentProfileResponse) Error

func (r SetCurrentProfileResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetCurrentProfileResponse) ID

func (r SetCurrentProfileResponse) ID() string

ID returns the response's message ID.

func (SetCurrentProfileResponse) Status

func (r SetCurrentProfileResponse) Status() string

Status returns the response's status.

type SetCurrentSceneCollectionRequest

type SetCurrentSceneCollectionRequest struct {
	// Name of the desired scene collection.
	// Required: Yes.
	ScName string `json:"sc-name"`
	// contains filtered or unexported fields
}

SetCurrentSceneCollectionRequest : Change the active scene collection.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrentscenecollection

func NewSetCurrentSceneCollectionRequest

func NewSetCurrentSceneCollectionRequest(scName string) SetCurrentSceneCollectionRequest

NewSetCurrentSceneCollectionRequest returns a new SetCurrentSceneCollectionRequest.

func (SetCurrentSceneCollectionRequest) ID

func (r SetCurrentSceneCollectionRequest) ID() string

ID returns the request's message ID.

func (SetCurrentSceneCollectionRequest) Receive

Receive waits for the response.

func (*SetCurrentSceneCollectionRequest) Send

Send sends the request.

func (SetCurrentSceneCollectionRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetCurrentSceneCollectionRequest) Type

func (r SetCurrentSceneCollectionRequest) Type() string

Type returns the request's message type.

type SetCurrentSceneCollectionResponse

type SetCurrentSceneCollectionResponse struct {
	// contains filtered or unexported fields
}

SetCurrentSceneCollectionResponse : Response for SetCurrentSceneCollectionRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrentscenecollection

func (SetCurrentSceneCollectionResponse) Error

func (r SetCurrentSceneCollectionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetCurrentSceneCollectionResponse) ID

func (r SetCurrentSceneCollectionResponse) ID() string

ID returns the response's message ID.

func (SetCurrentSceneCollectionResponse) Status

func (r SetCurrentSceneCollectionResponse) Status() string

Status returns the response's status.

type SetCurrentSceneRequest

type SetCurrentSceneRequest struct {
	// Name of the scene to switch to.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// contains filtered or unexported fields
}

SetCurrentSceneRequest : Switch to the specified scene.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrentscene

func NewSetCurrentSceneRequest

func NewSetCurrentSceneRequest(sceneName string) SetCurrentSceneRequest

NewSetCurrentSceneRequest returns a new SetCurrentSceneRequest.

func (SetCurrentSceneRequest) ID

func (r SetCurrentSceneRequest) ID() string

ID returns the request's message ID.

func (SetCurrentSceneRequest) Receive

Receive waits for the response.

func (*SetCurrentSceneRequest) Send

func (r *SetCurrentSceneRequest) Send(c Client) error

Send sends the request.

func (SetCurrentSceneRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetCurrentSceneRequest) Type

func (r SetCurrentSceneRequest) Type() string

Type returns the request's message type.

type SetCurrentSceneResponse

type SetCurrentSceneResponse struct {
	// contains filtered or unexported fields
}

SetCurrentSceneResponse : Response for SetCurrentSceneRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrentscene

func (SetCurrentSceneResponse) Error

func (r SetCurrentSceneResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetCurrentSceneResponse) ID

func (r SetCurrentSceneResponse) ID() string

ID returns the response's message ID.

func (SetCurrentSceneResponse) Status

func (r SetCurrentSceneResponse) Status() string

Status returns the response's status.

type SetCurrentTransitionRequest

type SetCurrentTransitionRequest struct {
	// The name of the transition.
	// Required: Yes.
	TransitionName string `json:"transition-name"`
	// contains filtered or unexported fields
}

SetCurrentTransitionRequest : Set the active transition.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrenttransition

func NewSetCurrentTransitionRequest

func NewSetCurrentTransitionRequest(transitionName string) SetCurrentTransitionRequest

NewSetCurrentTransitionRequest returns a new SetCurrentTransitionRequest.

func (SetCurrentTransitionRequest) ID

func (r SetCurrentTransitionRequest) ID() string

ID returns the request's message ID.

func (SetCurrentTransitionRequest) Receive

Receive waits for the response.

func (*SetCurrentTransitionRequest) Send

Send sends the request.

func (SetCurrentTransitionRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetCurrentTransitionRequest) Type

func (r SetCurrentTransitionRequest) Type() string

Type returns the request's message type.

type SetCurrentTransitionResponse

type SetCurrentTransitionResponse struct {
	// contains filtered or unexported fields
}

SetCurrentTransitionResponse : Response for SetCurrentTransitionRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setcurrenttransition

func (SetCurrentTransitionResponse) Error

func (r SetCurrentTransitionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetCurrentTransitionResponse) ID

func (r SetCurrentTransitionResponse) ID() string

ID returns the response's message ID.

func (SetCurrentTransitionResponse) Status

func (r SetCurrentTransitionResponse) Status() string

Status returns the response's status.

type SetFilenameFormattingRequest

type SetFilenameFormattingRequest struct {
	// Filename formatting string to set.
	// Required: Yes.
	FilenameFormatting string `json:"filename-formatting"`
	// contains filtered or unexported fields
}

SetFilenameFormattingRequest : Set the filename formatting string.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setfilenameformatting

func NewSetFilenameFormattingRequest

func NewSetFilenameFormattingRequest(filenameFormatting string) SetFilenameFormattingRequest

NewSetFilenameFormattingRequest returns a new SetFilenameFormattingRequest.

func (SetFilenameFormattingRequest) ID

func (r SetFilenameFormattingRequest) ID() string

ID returns the request's message ID.

func (SetFilenameFormattingRequest) Receive

Receive waits for the response.

func (*SetFilenameFormattingRequest) Send

Send sends the request.

func (SetFilenameFormattingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetFilenameFormattingRequest) Type

func (r SetFilenameFormattingRequest) Type() string

Type returns the request's message type.

type SetFilenameFormattingResponse

type SetFilenameFormattingResponse struct {
	// contains filtered or unexported fields
}

SetFilenameFormattingResponse : Response for SetFilenameFormattingRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setfilenameformatting

func (SetFilenameFormattingResponse) Error

func (r SetFilenameFormattingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetFilenameFormattingResponse) ID

func (r SetFilenameFormattingResponse) ID() string

ID returns the response's message ID.

func (SetFilenameFormattingResponse) Status

func (r SetFilenameFormattingResponse) Status() string

Status returns the response's status.

type SetHeartbeatRequest

type SetHeartbeatRequest struct {
	// Starts/Stops emitting heartbeat messages.
	// Required: Yes.
	Enable bool `json:"enable"`
	// contains filtered or unexported fields
}

SetHeartbeatRequest : Enable/disable sending of the Heartbeat event.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setheartbeat

func NewSetHeartbeatRequest

func NewSetHeartbeatRequest(enable bool) SetHeartbeatRequest

NewSetHeartbeatRequest returns a new SetHeartbeatRequest.

func (SetHeartbeatRequest) ID

func (r SetHeartbeatRequest) ID() string

ID returns the request's message ID.

func (SetHeartbeatRequest) Receive

Receive waits for the response.

func (*SetHeartbeatRequest) Send

func (r *SetHeartbeatRequest) Send(c Client) error

Send sends the request.

func (SetHeartbeatRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetHeartbeatRequest) Type

func (r SetHeartbeatRequest) Type() string

Type returns the request's message type.

type SetHeartbeatResponse

type SetHeartbeatResponse struct {
	// contains filtered or unexported fields
}

SetHeartbeatResponse : Response for SetHeartbeatRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setheartbeat

func (SetHeartbeatResponse) Error

func (r SetHeartbeatResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetHeartbeatResponse) ID

func (r SetHeartbeatResponse) ID() string

ID returns the response's message ID.

func (SetHeartbeatResponse) Status

func (r SetHeartbeatResponse) Status() string

Status returns the response's status.

type SetMediaTimeRequest

type SetMediaTimeRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Milliseconds to set the timestamp to.
	// Required: Yes.
	Timestamp int `json:"timestamp"`
	// contains filtered or unexported fields
}

SetMediaTimeRequest : Set the timestamp of a media source Supports ffmpeg and vlc media sources (as of OBS v25.0.8).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setmediatime

func NewSetMediaTimeRequest

func NewSetMediaTimeRequest(
	sourceName string,
	timestamp int,
) SetMediaTimeRequest

NewSetMediaTimeRequest returns a new SetMediaTimeRequest.

func (SetMediaTimeRequest) ID

func (r SetMediaTimeRequest) ID() string

ID returns the request's message ID.

func (SetMediaTimeRequest) Receive

Receive waits for the response.

func (*SetMediaTimeRequest) Send

func (r *SetMediaTimeRequest) Send(c Client) error

Send sends the request.

func (SetMediaTimeRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetMediaTimeRequest) Type

func (r SetMediaTimeRequest) Type() string

Type returns the request's message type.

type SetMediaTimeResponse

type SetMediaTimeResponse struct {
	// contains filtered or unexported fields
}

SetMediaTimeResponse : Response for SetMediaTimeRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setmediatime

func (SetMediaTimeResponse) Error

func (r SetMediaTimeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetMediaTimeResponse) ID

func (r SetMediaTimeResponse) ID() string

ID returns the response's message ID.

func (SetMediaTimeResponse) Status

func (r SetMediaTimeResponse) Status() string

Status returns the response's status.

type SetMuteRequest

type SetMuteRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// Desired mute status.
	// Required: Yes.
	Mute bool `json:"mute"`
	// contains filtered or unexported fields
}

SetMuteRequest : Sets the mute status of a specified source.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setmute

func NewSetMuteRequest

func NewSetMuteRequest(
	source string,
	mute bool,
) SetMuteRequest

NewSetMuteRequest returns a new SetMuteRequest.

func (SetMuteRequest) ID

func (r SetMuteRequest) ID() string

ID returns the request's message ID.

func (SetMuteRequest) Receive

func (r SetMuteRequest) Receive() (SetMuteResponse, error)

Receive waits for the response.

func (*SetMuteRequest) Send

func (r *SetMuteRequest) Send(c Client) error

Send sends the request.

func (SetMuteRequest) SendReceive

func (r SetMuteRequest) SendReceive(c Client) (SetMuteResponse, error)

SendReceive sends the request then immediately waits for the response.

func (SetMuteRequest) Type

func (r SetMuteRequest) Type() string

Type returns the request's message type.

type SetMuteResponse

type SetMuteResponse struct {
	// contains filtered or unexported fields
}

SetMuteResponse : Response for SetMuteRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setmute

func (SetMuteResponse) Error

func (r SetMuteResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetMuteResponse) ID

func (r SetMuteResponse) ID() string

ID returns the response's message ID.

func (SetMuteResponse) Status

func (r SetMuteResponse) Status() string

Status returns the response's status.

type SetPreviewSceneRequest

type SetPreviewSceneRequest struct {
	// The name of the scene to preview.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// contains filtered or unexported fields
}

SetPreviewSceneRequest : Set the active preview scene. Will return an `error` if Studio Mode is not enabled.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setpreviewscene

func NewSetPreviewSceneRequest

func NewSetPreviewSceneRequest(sceneName string) SetPreviewSceneRequest

NewSetPreviewSceneRequest returns a new SetPreviewSceneRequest.

func (SetPreviewSceneRequest) ID

func (r SetPreviewSceneRequest) ID() string

ID returns the request's message ID.

func (SetPreviewSceneRequest) Receive

Receive waits for the response.

func (*SetPreviewSceneRequest) Send

func (r *SetPreviewSceneRequest) Send(c Client) error

Send sends the request.

func (SetPreviewSceneRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetPreviewSceneRequest) Type

func (r SetPreviewSceneRequest) Type() string

Type returns the request's message type.

type SetPreviewSceneResponse

type SetPreviewSceneResponse struct {
	// contains filtered or unexported fields
}

SetPreviewSceneResponse : Response for SetPreviewSceneRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setpreviewscene

func (SetPreviewSceneResponse) Error

func (r SetPreviewSceneResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetPreviewSceneResponse) ID

func (r SetPreviewSceneResponse) ID() string

ID returns the response's message ID.

func (SetPreviewSceneResponse) Status

func (r SetPreviewSceneResponse) Status() string

Status returns the response's status.

type SetRecordingFolderRequest

type SetRecordingFolderRequest struct {
	// Path of the recording folder.
	// Required: Yes.
	RecFolder string `json:"rec-folder"`
	// contains filtered or unexported fields
}

SetRecordingFolderRequest :

Note: If `SetRecordingFolder` is called while a recording is in progress, the change won't be applied immediately and will be effective on the next recording.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setrecordingfolder

func NewSetRecordingFolderRequest

func NewSetRecordingFolderRequest(recFolder string) SetRecordingFolderRequest

NewSetRecordingFolderRequest returns a new SetRecordingFolderRequest.

func (SetRecordingFolderRequest) ID

func (r SetRecordingFolderRequest) ID() string

ID returns the request's message ID.

func (SetRecordingFolderRequest) Receive

Receive waits for the response.

func (*SetRecordingFolderRequest) Send

Send sends the request.

func (SetRecordingFolderRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetRecordingFolderRequest) Type

func (r SetRecordingFolderRequest) Type() string

Type returns the request's message type.

type SetRecordingFolderResponse

type SetRecordingFolderResponse struct {
	// contains filtered or unexported fields
}

SetRecordingFolderResponse : Response for SetRecordingFolderRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setrecordingfolder

func (SetRecordingFolderResponse) Error

func (r SetRecordingFolderResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetRecordingFolderResponse) ID

func (r SetRecordingFolderResponse) ID() string

ID returns the response's message ID.

func (SetRecordingFolderResponse) Status

func (r SetRecordingFolderResponse) Status() string

Status returns the response's status.

type SetSceneItemCropRequest

type SetSceneItemCropRequest struct {
	// Name of the scene the scene item belongs to.
	// Defaults to the current scene.
	// Required: No.
	SceneName string `json:"scene-name"`
	// Scene Item name.
	// Required: Yes.
	Item string `json:"item"`
	// Pixel position of the top of the source item.
	// Required: Yes.
	Top int `json:"top"`
	// Pixel position of the bottom of the source item.
	// Required: Yes.
	Bottom int `json:"bottom"`
	// Pixel position of the left of the source item.
	// Required: Yes.
	Left int `json:"left"`
	// Pixel position of the right of the source item.
	// Required: Yes.
	Right int `json:"right"`
	// contains filtered or unexported fields
}

SetSceneItemCropRequest : Sets the crop coordinates of the specified source item.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemcrop

func NewSetSceneItemCropRequest

func NewSetSceneItemCropRequest(
	sceneName string,
	item string,
	top int,
	bottom int,
	left int,
	right int,
) SetSceneItemCropRequest

NewSetSceneItemCropRequest returns a new SetSceneItemCropRequest.

func (SetSceneItemCropRequest) ID

func (r SetSceneItemCropRequest) ID() string

ID returns the request's message ID.

func (SetSceneItemCropRequest) Receive

Receive waits for the response.

func (*SetSceneItemCropRequest) Send

Send sends the request.

func (SetSceneItemCropRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSceneItemCropRequest) Type

func (r SetSceneItemCropRequest) Type() string

Type returns the request's message type.

type SetSceneItemCropResponse

type SetSceneItemCropResponse struct {
	// contains filtered or unexported fields
}

SetSceneItemCropResponse : Response for SetSceneItemCropRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemcrop

func (SetSceneItemCropResponse) Error

func (r SetSceneItemCropResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSceneItemCropResponse) ID

func (r SetSceneItemCropResponse) ID() string

ID returns the response's message ID.

func (SetSceneItemCropResponse) Status

func (r SetSceneItemCropResponse) Status() string

Status returns the response's status.

type SetSceneItemPositionRequest

type SetSceneItemPositionRequest struct {
	// Name of the scene the scene item belongs to.
	// Defaults to the current scene.
	// Required: No.
	SceneName string `json:"scene-name"`
	// Scene Item name.
	// Required: Yes.
	Item string `json:"item"`
	// X coordinate.
	// Required: Yes.
	X float64 `json:"x"`
	// Y coordinate.
	// Required: Yes.
	Y float64 `json:"y"`
	// contains filtered or unexported fields
}

SetSceneItemPositionRequest : Sets the coordinates of a specified source item.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemposition

func NewSetSceneItemPositionRequest

func NewSetSceneItemPositionRequest(
	sceneName string,
	item string,
	x float64,
	y float64,
) SetSceneItemPositionRequest

NewSetSceneItemPositionRequest returns a new SetSceneItemPositionRequest.

func (SetSceneItemPositionRequest) ID

func (r SetSceneItemPositionRequest) ID() string

ID returns the request's message ID.

func (SetSceneItemPositionRequest) Receive

Receive waits for the response.

func (*SetSceneItemPositionRequest) Send

Send sends the request.

func (SetSceneItemPositionRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSceneItemPositionRequest) Type

func (r SetSceneItemPositionRequest) Type() string

Type returns the request's message type.

type SetSceneItemPositionResponse

type SetSceneItemPositionResponse struct {
	// contains filtered or unexported fields
}

SetSceneItemPositionResponse : Response for SetSceneItemPositionRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemposition

func (SetSceneItemPositionResponse) Error

func (r SetSceneItemPositionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSceneItemPositionResponse) ID

func (r SetSceneItemPositionResponse) ID() string

ID returns the response's message ID.

func (SetSceneItemPositionResponse) Status

func (r SetSceneItemPositionResponse) Status() string

Status returns the response's status.

type SetSceneItemPropertiesRequest

type SetSceneItemPropertiesRequest struct {
	// Name of the scene the source item belongs to.
	// Defaults to the current scene.
	// Required: No.
	SceneName string `json:"scene-name"`
	// Scene Item name (if this field is a string) or specification (if it is an object).
	// Required: Yes.
	Item interface{} `json:"item"`
	// Scene Item name (if the `item` field is an object).
	// Required: No.
	ItemName string `json:"item.name"`
	// Scene Item ID (if the `item` field is an object).
	// Required: No.
	ItemID int `json:"item.id"`
	// The new x position of the source.
	// Required: No.
	PositionX float64 `json:"position.x"`
	// The new y position of the source.
	// Required: No.
	PositionY float64 `json:"position.y"`
	// The new alignment of the source.
	// Required: No.
	PositionAlignment int `json:"position.alignment"`
	// The new clockwise rotation of the item in degrees.
	// Required: No.
	Rotation float64 `json:"rotation"`
	// The new x scale of the item.
	// Required: No.
	ScaleX float64 `json:"scale.x"`
	// The new y scale of the item.
	// Required: No.
	ScaleY float64 `json:"scale.y"`
	// The new scale filter of the source.
	// Can be "OBS_SCALE_DISABLE", "OBS_SCALE_POINT", "OBS_SCALE_BICUBIC", "OBS_SCALE_BILINEAR", "OBS_SCALE_LANCZOS" or "OBS_SCALE_AREA".
	// Required: No.
	ScaleFilter string `json:"scale.filter"`
	// The new amount of pixels cropped off the top of the source before scaling.
	// Required: No.
	CropTop int `json:"crop.top"`
	// The new amount of pixels cropped off the bottom of the source before scaling.
	// Required: No.
	CropBottom int `json:"crop.bottom"`
	// The new amount of pixels cropped off the left of the source before scaling.
	// Required: No.
	CropLeft int `json:"crop.left"`
	// The new amount of pixels cropped off the right of the source before scaling.
	// Required: No.
	CropRight int `json:"crop.right"`
	// The new visibility of the source.
	// 'true' shows source, 'false' hides source.
	// Required: No.
	Visible bool `json:"visible"`
	// The new locked status of the source.
	// 'true' keeps it in its current position, 'false' allows movement.
	// Required: No.
	Locked bool `json:"locked"`
	// The new bounds type of the source.
	// Can be "OBS_BOUNDS_STRETCH", "OBS_BOUNDS_SCALE_INNER", "OBS_BOUNDS_SCALE_OUTER", "OBS_BOUNDS_SCALE_TO_WIDTH", "OBS_BOUNDS_SCALE_TO_HEIGHT", "OBS_BOUNDS_MAX_ONLY" or "OBS_BOUNDS_NONE".
	// Required: No.
	BoundsType string `json:"bounds.type"`
	// The new alignment of the bounding box.
	// (0-2, 4-6, 8-10).
	// Required: No.
	BoundsAlignment int `json:"bounds.alignment"`
	// The new width of the bounding box.
	// Required: No.
	BoundsX float64 `json:"bounds.x"`
	// The new height of the bounding box.
	// Required: No.
	BoundsY float64 `json:"bounds.y"`
	// contains filtered or unexported fields
}

SetSceneItemPropertiesRequest : Sets the scene specific properties of a source Unspecified properties will remain unchanged. Coordinates are relative to the item's parent (the scene or group it belongs to).

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemproperties

func NewSetSceneItemPropertiesRequest

func NewSetSceneItemPropertiesRequest(
	sceneName string,
	item interface{},
	itemName string,
	itemID int,
	positionX float64,
	positionY float64,
	positionAlignment int,
	rotation float64,
	scaleX float64,
	scaleY float64,
	scaleFilter string,
	cropTop int,
	cropBottom int,
	cropLeft int,
	cropRight int,
	visible bool,
	locked bool,
	boundsType string,
	boundsAlignment int,
	boundsX float64,
	boundsY float64,
) SetSceneItemPropertiesRequest

NewSetSceneItemPropertiesRequest returns a new SetSceneItemPropertiesRequest.

func (SetSceneItemPropertiesRequest) ID

func (r SetSceneItemPropertiesRequest) ID() string

ID returns the request's message ID.

func (SetSceneItemPropertiesRequest) Receive

Receive waits for the response.

func (*SetSceneItemPropertiesRequest) Send

Send sends the request.

func (SetSceneItemPropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSceneItemPropertiesRequest) Type

func (r SetSceneItemPropertiesRequest) Type() string

Type returns the request's message type.

type SetSceneItemPropertiesResponse

type SetSceneItemPropertiesResponse struct {
	// contains filtered or unexported fields
}

SetSceneItemPropertiesResponse : Response for SetSceneItemPropertiesRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemproperties

func (SetSceneItemPropertiesResponse) Error

func (r SetSceneItemPropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSceneItemPropertiesResponse) ID

func (r SetSceneItemPropertiesResponse) ID() string

ID returns the response's message ID.

func (SetSceneItemPropertiesResponse) Status

func (r SetSceneItemPropertiesResponse) Status() string

Status returns the response's status.

type SetSceneItemRenderRequest

type SetSceneItemRenderRequest struct {
	// Name of the scene the scene item belongs to.
	// Defaults to the currently active scene.
	// Required: No.
	SceneName string `json:"scene-name"`
	// Scene Item name.
	// Required: No.
	Source string `json:"source"`
	// Scene Item id.
	// Required: No.
	Item int `json:"item"`
	// true = shown ; false = hidden.
	// Required: Yes.
	Render bool `json:"render"`
	// contains filtered or unexported fields
}

SetSceneItemRenderRequest : Show or hide a specified source item in a specified scene.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemrender

func NewSetSceneItemRenderRequest

func NewSetSceneItemRenderRequest(
	sceneName string,
	source string,
	item int,
	render bool,
) SetSceneItemRenderRequest

NewSetSceneItemRenderRequest returns a new SetSceneItemRenderRequest.

func (SetSceneItemRenderRequest) ID

func (r SetSceneItemRenderRequest) ID() string

ID returns the request's message ID.

func (SetSceneItemRenderRequest) Receive

Receive waits for the response.

func (*SetSceneItemRenderRequest) Send

Send sends the request.

func (SetSceneItemRenderRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSceneItemRenderRequest) Type

func (r SetSceneItemRenderRequest) Type() string

Type returns the request's message type.

type SetSceneItemRenderResponse

type SetSceneItemRenderResponse struct {
	// contains filtered or unexported fields
}

SetSceneItemRenderResponse : Response for SetSceneItemRenderRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemrender

func (SetSceneItemRenderResponse) Error

func (r SetSceneItemRenderResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSceneItemRenderResponse) ID

func (r SetSceneItemRenderResponse) ID() string

ID returns the response's message ID.

func (SetSceneItemRenderResponse) Status

func (r SetSceneItemRenderResponse) Status() string

Status returns the response's status.

type SetSceneItemTransformRequest

type SetSceneItemTransformRequest struct {
	// Name of the scene the scene item belongs to.
	// Defaults to the current scene.
	// Required: No.
	SceneName string `json:"scene-name"`
	// Scene Item name.
	// Required: Yes.
	Item string `json:"item"`
	// Width scale factor.
	// Required: Yes.
	XScale float64 `json:"x-scale"`
	// Height scale factor.
	// Required: Yes.
	YScale float64 `json:"y-scale"`
	// Source item rotation (in degrees).
	// Required: Yes.
	Rotation float64 `json:"rotation"`
	// contains filtered or unexported fields
}

SetSceneItemTransformRequest : Set the transform of the specified source item.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemtransform

func NewSetSceneItemTransformRequest

func NewSetSceneItemTransformRequest(
	sceneName string,
	item string,
	xScale float64,
	yScale float64,
	rotation float64,
) SetSceneItemTransformRequest

NewSetSceneItemTransformRequest returns a new SetSceneItemTransformRequest.

func (SetSceneItemTransformRequest) ID

func (r SetSceneItemTransformRequest) ID() string

ID returns the request's message ID.

func (SetSceneItemTransformRequest) Receive

Receive waits for the response.

func (*SetSceneItemTransformRequest) Send

Send sends the request.

func (SetSceneItemTransformRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSceneItemTransformRequest) Type

func (r SetSceneItemTransformRequest) Type() string

Type returns the request's message type.

type SetSceneItemTransformResponse

type SetSceneItemTransformResponse struct {
	// contains filtered or unexported fields
}

SetSceneItemTransformResponse : Response for SetSceneItemTransformRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsceneitemtransform

func (SetSceneItemTransformResponse) Error

func (r SetSceneItemTransformResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSceneItemTransformResponse) ID

func (r SetSceneItemTransformResponse) ID() string

ID returns the response's message ID.

func (SetSceneItemTransformResponse) Status

func (r SetSceneItemTransformResponse) Status() string

Status returns the response's status.

type SetSceneTransitionOverrideRequest

type SetSceneTransitionOverrideRequest struct {
	// Name of the scene to switch to.
	// Required: Yes.
	SceneName string `json:"sceneName"`
	// Name of the transition to use.
	// Required: Yes.
	TransitionName string `json:"transitionName"`
	// Duration in milliseconds of the transition if transition is not fixed.
	// Defaults to the current duration specified in the UI if there is no current override and this value is not given.
	// Required: Yes.
	TransitionDuration int `json:"transitionDuration"`
	// contains filtered or unexported fields
}

SetSceneTransitionOverrideRequest : Set a scene to use a specific transition override.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setscenetransitionoverride

func NewSetSceneTransitionOverrideRequest

func NewSetSceneTransitionOverrideRequest(
	sceneName string,
	transitionName string,
	transitionDuration int,
) SetSceneTransitionOverrideRequest

NewSetSceneTransitionOverrideRequest returns a new SetSceneTransitionOverrideRequest.

func (SetSceneTransitionOverrideRequest) ID

func (r SetSceneTransitionOverrideRequest) ID() string

ID returns the request's message ID.

func (SetSceneTransitionOverrideRequest) Receive

Receive waits for the response.

func (*SetSceneTransitionOverrideRequest) Send

Send sends the request.

func (SetSceneTransitionOverrideRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSceneTransitionOverrideRequest) Type

func (r SetSceneTransitionOverrideRequest) Type() string

Type returns the request's message type.

type SetSceneTransitionOverrideResponse

type SetSceneTransitionOverrideResponse struct {
	// contains filtered or unexported fields
}

SetSceneTransitionOverrideResponse : Response for SetSceneTransitionOverrideRequest.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setscenetransitionoverride

func (SetSceneTransitionOverrideResponse) Error

func (r SetSceneTransitionOverrideResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSceneTransitionOverrideResponse) ID

func (r SetSceneTransitionOverrideResponse) ID() string

ID returns the response's message ID.

func (SetSceneTransitionOverrideResponse) Status

func (r SetSceneTransitionOverrideResponse) Status() string

Status returns the response's status.

type SetSourceFilterSettingsRequest

type SetSourceFilterSettingsRequest struct {
	// Name of the source to which the filter belongs.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Name of the filter to reconfigure.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// New settings.
	// These will be merged to the current filter settings.
	// Required: Yes.
	FilterSettings map[string]interface{} `json:"filterSettings"`
	// contains filtered or unexported fields
}

SetSourceFilterSettingsRequest : Update settings of a filter.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcefiltersettings

func NewSetSourceFilterSettingsRequest

func NewSetSourceFilterSettingsRequest(
	sourceName string,
	filterName string,
	filterSettings map[string]interface{},
) SetSourceFilterSettingsRequest

NewSetSourceFilterSettingsRequest returns a new SetSourceFilterSettingsRequest.

func (SetSourceFilterSettingsRequest) ID

func (r SetSourceFilterSettingsRequest) ID() string

ID returns the request's message ID.

func (SetSourceFilterSettingsRequest) Receive

Receive waits for the response.

func (*SetSourceFilterSettingsRequest) Send

Send sends the request.

func (SetSourceFilterSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSourceFilterSettingsRequest) Type

func (r SetSourceFilterSettingsRequest) Type() string

Type returns the request's message type.

type SetSourceFilterSettingsResponse

type SetSourceFilterSettingsResponse struct {
	// contains filtered or unexported fields
}

SetSourceFilterSettingsResponse : Response for SetSourceFilterSettingsRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcefiltersettings

func (SetSourceFilterSettingsResponse) Error

func (r SetSourceFilterSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSourceFilterSettingsResponse) ID

func (r SetSourceFilterSettingsResponse) ID() string

ID returns the response's message ID.

func (SetSourceFilterSettingsResponse) Status

func (r SetSourceFilterSettingsResponse) Status() string

Status returns the response's status.

type SetSourceFilterVisibilityRequest

type SetSourceFilterVisibilityRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Source filter name.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// New filter state.
	// Required: Yes.
	FilterEnabled bool `json:"filterEnabled"`
	// contains filtered or unexported fields
}

SetSourceFilterVisibilityRequest : Change the visibility/enabled state of a filter.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcefiltervisibility

func NewSetSourceFilterVisibilityRequest

func NewSetSourceFilterVisibilityRequest(
	sourceName string,
	filterName string,
	filterEnabled bool,
) SetSourceFilterVisibilityRequest

NewSetSourceFilterVisibilityRequest returns a new SetSourceFilterVisibilityRequest.

func (SetSourceFilterVisibilityRequest) ID

func (r SetSourceFilterVisibilityRequest) ID() string

ID returns the request's message ID.

func (SetSourceFilterVisibilityRequest) Receive

Receive waits for the response.

func (*SetSourceFilterVisibilityRequest) Send

Send sends the request.

func (SetSourceFilterVisibilityRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSourceFilterVisibilityRequest) Type

func (r SetSourceFilterVisibilityRequest) Type() string

Type returns the request's message type.

type SetSourceFilterVisibilityResponse

type SetSourceFilterVisibilityResponse struct {
	// contains filtered or unexported fields
}

SetSourceFilterVisibilityResponse : Response for SetSourceFilterVisibilityRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcefiltervisibility

func (SetSourceFilterVisibilityResponse) Error

func (r SetSourceFilterVisibilityResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSourceFilterVisibilityResponse) ID

func (r SetSourceFilterVisibilityResponse) ID() string

ID returns the response's message ID.

func (SetSourceFilterVisibilityResponse) Status

func (r SetSourceFilterVisibilityResponse) Status() string

Status returns the response's status.

type SetSourceNameRequest

type SetSourceNameRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// New source name.
	// Required: Yes.
	NewName string `json:"newName"`
	// contains filtered or unexported fields
}

SetSourceNameRequest :

Note: If the new name already exists as a source, obs-websocket will return an error.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcename

func NewSetSourceNameRequest

func NewSetSourceNameRequest(
	sourceName string,
	newName string,
) SetSourceNameRequest

NewSetSourceNameRequest returns a new SetSourceNameRequest.

func (SetSourceNameRequest) ID

func (r SetSourceNameRequest) ID() string

ID returns the request's message ID.

func (SetSourceNameRequest) Receive

Receive waits for the response.

func (*SetSourceNameRequest) Send

func (r *SetSourceNameRequest) Send(c Client) error

Send sends the request.

func (SetSourceNameRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSourceNameRequest) Type

func (r SetSourceNameRequest) Type() string

Type returns the request's message type.

type SetSourceNameResponse

type SetSourceNameResponse struct {
	// contains filtered or unexported fields
}

SetSourceNameResponse : Response for SetSourceNameRequest.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcename

func (SetSourceNameResponse) Error

func (r SetSourceNameResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSourceNameResponse) ID

func (r SetSourceNameResponse) ID() string

ID returns the response's message ID.

func (SetSourceNameResponse) Status

func (r SetSourceNameResponse) Status() string

Status returns the response's status.

type SetSourceSettingsRequest

type SetSourceSettingsRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Type of the specified source.
	// Useful for type-checking to avoid settings a set of settings incompatible with the actual source's type.
	// Required: No.
	SourceType string `json:"sourceType"`
	// Source settings (varies between source types, may require some probing around).
	// Required: Yes.
	SourceSettings map[string]interface{} `json:"sourceSettings"`
	// contains filtered or unexported fields
}

SetSourceSettingsRequest : Set settings of the specified source.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcesettings

func NewSetSourceSettingsRequest

func NewSetSourceSettingsRequest(
	sourceName string,
	sourceType string,
	sourceSettings map[string]interface{},
) SetSourceSettingsRequest

NewSetSourceSettingsRequest returns a new SetSourceSettingsRequest.

func (SetSourceSettingsRequest) ID

func (r SetSourceSettingsRequest) ID() string

ID returns the request's message ID.

func (SetSourceSettingsRequest) Receive

Receive waits for the response.

func (*SetSourceSettingsRequest) Send

Send sends the request.

func (SetSourceSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSourceSettingsRequest) Type

func (r SetSourceSettingsRequest) Type() string

Type returns the request's message type.

type SetSourceSettingsResponse

type SetSourceSettingsResponse struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Type of the specified source.
	// Required: Yes.
	SourceType string `json:"sourceType"`
	// Updated source settings.
	// Required: Yes.
	SourceSettings map[string]interface{} `json:"sourceSettings"`
	// contains filtered or unexported fields
}

SetSourceSettingsResponse : Response for SetSourceSettingsRequest.

Since obs-websocket version: 4.3.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsourcesettings

func (SetSourceSettingsResponse) Error

func (r SetSourceSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSourceSettingsResponse) ID

func (r SetSourceSettingsResponse) ID() string

ID returns the response's message ID.

func (SetSourceSettingsResponse) Status

func (r SetSourceSettingsResponse) Status() string

Status returns the response's status.

type SetStreamSettingsRequest

type SetStreamSettingsRequest struct {
	// The type of streaming service configuration, usually `rtmp_custom` or `rtmp_common`.
	// Required: Yes.
	Type_ string `json:"type"`
	// The actual settings of the stream.
	// Required: Yes.
	Settings map[string]interface{} `json:"settings"`
	// The publish URL.
	// Required: No.
	SettingsServer string `json:"settings.server"`
	// The publish key.
	// Required: No.
	SettingsKey string `json:"settings.key"`
	// Indicates whether authentication should be used when connecting to the streaming server.
	// Required: No.
	SettingsUseAuth bool `json:"settings.use_auth"`
	// The username for the streaming service.
	// Required: No.
	SettingsUsername string `json:"settings.username"`
	// The password for the streaming service.
	// Required: No.
	SettingsPassword string `json:"settings.password"`
	// Persist the settings to disk.
	// Required: Yes.
	Save bool `json:"save"`
	// contains filtered or unexported fields
}

SetStreamSettingsRequest : Sets one or more attributes of the current streaming server settings Any options not passed will remain unchanged Returns the updated settings in response If 'type' is different than the current streaming service type, all settings are required Returns the full settings of the stream (the same as GetStreamSettings).

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setstreamsettings

func NewSetStreamSettingsRequest

func NewSetStreamSettingsRequest(
	_type string,
	settings map[string]interface{},
	settingsServer string,
	settingsKey string,
	settingsUseAuth bool,
	settingsUsername string,
	settingsPassword string,
	save bool,
) SetStreamSettingsRequest

NewSetStreamSettingsRequest returns a new SetStreamSettingsRequest.

func (SetStreamSettingsRequest) ID

func (r SetStreamSettingsRequest) ID() string

ID returns the request's message ID.

func (SetStreamSettingsRequest) Receive

Receive waits for the response.

func (*SetStreamSettingsRequest) Send

Send sends the request.

func (SetStreamSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetStreamSettingsRequest) Type

func (r SetStreamSettingsRequest) Type() string

Type returns the request's message type.

type SetStreamSettingsResponse

type SetStreamSettingsResponse struct {
	// contains filtered or unexported fields
}

SetStreamSettingsResponse : Response for SetStreamSettingsRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setstreamsettings

func (SetStreamSettingsResponse) Error

func (r SetStreamSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetStreamSettingsResponse) ID

func (r SetStreamSettingsResponse) ID() string

ID returns the response's message ID.

func (SetStreamSettingsResponse) Status

func (r SetStreamSettingsResponse) Status() string

Status returns the response's status.

type SetSyncOffsetRequest

type SetSyncOffsetRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// The desired audio sync offset (in nanoseconds).
	// Required: Yes.
	Offset int `json:"offset"`
	// contains filtered or unexported fields
}

SetSyncOffsetRequest : Set the audio sync offset of a specified source.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsyncoffset

func NewSetSyncOffsetRequest

func NewSetSyncOffsetRequest(
	source string,
	offset int,
) SetSyncOffsetRequest

NewSetSyncOffsetRequest returns a new SetSyncOffsetRequest.

func (SetSyncOffsetRequest) ID

func (r SetSyncOffsetRequest) ID() string

ID returns the request's message ID.

func (SetSyncOffsetRequest) Receive

Receive waits for the response.

func (*SetSyncOffsetRequest) Send

func (r *SetSyncOffsetRequest) Send(c Client) error

Send sends the request.

func (SetSyncOffsetRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetSyncOffsetRequest) Type

func (r SetSyncOffsetRequest) Type() string

Type returns the request's message type.

type SetSyncOffsetResponse

type SetSyncOffsetResponse struct {
	// contains filtered or unexported fields
}

SetSyncOffsetResponse : Response for SetSyncOffsetRequest.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setsyncoffset

func (SetSyncOffsetResponse) Error

func (r SetSyncOffsetResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetSyncOffsetResponse) ID

func (r SetSyncOffsetResponse) ID() string

ID returns the response's message ID.

func (SetSyncOffsetResponse) Status

func (r SetSyncOffsetResponse) Status() string

Status returns the response's status.

type SetTBarPositionRequest

type SetTBarPositionRequest struct {
	// T-Bar position.
	// This value must be between 0.0 and 1.0.
	// Required: Yes.
	Position float64 `json:"position"`
	// Whether or not the T-Bar gets released automatically after setting its new position (like a user releasing their mouse button after moving the T-Bar).
	// Call `ReleaseTBar` manually if you set `release` to false.
	// Defaults to true.
	// Required: No.
	Release bool `json:"release"`
	// contains filtered or unexported fields
}

SetTBarPositionRequest :

If your code needs to perform multiple successive T-Bar moves (e.g. : in an animation, or in response to a user moving a T-Bar control in your User Interface), set `release` to false and call `ReleaseTBar` later once the animation/interaction is over.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settbarposition

func NewSetTBarPositionRequest

func NewSetTBarPositionRequest(
	position float64,
	release bool,
) SetTBarPositionRequest

NewSetTBarPositionRequest returns a new SetTBarPositionRequest.

func (SetTBarPositionRequest) ID

func (r SetTBarPositionRequest) ID() string

ID returns the request's message ID.

func (SetTBarPositionRequest) Receive

Receive waits for the response.

func (*SetTBarPositionRequest) Send

func (r *SetTBarPositionRequest) Send(c Client) error

Send sends the request.

func (SetTBarPositionRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetTBarPositionRequest) Type

func (r SetTBarPositionRequest) Type() string

Type returns the request's message type.

type SetTBarPositionResponse

type SetTBarPositionResponse struct {
	// contains filtered or unexported fields
}

SetTBarPositionResponse : Response for SetTBarPositionRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settbarposition

func (SetTBarPositionResponse) Error

func (r SetTBarPositionResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetTBarPositionResponse) ID

func (r SetTBarPositionResponse) ID() string

ID returns the response's message ID.

func (SetTBarPositionResponse) Status

func (r SetTBarPositionResponse) Status() string

Status returns the response's status.

type SetTextFreetype2PropertiesRequest

type SetTextFreetype2PropertiesRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// Gradient top color.
	// Required: No.
	Color1 int `json:"color1"`
	// Gradient bottom color.
	// Required: No.
	Color2 int `json:"color2"`
	// Custom width (0 to disable).
	// Required: No.
	CustomWidth int `json:"custom_width"`
	// Drop shadow.
	// Required: No.
	DropShadow bool `json:"drop_shadow"`
	// Holds data for the font.
	// Ex: `"font": { "face": "Arial", "flags": 0, "size": 150, "style": "" }`.
	// Required: No.
	Font map[string]interface{} `json:"font"`
	// Font face.
	// Required: No.
	FontFace string `json:"font.face"`
	// Font text styling flag.
	// `Bold=1, Italic=2, Bold Italic=3, Underline=5, Strikeout=8`.
	// Required: No.
	FontFlags int `json:"font.flags"`
	// Font text size.
	// Required: No.
	FontSize int `json:"font.size"`
	// Font Style (unknown function).
	// Required: No.
	FontStyle string `json:"font.style"`
	// Read text from the specified file.
	// Required: No.
	FromFile bool `json:"from_file"`
	// Chat log.
	// Required: No.
	LogMode bool `json:"log_mode"`
	// Outline.
	// Required: No.
	Outline bool `json:"outline"`
	// Text content to be displayed.
	// Required: No.
	Text string `json:"text"`
	// File path.
	// Required: No.
	TextFile string `json:"text_file"`
	// Word wrap.
	// Required: No.
	WordWrap bool `json:"word_wrap"`
	// contains filtered or unexported fields
}

SetTextFreetype2PropertiesRequest : Set the current properties of a Text Freetype 2 source.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settextfreetype2properties

func NewSetTextFreetype2PropertiesRequest

func NewSetTextFreetype2PropertiesRequest(
	source string,
	color1 int,
	color2 int,
	customWidth int,
	dropShadow bool,
	font map[string]interface{},
	fontFace string,
	fontFlags int,
	fontSize int,
	fontStyle string,
	fromFile bool,
	logMode bool,
	outline bool,
	text string,
	textFile string,
	wordWrap bool,
) SetTextFreetype2PropertiesRequest

NewSetTextFreetype2PropertiesRequest returns a new SetTextFreetype2PropertiesRequest.

func (SetTextFreetype2PropertiesRequest) ID

func (r SetTextFreetype2PropertiesRequest) ID() string

ID returns the request's message ID.

func (SetTextFreetype2PropertiesRequest) Receive

Receive waits for the response.

func (*SetTextFreetype2PropertiesRequest) Send

Send sends the request.

func (SetTextFreetype2PropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetTextFreetype2PropertiesRequest) Type

func (r SetTextFreetype2PropertiesRequest) Type() string

Type returns the request's message type.

type SetTextFreetype2PropertiesResponse

type SetTextFreetype2PropertiesResponse struct {
	// contains filtered or unexported fields
}

SetTextFreetype2PropertiesResponse : Response for SetTextFreetype2PropertiesRequest.

Since obs-websocket version: 4.5.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settextfreetype2properties

func (SetTextFreetype2PropertiesResponse) Error

func (r SetTextFreetype2PropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetTextFreetype2PropertiesResponse) ID

func (r SetTextFreetype2PropertiesResponse) ID() string

ID returns the response's message ID.

func (SetTextFreetype2PropertiesResponse) Status

func (r SetTextFreetype2PropertiesResponse) Status() string

Status returns the response's status.

type SetTextGDIPlusPropertiesRequest

type SetTextGDIPlusPropertiesRequest struct {
	// Name of the source.
	// Required: Yes.
	Source string `json:"source"`
	// Text Alignment ("left", "center", "right").
	// Required: No.
	Align string `json:"align"`
	// Background color.
	// Required: No.
	BkColor int `json:"bk_color"`
	// Background opacity (0-100).
	// Required: No.
	BkOpacity int `json:"bk_opacity"`
	// Chat log.
	// Required: No.
	Chatlog bool `json:"chatlog"`
	// Chat log lines.
	// Required: No.
	ChatlogLines int `json:"chatlog_lines"`
	// Text color.
	// Required: No.
	Color int `json:"color"`
	// Extents wrap.
	// Required: No.
	Extents bool `json:"extents"`
	// Extents cx.
	// Required: No.
	ExtentsCx int `json:"extents_cx"`
	// Extents cy.
	// Required: No.
	ExtentsCy int `json:"extents_cy"`
	// File path name.
	// Required: No.
	File string `json:"file"`
	// Read text from the specified file.
	// Required: No.
	ReadFromFile bool `json:"read_from_file"`
	// Holds data for the font.
	// Ex: `"font": { "face": "Arial", "flags": 0, "size": 150, "style": "" }`.
	// Required: No.
	Font map[string]interface{} `json:"font"`
	// Font face.
	// Required: No.
	FontFace string `json:"font.face"`
	// Font text styling flag.
	// `Bold=1, Italic=2, Bold Italic=3, Underline=5, Strikeout=8`.
	// Required: No.
	FontFlags int `json:"font.flags"`
	// Font text size.
	// Required: No.
	FontSize int `json:"font.size"`
	// Font Style (unknown function).
	// Required: No.
	FontStyle string `json:"font.style"`
	// Gradient enabled.
	// Required: No.
	Gradient bool `json:"gradient"`
	// Gradient color.
	// Required: No.
	GradientColor int `json:"gradient_color"`
	// Gradient direction.
	// Required: No.
	GradientDir float64 `json:"gradient_dir"`
	// Gradient opacity (0-100).
	// Required: No.
	GradientOpacity int `json:"gradient_opacity"`
	// Outline.
	// Required: No.
	Outline bool `json:"outline"`
	// Outline color.
	// Required: No.
	OutlineColor int `json:"outline_color"`
	// Outline size.
	// Required: No.
	OutlineSize int `json:"outline_size"`
	// Outline opacity (0-100).
	// Required: No.
	OutlineOpacity int `json:"outline_opacity"`
	// Text content to be displayed.
	// Required: No.
	Text string `json:"text"`
	// Text vertical alignment ("top", "center", "bottom").
	// Required: No.
	Valign string `json:"valign"`
	// Vertical text enabled.
	// Required: No.
	Vertical bool `json:"vertical"`
	// Visibility of the scene item.
	// Required: No.
	Render bool `json:"render"`
	// contains filtered or unexported fields
}

SetTextGDIPlusPropertiesRequest : Set the current properties of a Text GDI Plus source.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settextgdiplusproperties

func NewSetTextGDIPlusPropertiesRequest

func NewSetTextGDIPlusPropertiesRequest(
	source string,
	align string,
	bkColor int,
	bkOpacity int,
	chatlog bool,
	chatlogLines int,
	color int,
	extents bool,
	extentsCx int,
	extentsCy int,
	file string,
	readFromFile bool,
	font map[string]interface{},
	fontFace string,
	fontFlags int,
	fontSize int,
	fontStyle string,
	gradient bool,
	gradientColor int,
	gradientDir float64,
	gradientOpacity int,
	outline bool,
	outlineColor int,
	outlineSize int,
	outlineOpacity int,
	text string,
	valign string,
	vertical bool,
	render bool,
) SetTextGDIPlusPropertiesRequest

NewSetTextGDIPlusPropertiesRequest returns a new SetTextGDIPlusPropertiesRequest.

func (SetTextGDIPlusPropertiesRequest) ID

func (r SetTextGDIPlusPropertiesRequest) ID() string

ID returns the request's message ID.

func (SetTextGDIPlusPropertiesRequest) Receive

Receive waits for the response.

func (*SetTextGDIPlusPropertiesRequest) Send

Send sends the request.

func (SetTextGDIPlusPropertiesRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetTextGDIPlusPropertiesRequest) Type

func (r SetTextGDIPlusPropertiesRequest) Type() string

Type returns the request's message type.

type SetTextGDIPlusPropertiesResponse

type SetTextGDIPlusPropertiesResponse struct {
	// contains filtered or unexported fields
}

SetTextGDIPlusPropertiesResponse : Response for SetTextGDIPlusPropertiesRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settextgdiplusproperties

func (SetTextGDIPlusPropertiesResponse) Error

func (r SetTextGDIPlusPropertiesResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetTextGDIPlusPropertiesResponse) ID

func (r SetTextGDIPlusPropertiesResponse) ID() string

ID returns the response's message ID.

func (SetTextGDIPlusPropertiesResponse) Status

func (r SetTextGDIPlusPropertiesResponse) Status() string

Status returns the response's status.

type SetTransitionDurationRequest

type SetTransitionDurationRequest struct {
	// Desired duration of the transition (in milliseconds).
	// Required: Yes.
	Duration int `json:"duration"`
	// contains filtered or unexported fields
}

SetTransitionDurationRequest : Set the duration of the currently selected transition if supported.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settransitionduration

func NewSetTransitionDurationRequest

func NewSetTransitionDurationRequest(duration int) SetTransitionDurationRequest

NewSetTransitionDurationRequest returns a new SetTransitionDurationRequest.

func (SetTransitionDurationRequest) ID

func (r SetTransitionDurationRequest) ID() string

ID returns the request's message ID.

func (SetTransitionDurationRequest) Receive

Receive waits for the response.

func (*SetTransitionDurationRequest) Send

Send sends the request.

func (SetTransitionDurationRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetTransitionDurationRequest) Type

func (r SetTransitionDurationRequest) Type() string

Type returns the request's message type.

type SetTransitionDurationResponse

type SetTransitionDurationResponse struct {
	// contains filtered or unexported fields
}

SetTransitionDurationResponse : Response for SetTransitionDurationRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settransitionduration

func (SetTransitionDurationResponse) Error

func (r SetTransitionDurationResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetTransitionDurationResponse) ID

func (r SetTransitionDurationResponse) ID() string

ID returns the response's message ID.

func (SetTransitionDurationResponse) Status

func (r SetTransitionDurationResponse) Status() string

Status returns the response's status.

type SetTransitionSettingsRequest

type SetTransitionSettingsRequest struct {
	// Transition name.
	// Required: Yes.
	TransitionName string `json:"transitionName"`
	// Transition settings (they can be partial).
	// Required: Yes.
	TransitionSettings map[string]interface{} `json:"transitionSettings"`
	// contains filtered or unexported fields
}

SetTransitionSettingsRequest : Change the current settings of a transition.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settransitionsettings

func NewSetTransitionSettingsRequest

func NewSetTransitionSettingsRequest(
	transitionName string,
	transitionSettings map[string]interface{},
) SetTransitionSettingsRequest

NewSetTransitionSettingsRequest returns a new SetTransitionSettingsRequest.

func (SetTransitionSettingsRequest) ID

func (r SetTransitionSettingsRequest) ID() string

ID returns the request's message ID.

func (SetTransitionSettingsRequest) Receive

Receive waits for the response.

func (*SetTransitionSettingsRequest) Send

Send sends the request.

func (SetTransitionSettingsRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (SetTransitionSettingsRequest) Type

func (r SetTransitionSettingsRequest) Type() string

Type returns the request's message type.

type SetTransitionSettingsResponse

type SetTransitionSettingsResponse struct {
	// Updated transition settings.
	// Required: Yes.
	TransitionSettings map[string]interface{} `json:"transitionSettings"`
	// contains filtered or unexported fields
}

SetTransitionSettingsResponse : Response for SetTransitionSettingsRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#settransitionsettings

func (SetTransitionSettingsResponse) Error

func (r SetTransitionSettingsResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetTransitionSettingsResponse) ID

func (r SetTransitionSettingsResponse) ID() string

ID returns the response's message ID.

func (SetTransitionSettingsResponse) Status

func (r SetTransitionSettingsResponse) Status() string

Status returns the response's status.

type SetVolumeRequest

type SetVolumeRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// Desired volume.
	// Must be between `0.0` and `20.0` for mul, and under 26.0 for dB.
	// OBS will interpret dB values under -100.0 as Inf.
	// Note: The OBS volume sliders only reach a maximum of 1.0mul/0.0dB, however OBS actually supports larger values.
	// Required: Yes.
	Volume float64 `json:"volume"`
	// Interperet `volume` data as decibels instead of amplitude/mul.
	// Required: No.
	UseDecibel bool `json:"useDecibel"`
	// contains filtered or unexported fields
}

SetVolumeRequest : Set the volume of the specified source Default request format uses mul, NOT SLIDER PERCENTAGE.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setvolume

func NewSetVolumeRequest

func NewSetVolumeRequest(
	source string,
	volume float64,
	useDecibel bool,
) SetVolumeRequest

NewSetVolumeRequest returns a new SetVolumeRequest.

func (SetVolumeRequest) ID

func (r SetVolumeRequest) ID() string

ID returns the request's message ID.

func (SetVolumeRequest) Receive

func (r SetVolumeRequest) Receive() (SetVolumeResponse, error)

Receive waits for the response.

func (*SetVolumeRequest) Send

func (r *SetVolumeRequest) Send(c Client) error

Send sends the request.

func (SetVolumeRequest) SendReceive

func (r SetVolumeRequest) SendReceive(c Client) (SetVolumeResponse, error)

SendReceive sends the request then immediately waits for the response.

func (SetVolumeRequest) Type

func (r SetVolumeRequest) Type() string

Type returns the request's message type.

type SetVolumeResponse

type SetVolumeResponse struct {
	// contains filtered or unexported fields
}

SetVolumeResponse : Response for SetVolumeRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#setvolume

func (SetVolumeResponse) Error

func (r SetVolumeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SetVolumeResponse) ID

func (r SetVolumeResponse) ID() string

ID returns the response's message ID.

func (SetVolumeResponse) Status

func (r SetVolumeResponse) Status() string

Status returns the response's status.

type SleepRequest

type SleepRequest struct {
	// Delay in milliseconds to wait before continuing.
	// Required: Yes.
	SleepMillis int `json:"sleepMillis"`
	// contains filtered or unexported fields
}

SleepRequest : Waits for the specified duration Designed to be used in `ExecuteBatch` operations.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sleep

func NewSleepRequest

func NewSleepRequest(sleepMillis int) SleepRequest

NewSleepRequest returns a new SleepRequest.

func (SleepRequest) ID

func (r SleepRequest) ID() string

ID returns the request's message ID.

func (SleepRequest) Receive

func (r SleepRequest) Receive() (SleepResponse, error)

Receive waits for the response.

func (*SleepRequest) Send

func (r *SleepRequest) Send(c Client) error

Send sends the request.

func (SleepRequest) SendReceive

func (r SleepRequest) SendReceive(c Client) (SleepResponse, error)

SendReceive sends the request then immediately waits for the response.

func (SleepRequest) Type

func (r SleepRequest) Type() string

Type returns the request's message type.

type SleepResponse

type SleepResponse struct {
	// contains filtered or unexported fields
}

SleepResponse : Response for SleepRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sleep

func (SleepResponse) Error

func (r SleepResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (SleepResponse) ID

func (r SleepResponse) ID() string

ID returns the response's message ID.

func (SleepResponse) Status

func (r SleepResponse) Status() string

Status returns the response's status.

type SourceAudioActivatedEvent

type SourceAudioActivatedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

SourceAudioActivatedEvent : A source has added audio.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourceaudioactivated

func (SourceAudioActivatedEvent) RecTimecode

func (e SourceAudioActivatedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceAudioActivatedEvent) StreamTimecode

func (e SourceAudioActivatedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceAudioActivatedEvent) Type

func (e SourceAudioActivatedEvent) Type() string

Type returns the event's update type.

type SourceAudioDeactivatedEvent

type SourceAudioDeactivatedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

SourceAudioDeactivatedEvent : A source has removed audio.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourceaudiodeactivated

func (SourceAudioDeactivatedEvent) RecTimecode

func (e SourceAudioDeactivatedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceAudioDeactivatedEvent) StreamTimecode

func (e SourceAudioDeactivatedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceAudioDeactivatedEvent) Type

func (e SourceAudioDeactivatedEvent) Type() string

Type returns the event's update type.

type SourceAudioMixersChangedEvent

type SourceAudioMixersChangedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Routing status of the source for each audio mixer (array of 6 values).
	// Required: Yes.
	Mixers []map[string]interface{} `json:"mixers"`
	// Mixer number.
	// Required: Yes.
	MixersID int `json:"mixers.*.id"`
	// Routing status.
	// Required: Yes.
	MixersEnabled bool `json:"mixers.*.enabled"`
	// Raw mixer flags (little-endian, one bit per mixer) as an hexadecimal value.
	// Required: Yes.
	HexMixersValue string `json:"hexMixersValue"`
	// contains filtered or unexported fields
}

SourceAudioMixersChangedEvent : Audio mixer routing changed on a source.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourceaudiomixerschanged

func (SourceAudioMixersChangedEvent) RecTimecode

func (e SourceAudioMixersChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceAudioMixersChangedEvent) StreamTimecode

func (e SourceAudioMixersChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceAudioMixersChangedEvent) Type

func (e SourceAudioMixersChangedEvent) Type() string

Type returns the event's update type.

type SourceAudioSyncOffsetChangedEvent

type SourceAudioSyncOffsetChangedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Audio sync offset of the source (in nanoseconds).
	// Required: Yes.
	SyncOffset int `json:"syncOffset"`
	// contains filtered or unexported fields
}

SourceAudioSyncOffsetChangedEvent : The audio sync offset of a source has changed.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourceaudiosyncoffsetchanged

func (SourceAudioSyncOffsetChangedEvent) RecTimecode

func (e SourceAudioSyncOffsetChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceAudioSyncOffsetChangedEvent) StreamTimecode

func (e SourceAudioSyncOffsetChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceAudioSyncOffsetChangedEvent) Type

func (e SourceAudioSyncOffsetChangedEvent) Type() string

Type returns the event's update type.

type SourceCreatedEvent

type SourceCreatedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Source type.
	// Can be "input", "scene", "transition" or "filter".
	// Required: Yes.
	SourceType string `json:"sourceType"`
	// Source kind.
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// Source settings.
	// Required: Yes.
	SourceSettings map[string]interface{} `json:"sourceSettings"`
	// contains filtered or unexported fields
}

SourceCreatedEvent : A source has been created A source can be an input, a scene or a transition.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcecreated

func (SourceCreatedEvent) RecTimecode

func (e SourceCreatedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceCreatedEvent) StreamTimecode

func (e SourceCreatedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceCreatedEvent) Type

func (e SourceCreatedEvent) Type() string

Type returns the event's update type.

type SourceDestroyedEvent

type SourceDestroyedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Source type.
	// Can be "input", "scene", "transition" or "filter".
	// Required: Yes.
	SourceType string `json:"sourceType"`
	// Source kind.
	// Required: Yes.
	SourceKind string `json:"sourceKind"`
	// contains filtered or unexported fields
}

SourceDestroyedEvent : A source has been destroyed/removed A source can be an input, a scene or a transition.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcedestroyed

func (SourceDestroyedEvent) RecTimecode

func (e SourceDestroyedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceDestroyedEvent) StreamTimecode

func (e SourceDestroyedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceDestroyedEvent) Type

func (e SourceDestroyedEvent) Type() string

Type returns the event's update type.

type SourceFilterAddedEvent

type SourceFilterAddedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Filter name.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// Filter type.
	// Required: Yes.
	FilterType string `json:"filterType"`
	// Filter settings.
	// Required: Yes.
	FilterSettings map[string]interface{} `json:"filterSettings"`
	// contains filtered or unexported fields
}

SourceFilterAddedEvent : A filter was added to a source.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcefilteradded

func (SourceFilterAddedEvent) RecTimecode

func (e SourceFilterAddedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceFilterAddedEvent) StreamTimecode

func (e SourceFilterAddedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceFilterAddedEvent) Type

func (e SourceFilterAddedEvent) Type() string

Type returns the event's update type.

type SourceFilterRemovedEvent

type SourceFilterRemovedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Filter name.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// Filter type.
	// Required: Yes.
	FilterType string `json:"filterType"`
	// contains filtered or unexported fields
}

SourceFilterRemovedEvent : A filter was removed from a source.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcefilterremoved

func (SourceFilterRemovedEvent) RecTimecode

func (e SourceFilterRemovedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceFilterRemovedEvent) StreamTimecode

func (e SourceFilterRemovedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceFilterRemovedEvent) Type

func (e SourceFilterRemovedEvent) Type() string

Type returns the event's update type.

type SourceFilterVisibilityChangedEvent

type SourceFilterVisibilityChangedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Filter name.
	// Required: Yes.
	FilterName string `json:"filterName"`
	// New filter state.
	// Required: Yes.
	FilterEnabled bool `json:"filterEnabled"`
	// contains filtered or unexported fields
}

SourceFilterVisibilityChangedEvent : The visibility/enabled state of a filter changed.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcefiltervisibilitychanged

func (SourceFilterVisibilityChangedEvent) RecTimecode

func (e SourceFilterVisibilityChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceFilterVisibilityChangedEvent) StreamTimecode

func (e SourceFilterVisibilityChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceFilterVisibilityChangedEvent) Type

func (e SourceFilterVisibilityChangedEvent) Type() string

Type returns the event's update type.

type SourceFiltersReorderedEvent

type SourceFiltersReorderedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Ordered Filters list.
	// Required: Yes.
	Filters []map[string]interface{} `json:"filters"`
	// Filter name.
	// Required: Yes.
	FiltersName string `json:"filters.*.name"`
	// Filter type.
	// Required: Yes.
	FiltersType string `json:"filters.*.type"`
	// Filter visibility status.
	// Required: Yes.
	FiltersEnabled bool `json:"filters.*.enabled"`
	// contains filtered or unexported fields
}

SourceFiltersReorderedEvent : Filters in a source have been reordered.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcefiltersreordered

func (SourceFiltersReorderedEvent) RecTimecode

func (e SourceFiltersReorderedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceFiltersReorderedEvent) StreamTimecode

func (e SourceFiltersReorderedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceFiltersReorderedEvent) Type

func (e SourceFiltersReorderedEvent) Type() string

Type returns the event's update type.

type SourceMuteStateChangedEvent

type SourceMuteStateChangedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Mute status of the source.
	// Required: Yes.
	Muted bool `json:"muted"`
	// contains filtered or unexported fields
}

SourceMuteStateChangedEvent : A source has been muted or unmuted.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcemutestatechanged

func (SourceMuteStateChangedEvent) RecTimecode

func (e SourceMuteStateChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceMuteStateChangedEvent) StreamTimecode

func (e SourceMuteStateChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceMuteStateChangedEvent) Type

func (e SourceMuteStateChangedEvent) Type() string

Type returns the event's update type.

type SourceOrderChangedEvent

type SourceOrderChangedEvent struct {
	// Name of the scene where items have been reordered.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// Ordered list of scene items.
	// Required: Yes.
	SceneItems []map[string]interface{} `json:"scene-items"`
	// Item source name.
	// Required: Yes.
	SceneItemsSourceName string `json:"scene-items.*.source-name"`
	// Scene item unique ID.
	// Required: Yes.
	SceneItemsItemID int `json:"scene-items.*.item-id"`
	// contains filtered or unexported fields
}

SourceOrderChangedEvent : Scene items within a scene have been reordered.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourceorderchanged

func (SourceOrderChangedEvent) RecTimecode

func (e SourceOrderChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceOrderChangedEvent) StreamTimecode

func (e SourceOrderChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceOrderChangedEvent) Type

func (e SourceOrderChangedEvent) Type() string

Type returns the event's update type.

type SourceRenamedEvent

type SourceRenamedEvent struct {
	// Previous source name.
	// Required: Yes.
	PreviousName string `json:"previousName"`
	// New source name.
	// Required: Yes.
	NewName string `json:"newName"`
	// Type of source (input, scene, filter, transition).
	// Required: Yes.
	SourceType string `json:"sourceType"`
	// contains filtered or unexported fields
}

SourceRenamedEvent : A source has been renamed.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcerenamed

func (SourceRenamedEvent) RecTimecode

func (e SourceRenamedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceRenamedEvent) StreamTimecode

func (e SourceRenamedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceRenamedEvent) Type

func (e SourceRenamedEvent) Type() string

Type returns the event's update type.

type SourceVolumeChangedEvent

type SourceVolumeChangedEvent struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Source volume.
	// Required: Yes.
	Volume float64 `json:"volume"`
	// Source volume in Decibel.
	// Required: Yes.
	VolumeDb float64 `json:"volumeDb"`
	// contains filtered or unexported fields
}

SourceVolumeChangedEvent : The volume of a source has changed.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#sourcevolumechanged

func (SourceVolumeChangedEvent) RecTimecode

func (e SourceVolumeChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SourceVolumeChangedEvent) StreamTimecode

func (e SourceVolumeChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SourceVolumeChangedEvent) Type

func (e SourceVolumeChangedEvent) Type() string

Type returns the event's update type.

type StartOutputRequest

type StartOutputRequest struct {
	// Output name.
	// Required: Yes.
	OutputName string `json:"outputName"`
	// contains filtered or unexported fields
}

StartOutputRequest :

Note: Controlling outputs is an experimental feature of obs-websocket Some plugins which add outputs to OBS may not function properly when they are controlled in this way.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startoutput

func NewStartOutputRequest

func NewStartOutputRequest(outputName string) StartOutputRequest

NewStartOutputRequest returns a new StartOutputRequest.

func (StartOutputRequest) ID

func (r StartOutputRequest) ID() string

ID returns the request's message ID.

func (StartOutputRequest) Receive

Receive waits for the response.

func (*StartOutputRequest) Send

func (r *StartOutputRequest) Send(c Client) error

Send sends the request.

func (StartOutputRequest) SendReceive

func (r StartOutputRequest) SendReceive(c Client) (StartOutputResponse, error)

SendReceive sends the request then immediately waits for the response.

func (StartOutputRequest) Type

func (r StartOutputRequest) Type() string

Type returns the request's message type.

type StartOutputResponse

type StartOutputResponse struct {
	// contains filtered or unexported fields
}

StartOutputResponse : Response for StartOutputRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startoutput

func (StartOutputResponse) Error

func (r StartOutputResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartOutputResponse) ID

func (r StartOutputResponse) ID() string

ID returns the response's message ID.

func (StartOutputResponse) Status

func (r StartOutputResponse) Status() string

Status returns the response's status.

type StartRecordingRequest

type StartRecordingRequest struct {
	// contains filtered or unexported fields
}

StartRecordingRequest : Start recording. Will return an `error` if recording is already active.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startrecording

func NewStartRecordingRequest

func NewStartRecordingRequest() StartRecordingRequest

NewStartRecordingRequest returns a new StartRecordingRequest.

func (StartRecordingRequest) ID

func (r StartRecordingRequest) ID() string

ID returns the request's message ID.

func (StartRecordingRequest) Receive

Receive waits for the response.

func (*StartRecordingRequest) Send

func (r *StartRecordingRequest) Send(c Client) error

Send sends the request.

func (StartRecordingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartRecordingRequest) Type

func (r StartRecordingRequest) Type() string

Type returns the request's message type.

type StartRecordingResponse

type StartRecordingResponse struct {
	// contains filtered or unexported fields
}

StartRecordingResponse : Response for StartRecordingRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startrecording

func (StartRecordingResponse) Error

func (r StartRecordingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartRecordingResponse) ID

func (r StartRecordingResponse) ID() string

ID returns the response's message ID.

func (StartRecordingResponse) Status

func (r StartRecordingResponse) Status() string

Status returns the response's status.

type StartReplayBufferRequest

type StartReplayBufferRequest struct {
	// contains filtered or unexported fields
}

StartReplayBufferRequest : Start recording into the Replay Buffer. Will return an `error` if the Replay Buffer is already active or if the "Save Replay Buffer" hotkey is not set in OBS' settings. Setting this hotkey is mandatory, even when triggering saves only through obs-websocket.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startreplaybuffer

func NewStartReplayBufferRequest

func NewStartReplayBufferRequest() StartReplayBufferRequest

NewStartReplayBufferRequest returns a new StartReplayBufferRequest.

func (StartReplayBufferRequest) ID

func (r StartReplayBufferRequest) ID() string

ID returns the request's message ID.

func (StartReplayBufferRequest) Receive

Receive waits for the response.

func (*StartReplayBufferRequest) Send

Send sends the request.

func (StartReplayBufferRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartReplayBufferRequest) Type

func (r StartReplayBufferRequest) Type() string

Type returns the request's message type.

type StartReplayBufferResponse

type StartReplayBufferResponse struct {
	// contains filtered or unexported fields
}

StartReplayBufferResponse : Response for StartReplayBufferRequest.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startreplaybuffer

func (StartReplayBufferResponse) Error

func (r StartReplayBufferResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartReplayBufferResponse) ID

func (r StartReplayBufferResponse) ID() string

ID returns the response's message ID.

func (StartReplayBufferResponse) Status

func (r StartReplayBufferResponse) Status() string

Status returns the response's status.

type StartStopRecordingRequest

type StartStopRecordingRequest struct {
	// contains filtered or unexported fields
}

StartStopRecordingRequest : Toggle recording on or off (depending on the current recording state).

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstoprecording

func NewStartStopRecordingRequest

func NewStartStopRecordingRequest() StartStopRecordingRequest

NewStartStopRecordingRequest returns a new StartStopRecordingRequest.

func (StartStopRecordingRequest) ID

func (r StartStopRecordingRequest) ID() string

ID returns the request's message ID.

func (StartStopRecordingRequest) Receive

Receive waits for the response.

func (*StartStopRecordingRequest) Send

Send sends the request.

func (StartStopRecordingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartStopRecordingRequest) Type

func (r StartStopRecordingRequest) Type() string

Type returns the request's message type.

type StartStopRecordingResponse

type StartStopRecordingResponse struct {
	// contains filtered or unexported fields
}

StartStopRecordingResponse : Response for StartStopRecordingRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstoprecording

func (StartStopRecordingResponse) Error

func (r StartStopRecordingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartStopRecordingResponse) ID

func (r StartStopRecordingResponse) ID() string

ID returns the response's message ID.

func (StartStopRecordingResponse) Status

func (r StartStopRecordingResponse) Status() string

Status returns the response's status.

type StartStopReplayBufferRequest

type StartStopReplayBufferRequest struct {
	// contains filtered or unexported fields
}

StartStopReplayBufferRequest : Toggle the Replay Buffer on/off (depending on the current state of the replay buffer).

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstopreplaybuffer

func NewStartStopReplayBufferRequest

func NewStartStopReplayBufferRequest() StartStopReplayBufferRequest

NewStartStopReplayBufferRequest returns a new StartStopReplayBufferRequest.

func (StartStopReplayBufferRequest) ID

func (r StartStopReplayBufferRequest) ID() string

ID returns the request's message ID.

func (StartStopReplayBufferRequest) Receive

Receive waits for the response.

func (*StartStopReplayBufferRequest) Send

Send sends the request.

func (StartStopReplayBufferRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartStopReplayBufferRequest) Type

func (r StartStopReplayBufferRequest) Type() string

Type returns the request's message type.

type StartStopReplayBufferResponse

type StartStopReplayBufferResponse struct {
	// contains filtered or unexported fields
}

StartStopReplayBufferResponse : Response for StartStopReplayBufferRequest.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstopreplaybuffer

func (StartStopReplayBufferResponse) Error

func (r StartStopReplayBufferResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartStopReplayBufferResponse) ID

func (r StartStopReplayBufferResponse) ID() string

ID returns the response's message ID.

func (StartStopReplayBufferResponse) Status

func (r StartStopReplayBufferResponse) Status() string

Status returns the response's status.

type StartStopStreamingRequest

type StartStopStreamingRequest struct {
	// contains filtered or unexported fields
}

StartStopStreamingRequest : Toggle streaming on or off (depending on the current stream state).

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstopstreaming

func NewStartStopStreamingRequest

func NewStartStopStreamingRequest() StartStopStreamingRequest

NewStartStopStreamingRequest returns a new StartStopStreamingRequest.

func (StartStopStreamingRequest) ID

func (r StartStopStreamingRequest) ID() string

ID returns the request's message ID.

func (StartStopStreamingRequest) Receive

Receive waits for the response.

func (*StartStopStreamingRequest) Send

Send sends the request.

func (StartStopStreamingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartStopStreamingRequest) Type

func (r StartStopStreamingRequest) Type() string

Type returns the request's message type.

type StartStopStreamingResponse

type StartStopStreamingResponse struct {
	// contains filtered or unexported fields
}

StartStopStreamingResponse : Response for StartStopStreamingRequest.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstopstreaming

func (StartStopStreamingResponse) Error

func (r StartStopStreamingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartStopStreamingResponse) ID

func (r StartStopStreamingResponse) ID() string

ID returns the response's message ID.

func (StartStopStreamingResponse) Status

func (r StartStopStreamingResponse) Status() string

Status returns the response's status.

type StartStopVirtualCamRequest

type StartStopVirtualCamRequest struct {
	// contains filtered or unexported fields
}

StartStopVirtualCamRequest : Toggle virtual cam on or off (depending on the current virtual cam state).

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstopvirtualcam

func NewStartStopVirtualCamRequest

func NewStartStopVirtualCamRequest() StartStopVirtualCamRequest

NewStartStopVirtualCamRequest returns a new StartStopVirtualCamRequest.

func (StartStopVirtualCamRequest) ID

func (r StartStopVirtualCamRequest) ID() string

ID returns the request's message ID.

func (StartStopVirtualCamRequest) Receive

Receive waits for the response.

func (*StartStopVirtualCamRequest) Send

Send sends the request.

func (StartStopVirtualCamRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartStopVirtualCamRequest) Type

func (r StartStopVirtualCamRequest) Type() string

Type returns the request's message type.

type StartStopVirtualCamResponse

type StartStopVirtualCamResponse struct {
	// contains filtered or unexported fields
}

StartStopVirtualCamResponse : Response for StartStopVirtualCamRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstopvirtualcam

func (StartStopVirtualCamResponse) Error

func (r StartStopVirtualCamResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartStopVirtualCamResponse) ID

func (r StartStopVirtualCamResponse) ID() string

ID returns the response's message ID.

func (StartStopVirtualCamResponse) Status

func (r StartStopVirtualCamResponse) Status() string

Status returns the response's status.

type StartStreamingRequest

type StartStreamingRequest struct {
	// Special stream configuration.
	// Note: these won't be saved to OBS' configuration.
	// Required: No.
	Stream map[string]interface{} `json:"stream"`
	// If specified ensures the type of stream matches the given type (usually 'rtmp_custom' or 'rtmp_common').
	// If the currently configured stream type does not match the given stream type, all settings must be specified in the `settings` object or an error will occur when starting the stream.
	// Required: No.
	StreamType string `json:"stream.type"`
	// Adds the given object parameters as encoded query string parameters to the 'key' of the RTMP stream.
	// Used to pass data to the RTMP service about the streaming.
	// May be any String, Numeric, or Boolean field.
	// Required: No.
	StreamMetadata map[string]interface{} `json:"stream.metadata"`
	// Settings for the stream.
	// Required: No.
	StreamSettings map[string]interface{} `json:"stream.settings"`
	// The publish URL.
	// Required: No.
	StreamSettingsServer string `json:"stream.settings.server"`
	// The publish key of the stream.
	// Required: No.
	StreamSettingsKey string `json:"stream.settings.key"`
	// Indicates whether authentication should be used when connecting to the streaming server.
	// Required: No.
	StreamSettingsUseAuth bool `json:"stream.settings.use_auth"`
	// If authentication is enabled, the username for the streaming server.
	// Ignored if `use_auth` is not set to `true`.
	// Required: No.
	StreamSettingsUsername string `json:"stream.settings.username"`
	// If authentication is enabled, the password for the streaming server.
	// Ignored if `use_auth` is not set to `true`.
	// Required: No.
	StreamSettingsPassword string `json:"stream.settings.password"`
	// contains filtered or unexported fields
}

StartStreamingRequest : Start streaming. Will return an `error` if streaming is already active.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstreaming

func NewStartStreamingRequest

func NewStartStreamingRequest(
	stream map[string]interface{},
	streamType string,
	streamMetadata map[string]interface{},
	streamSettings map[string]interface{},
	streamSettingsServer string,
	streamSettingsKey string,
	streamSettingsUseAuth bool,
	streamSettingsUsername string,
	streamSettingsPassword string,
) StartStreamingRequest

NewStartStreamingRequest returns a new StartStreamingRequest.

func (StartStreamingRequest) ID

func (r StartStreamingRequest) ID() string

ID returns the request's message ID.

func (StartStreamingRequest) Receive

Receive waits for the response.

func (*StartStreamingRequest) Send

func (r *StartStreamingRequest) Send(c Client) error

Send sends the request.

func (StartStreamingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartStreamingRequest) Type

func (r StartStreamingRequest) Type() string

Type returns the request's message type.

type StartStreamingResponse

type StartStreamingResponse struct {
	// contains filtered or unexported fields
}

StartStreamingResponse : Response for StartStreamingRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startstreaming

func (StartStreamingResponse) Error

func (r StartStreamingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartStreamingResponse) ID

func (r StartStreamingResponse) ID() string

ID returns the response's message ID.

func (StartStreamingResponse) Status

func (r StartStreamingResponse) Status() string

Status returns the response's status.

type StartVirtualCamRequest

type StartVirtualCamRequest struct {
	// contains filtered or unexported fields
}

StartVirtualCamRequest : Start virtual cam. Will return an `error` if virtual cam is already active.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startvirtualcam

func NewStartVirtualCamRequest

func NewStartVirtualCamRequest() StartVirtualCamRequest

NewStartVirtualCamRequest returns a new StartVirtualCamRequest.

func (StartVirtualCamRequest) ID

func (r StartVirtualCamRequest) ID() string

ID returns the request's message ID.

func (StartVirtualCamRequest) Receive

Receive waits for the response.

func (*StartVirtualCamRequest) Send

func (r *StartVirtualCamRequest) Send(c Client) error

Send sends the request.

func (StartVirtualCamRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StartVirtualCamRequest) Type

func (r StartVirtualCamRequest) Type() string

Type returns the request's message type.

type StartVirtualCamResponse

type StartVirtualCamResponse struct {
	// contains filtered or unexported fields
}

StartVirtualCamResponse : Response for StartVirtualCamRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#startvirtualcam

func (StartVirtualCamResponse) Error

func (r StartVirtualCamResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StartVirtualCamResponse) ID

func (r StartVirtualCamResponse) ID() string

ID returns the response's message ID.

func (StartVirtualCamResponse) Status

func (r StartVirtualCamResponse) Status() string

Status returns the response's status.

type StopMediaRequest

type StopMediaRequest struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// contains filtered or unexported fields
}

StopMediaRequest : Stop a media source Supports ffmpeg and vlc media sources (as of OBS v25.0.8).

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopmedia

func NewStopMediaRequest

func NewStopMediaRequest(sourceName string) StopMediaRequest

NewStopMediaRequest returns a new StopMediaRequest.

func (StopMediaRequest) ID

func (r StopMediaRequest) ID() string

ID returns the request's message ID.

func (StopMediaRequest) Receive

func (r StopMediaRequest) Receive() (StopMediaResponse, error)

Receive waits for the response.

func (*StopMediaRequest) Send

func (r *StopMediaRequest) Send(c Client) error

Send sends the request.

func (StopMediaRequest) SendReceive

func (r StopMediaRequest) SendReceive(c Client) (StopMediaResponse, error)

SendReceive sends the request then immediately waits for the response.

func (StopMediaRequest) Type

func (r StopMediaRequest) Type() string

Type returns the request's message type.

type StopMediaResponse

type StopMediaResponse struct {
	// contains filtered or unexported fields
}

StopMediaResponse : Response for StopMediaRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopmedia

func (StopMediaResponse) Error

func (r StopMediaResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StopMediaResponse) ID

func (r StopMediaResponse) ID() string

ID returns the response's message ID.

func (StopMediaResponse) Status

func (r StopMediaResponse) Status() string

Status returns the response's status.

type StopOutputRequest

type StopOutputRequest struct {
	// Output name.
	// Required: Yes.
	OutputName string `json:"outputName"`
	// Force stop (default: false).
	// Required: No.
	Force bool `json:"force"`
	// contains filtered or unexported fields
}

StopOutputRequest :

Note: Controlling outputs is an experimental feature of obs-websocket Some plugins which add outputs to OBS may not function properly when they are controlled in this way.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopoutput

func NewStopOutputRequest

func NewStopOutputRequest(
	outputName string,
	force bool,
) StopOutputRequest

NewStopOutputRequest returns a new StopOutputRequest.

func (StopOutputRequest) ID

func (r StopOutputRequest) ID() string

ID returns the request's message ID.

func (StopOutputRequest) Receive

Receive waits for the response.

func (*StopOutputRequest) Send

func (r *StopOutputRequest) Send(c Client) error

Send sends the request.

func (StopOutputRequest) SendReceive

func (r StopOutputRequest) SendReceive(c Client) (StopOutputResponse, error)

SendReceive sends the request then immediately waits for the response.

func (StopOutputRequest) Type

func (r StopOutputRequest) Type() string

Type returns the request's message type.

type StopOutputResponse

type StopOutputResponse struct {
	// contains filtered or unexported fields
}

StopOutputResponse : Response for StopOutputRequest.

Since obs-websocket version: 4.7.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopoutput

func (StopOutputResponse) Error

func (r StopOutputResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StopOutputResponse) ID

func (r StopOutputResponse) ID() string

ID returns the response's message ID.

func (StopOutputResponse) Status

func (r StopOutputResponse) Status() string

Status returns the response's status.

type StopRecordingRequest

type StopRecordingRequest struct {
	// contains filtered or unexported fields
}

StopRecordingRequest : Stop recording. Will return an `error` if recording is not active.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stoprecording

func NewStopRecordingRequest

func NewStopRecordingRequest() StopRecordingRequest

NewStopRecordingRequest returns a new StopRecordingRequest.

func (StopRecordingRequest) ID

func (r StopRecordingRequest) ID() string

ID returns the request's message ID.

func (StopRecordingRequest) Receive

Receive waits for the response.

func (*StopRecordingRequest) Send

func (r *StopRecordingRequest) Send(c Client) error

Send sends the request.

func (StopRecordingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StopRecordingRequest) Type

func (r StopRecordingRequest) Type() string

Type returns the request's message type.

type StopRecordingResponse

type StopRecordingResponse struct {
	// contains filtered or unexported fields
}

StopRecordingResponse : Response for StopRecordingRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stoprecording

func (StopRecordingResponse) Error

func (r StopRecordingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StopRecordingResponse) ID

func (r StopRecordingResponse) ID() string

ID returns the response's message ID.

func (StopRecordingResponse) Status

func (r StopRecordingResponse) Status() string

Status returns the response's status.

type StopReplayBufferRequest

type StopReplayBufferRequest struct {
	// contains filtered or unexported fields
}

StopReplayBufferRequest : Stop recording into the Replay Buffer. Will return an `error` if the Replay Buffer is not active.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopreplaybuffer

func NewStopReplayBufferRequest

func NewStopReplayBufferRequest() StopReplayBufferRequest

NewStopReplayBufferRequest returns a new StopReplayBufferRequest.

func (StopReplayBufferRequest) ID

func (r StopReplayBufferRequest) ID() string

ID returns the request's message ID.

func (StopReplayBufferRequest) Receive

Receive waits for the response.

func (*StopReplayBufferRequest) Send

Send sends the request.

func (StopReplayBufferRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StopReplayBufferRequest) Type

func (r StopReplayBufferRequest) Type() string

Type returns the request's message type.

type StopReplayBufferResponse

type StopReplayBufferResponse struct {
	// contains filtered or unexported fields
}

StopReplayBufferResponse : Response for StopReplayBufferRequest.

Since obs-websocket version: 4.2.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopreplaybuffer

func (StopReplayBufferResponse) Error

func (r StopReplayBufferResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StopReplayBufferResponse) ID

func (r StopReplayBufferResponse) ID() string

ID returns the response's message ID.

func (StopReplayBufferResponse) Status

func (r StopReplayBufferResponse) Status() string

Status returns the response's status.

type StopStreamingRequest

type StopStreamingRequest struct {
	// contains filtered or unexported fields
}

StopStreamingRequest : Stop streaming. Will return an `error` if streaming is not active.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopstreaming

func NewStopStreamingRequest

func NewStopStreamingRequest() StopStreamingRequest

NewStopStreamingRequest returns a new StopStreamingRequest.

func (StopStreamingRequest) ID

func (r StopStreamingRequest) ID() string

ID returns the request's message ID.

func (StopStreamingRequest) Receive

Receive waits for the response.

func (*StopStreamingRequest) Send

func (r *StopStreamingRequest) Send(c Client) error

Send sends the request.

func (StopStreamingRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StopStreamingRequest) Type

func (r StopStreamingRequest) Type() string

Type returns the request's message type.

type StopStreamingResponse

type StopStreamingResponse struct {
	// contains filtered or unexported fields
}

StopStreamingResponse : Response for StopStreamingRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopstreaming

func (StopStreamingResponse) Error

func (r StopStreamingResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StopStreamingResponse) ID

func (r StopStreamingResponse) ID() string

ID returns the response's message ID.

func (StopStreamingResponse) Status

func (r StopStreamingResponse) Status() string

Status returns the response's status.

type StopVirtualCamRequest

type StopVirtualCamRequest struct {
	// contains filtered or unexported fields
}

StopVirtualCamRequest : Stop virtual cam. Will return an `error` if virtual cam is not active.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopvirtualcam

func NewStopVirtualCamRequest

func NewStopVirtualCamRequest() StopVirtualCamRequest

NewStopVirtualCamRequest returns a new StopVirtualCamRequest.

func (StopVirtualCamRequest) ID

func (r StopVirtualCamRequest) ID() string

ID returns the request's message ID.

func (StopVirtualCamRequest) Receive

Receive waits for the response.

func (*StopVirtualCamRequest) Send

func (r *StopVirtualCamRequest) Send(c Client) error

Send sends the request.

func (StopVirtualCamRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (StopVirtualCamRequest) Type

func (r StopVirtualCamRequest) Type() string

Type returns the request's message type.

type StopVirtualCamResponse

type StopVirtualCamResponse struct {
	// contains filtered or unexported fields
}

StopVirtualCamResponse : Response for StopVirtualCamRequest.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#stopvirtualcam

func (StopVirtualCamResponse) Error

func (r StopVirtualCamResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (StopVirtualCamResponse) ID

func (r StopVirtualCamResponse) ID() string

ID returns the response's message ID.

func (StopVirtualCamResponse) Status

func (r StopVirtualCamResponse) Status() string

Status returns the response's status.

type StreamStartedEvent

type StreamStartedEvent struct {
	// contains filtered or unexported fields
}

StreamStartedEvent : Streaming started successfully.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#streamstarted

func (StreamStartedEvent) RecTimecode

func (e StreamStartedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (StreamStartedEvent) StreamTimecode

func (e StreamStartedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (StreamStartedEvent) Type

func (e StreamStartedEvent) Type() string

Type returns the event's update type.

type StreamStartingEvent

type StreamStartingEvent struct {
	// Always false (retrocompatibility).
	// Required: Yes.
	PreviewOnly bool `json:"preview-only"`
	// contains filtered or unexported fields
}

StreamStartingEvent : A request to start streaming has been issued.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#streamstarting

func (StreamStartingEvent) RecTimecode

func (e StreamStartingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (StreamStartingEvent) StreamTimecode

func (e StreamStartingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (StreamStartingEvent) Type

func (e StreamStartingEvent) Type() string

Type returns the event's update type.

type StreamStatusEvent

type StreamStatusEvent struct {
	// Current streaming state.
	// Required: Yes.
	Streaming bool `json:"streaming"`
	// Current recording state.
	// Required: Yes.
	Recording bool `json:"recording"`
	// Replay Buffer status.
	// Required: Yes.
	ReplayBufferActive bool `json:"replay-buffer-active"`
	// Amount of data per second (in bytes) transmitted by the stream encoder.
	// Required: Yes.
	BytesPerSec int `json:"bytes-per-sec"`
	// Amount of data per second (in kilobits) transmitted by the stream encoder.
	// Required: Yes.
	KbitsPerSec int `json:"kbits-per-sec"`
	// Percentage of dropped frames.
	// Required: Yes.
	Strain float64 `json:"strain"`
	// Total time (in seconds) since the stream started.
	// Required: Yes.
	TotalStreamTime int `json:"total-stream-time"`
	// Total number of frames transmitted since the stream started.
	// Required: Yes.
	NumTotalFrames int `json:"num-total-frames"`
	// Number of frames dropped by the encoder since the stream started.
	// Required: Yes.
	NumDroppedFrames int `json:"num-dropped-frames"`
	// Current framerate.
	// Required: Yes.
	FPS float64 `json:"fps"`
	// Number of frames rendered.
	// Required: Yes.
	RenderTotalFrames int `json:"render-total-frames"`
	// Number of frames missed due to rendering lag.
	// Required: Yes.
	RenderMissedFrames int `json:"render-missed-frames"`
	// Number of frames outputted.
	// Required: Yes.
	OutputTotalFrames int `json:"output-total-frames"`
	// Number of frames skipped due to encoding lag.
	// Required: Yes.
	OutputSkippedFrames int `json:"output-skipped-frames"`
	// Average frame time (in milliseconds).
	// Required: Yes.
	AverageFrameTime float64 `json:"average-frame-time"`
	// Current CPU usage (percentage).
	// Required: Yes.
	CpuUsage float64 `json:"cpu-usage"`
	// Current RAM usage (in megabytes).
	// Required: Yes.
	MemoryUsage float64 `json:"memory-usage"`
	// Free recording disk space (in megabytes).
	// Required: Yes.
	FreeDiskSpace float64 `json:"free-disk-space"`
	// Always false (retrocompatibility).
	// Required: Yes.
	PreviewOnly bool `json:"preview-only"`
	// contains filtered or unexported fields
}

StreamStatusEvent : Emitted every 2 seconds when stream is active.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#streamstatus

func (StreamStatusEvent) RecTimecode

func (e StreamStatusEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (StreamStatusEvent) StreamTimecode

func (e StreamStatusEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (StreamStatusEvent) Type

func (e StreamStatusEvent) Type() string

Type returns the event's update type.

type StreamStoppedEvent

type StreamStoppedEvent struct {
	// contains filtered or unexported fields
}

StreamStoppedEvent : Streaming stopped successfully.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#streamstopped

func (StreamStoppedEvent) RecTimecode

func (e StreamStoppedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (StreamStoppedEvent) StreamTimecode

func (e StreamStoppedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (StreamStoppedEvent) Type

func (e StreamStoppedEvent) Type() string

Type returns the event's update type.

type StreamStoppingEvent

type StreamStoppingEvent struct {
	// Always false (retrocompatibility).
	// Required: Yes.
	PreviewOnly bool `json:"preview-only"`
	// contains filtered or unexported fields
}

StreamStoppingEvent : A request to stop streaming has been issued.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#streamstopping

func (StreamStoppingEvent) RecTimecode

func (e StreamStoppingEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (StreamStoppingEvent) StreamTimecode

func (e StreamStoppingEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (StreamStoppingEvent) Type

func (e StreamStoppingEvent) Type() string

Type returns the event's update type.

type StudioModeSwitchedEvent

type StudioModeSwitchedEvent struct {
	// The new enabled state of Studio Mode.
	// Required: Yes.
	NewState bool `json:"new-state"`
	// contains filtered or unexported fields
}

StudioModeSwitchedEvent : Studio Mode has been enabled or disabled.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#studiomodeswitched

func (StudioModeSwitchedEvent) RecTimecode

func (e StudioModeSwitchedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (StudioModeSwitchedEvent) StreamTimecode

func (e StudioModeSwitchedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (StudioModeSwitchedEvent) Type

func (e StudioModeSwitchedEvent) Type() string

Type returns the event's update type.

type SwitchScenesEvent

type SwitchScenesEvent struct {
	// The new scene.
	// Required: Yes.
	SceneName string `json:"scene-name"`
	// List of scene items in the new scene.
	// Same specification as [`GetCurrentScene`](#getcurrentscene).
	// Required: Yes.
	Sources []*SceneItem `json:"sources"`
	// contains filtered or unexported fields
}

SwitchScenesEvent : Indicates a scene change.

Since obs-websocket version: 0.3.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#switchscenes

func (SwitchScenesEvent) RecTimecode

func (e SwitchScenesEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SwitchScenesEvent) StreamTimecode

func (e SwitchScenesEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SwitchScenesEvent) Type

func (e SwitchScenesEvent) Type() string

Type returns the event's update type.

type SwitchTransitionEvent

type SwitchTransitionEvent struct {
	// The name of the new active transition.
	// Required: Yes.
	TransitionName string `json:"transition-name"`
	// contains filtered or unexported fields
}

SwitchTransitionEvent : The active transition has been changed.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#switchtransition

func (SwitchTransitionEvent) RecTimecode

func (e SwitchTransitionEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (SwitchTransitionEvent) StreamTimecode

func (e SwitchTransitionEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (SwitchTransitionEvent) Type

func (e SwitchTransitionEvent) Type() string

Type returns the event's update type.

type TakeSourceScreenshotRequest

type TakeSourceScreenshotRequest struct {
	// Source name.
	// Note: Since scenes are also sources, you can also provide a scene name.
	// If not provided, the currently active scene is used.
	// Required: No.
	SourceName string `json:"sourceName"`
	// Format of the Data URI encoded picture.
	// Can be "png", "jpg", "jpeg" or "bmp" (or any other value supported by Qt's Image module).
	// Required: No.
	EmbedPictureFormat string `json:"embedPictureFormat"`
	// Full file path (file extension included) where the captured image is to be saved.
	// Can be in a format different from `pictureFormat`.
	// Can be a relative path.
	// Required: No.
	SaveToFilePath string `json:"saveToFilePath"`
	// Format to save the image file as (one of the values provided in the `supported-image-export-formats` response field of `GetVersion`).
	// If not specified, tries to guess based on file extension.
	// Required: No.
	FileFormat string `json:"fileFormat"`
	// Compression ratio between -1 and 100 to write the image with.
	// -1 is automatic, 1 is smallest file/most compression, 100 is largest file/least compression.
	// Varies with image type.
	// Required: No.
	CompressionQuality int `json:"compressionQuality"`
	// Screenshot width.
	// Defaults to the source's base width.
	// Required: No.
	Width int `json:"width"`
	// Screenshot height.
	// Defaults to the source's base height.
	// Required: No.
	Height int `json:"height"`
	// contains filtered or unexported fields
}

TakeSourceScreenshotRequest :

At least `embedPictureFormat` or `saveToFilePath` must be specified.

Clients can specify `width` and `height` parameters to receive scaled pictures Aspect ratio is preserved if only one of these two parameters is specified.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#takesourcescreenshot

func NewTakeSourceScreenshotRequest

func NewTakeSourceScreenshotRequest(
	sourceName string,
	embedPictureFormat string,
	saveToFilePath string,
	fileFormat string,
	compressionQuality int,
	width int,
	height int,
) TakeSourceScreenshotRequest

NewTakeSourceScreenshotRequest returns a new TakeSourceScreenshotRequest.

func (TakeSourceScreenshotRequest) ID

func (r TakeSourceScreenshotRequest) ID() string

ID returns the request's message ID.

func (TakeSourceScreenshotRequest) Receive

Receive waits for the response.

func (*TakeSourceScreenshotRequest) Send

Send sends the request.

func (TakeSourceScreenshotRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (TakeSourceScreenshotRequest) Type

func (r TakeSourceScreenshotRequest) Type() string

Type returns the request's message type.

type TakeSourceScreenshotResponse

type TakeSourceScreenshotResponse struct {
	// Source name.
	// Required: Yes.
	SourceName string `json:"sourceName"`
	// Image Data URI (if `embedPictureFormat` was specified in the request).
	// Required: Yes.
	Img string `json:"img"`
	// Absolute path to the saved image file (if `saveToFilePath` was specified in the request).
	// Required: Yes.
	ImageFile string `json:"imageFile"`
	// contains filtered or unexported fields
}

TakeSourceScreenshotResponse : Response for TakeSourceScreenshotRequest.

Since obs-websocket version: 4.6.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#takesourcescreenshot

func (TakeSourceScreenshotResponse) Error

func (r TakeSourceScreenshotResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (TakeSourceScreenshotResponse) ID

func (r TakeSourceScreenshotResponse) ID() string

ID returns the response's message ID.

func (TakeSourceScreenshotResponse) Status

func (r TakeSourceScreenshotResponse) Status() string

Status returns the response's status.

type ToggleMuteRequest

type ToggleMuteRequest struct {
	// Source name.
	// Required: Yes.
	Source string `json:"source"`
	// contains filtered or unexported fields
}

ToggleMuteRequest : Inverts the mute status of a specified source.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#togglemute

func NewToggleMuteRequest

func NewToggleMuteRequest(source string) ToggleMuteRequest

NewToggleMuteRequest returns a new ToggleMuteRequest.

func (ToggleMuteRequest) ID

func (r ToggleMuteRequest) ID() string

ID returns the request's message ID.

func (ToggleMuteRequest) Receive

Receive waits for the response.

func (*ToggleMuteRequest) Send

func (r *ToggleMuteRequest) Send(c Client) error

Send sends the request.

func (ToggleMuteRequest) SendReceive

func (r ToggleMuteRequest) SendReceive(c Client) (ToggleMuteResponse, error)

SendReceive sends the request then immediately waits for the response.

func (ToggleMuteRequest) Type

func (r ToggleMuteRequest) Type() string

Type returns the request's message type.

type ToggleMuteResponse

type ToggleMuteResponse struct {
	// contains filtered or unexported fields
}

ToggleMuteResponse : Response for ToggleMuteRequest.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#togglemute

func (ToggleMuteResponse) Error

func (r ToggleMuteResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ToggleMuteResponse) ID

func (r ToggleMuteResponse) ID() string

ID returns the response's message ID.

func (ToggleMuteResponse) Status

func (r ToggleMuteResponse) Status() string

Status returns the response's status.

type ToggleStudioModeRequest

type ToggleStudioModeRequest struct {
	// contains filtered or unexported fields
}

ToggleStudioModeRequest : Toggles Studio Mode (depending on the current state of studio mode).

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#togglestudiomode

func NewToggleStudioModeRequest

func NewToggleStudioModeRequest() ToggleStudioModeRequest

NewToggleStudioModeRequest returns a new ToggleStudioModeRequest.

func (ToggleStudioModeRequest) ID

func (r ToggleStudioModeRequest) ID() string

ID returns the request's message ID.

func (ToggleStudioModeRequest) Receive

Receive waits for the response.

func (*ToggleStudioModeRequest) Send

Send sends the request.

func (ToggleStudioModeRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (ToggleStudioModeRequest) Type

func (r ToggleStudioModeRequest) Type() string

Type returns the request's message type.

type ToggleStudioModeResponse

type ToggleStudioModeResponse struct {
	// contains filtered or unexported fields
}

ToggleStudioModeResponse : Response for ToggleStudioModeRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#togglestudiomode

func (ToggleStudioModeResponse) Error

func (r ToggleStudioModeResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (ToggleStudioModeResponse) ID

func (r ToggleStudioModeResponse) ID() string

ID returns the response's message ID.

func (ToggleStudioModeResponse) Status

func (r ToggleStudioModeResponse) Status() string

Status returns the response's status.

type TransitionBeginEvent

type TransitionBeginEvent struct {
	// Transition name.
	// Required: Yes.
	Name string `json:"name"`
	// Transition type.
	// Required: Yes.
	Type_ string `json:"type"`
	// Transition duration (in milliseconds).
	// Will be -1 for any transition with a fixed duration, such as a Stinger, due to limitations of the OBS API.
	// Required: Yes.
	Duration int `json:"duration"`
	// Source scene of the transition.
	// Required: No.
	FromScene string `json:"from-scene"`
	// Destination scene of the transition.
	// Required: Yes.
	ToScene string `json:"to-scene"`
	// contains filtered or unexported fields
}

TransitionBeginEvent : A transition (other than "cut") has begun.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitionbegin

func (TransitionBeginEvent) RecTimecode

func (e TransitionBeginEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (TransitionBeginEvent) StreamTimecode

func (e TransitionBeginEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (TransitionBeginEvent) Type

func (e TransitionBeginEvent) Type() string

Type returns the event's update type.

type TransitionDurationChangedEvent

type TransitionDurationChangedEvent struct {
	// New transition duration.
	// Required: Yes.
	NewDuration int `json:"new-duration"`
	// contains filtered or unexported fields
}

TransitionDurationChangedEvent : The active transition duration has been changed.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitiondurationchanged

func (TransitionDurationChangedEvent) RecTimecode

func (e TransitionDurationChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (TransitionDurationChangedEvent) StreamTimecode

func (e TransitionDurationChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (TransitionDurationChangedEvent) Type

func (e TransitionDurationChangedEvent) Type() string

Type returns the event's update type.

type TransitionEndEvent

type TransitionEndEvent struct {
	// Transition name.
	// Required: Yes.
	Name string `json:"name"`
	// Transition type.
	// Required: Yes.
	Type_ string `json:"type"`
	// Transition duration (in milliseconds).
	// Required: Yes.
	Duration int `json:"duration"`
	// Destination scene of the transition.
	// Required: Yes.
	ToScene string `json:"to-scene"`
	// contains filtered or unexported fields
}

TransitionEndEvent : A transition (other than "cut") has ended. Note: The `from-scene` field is not available in TransitionEnd.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitionend

func (TransitionEndEvent) RecTimecode

func (e TransitionEndEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (TransitionEndEvent) StreamTimecode

func (e TransitionEndEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (TransitionEndEvent) Type

func (e TransitionEndEvent) Type() string

Type returns the event's update type.

type TransitionListChangedEvent

type TransitionListChangedEvent struct {
	// Transitions list.
	// Required: Yes.
	Transitions []map[string]interface{} `json:"transitions"`
	// Transition name.
	// Required: Yes.
	TransitionsName string `json:"transitions.*.name"`
	// contains filtered or unexported fields
}

TransitionListChangedEvent : The list of available transitions has been modified. Transitions have been added, removed, or renamed.

Since obs-websocket version: 4.0.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitionlistchanged

func (TransitionListChangedEvent) RecTimecode

func (e TransitionListChangedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (TransitionListChangedEvent) StreamTimecode

func (e TransitionListChangedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (TransitionListChangedEvent) Type

func (e TransitionListChangedEvent) Type() string

Type returns the event's update type.

type TransitionToProgramRequest

type TransitionToProgramRequest struct {
	// Change the active transition before switching scenes.
	// Defaults to the active transition.
	// Required: No.
	WithTransition map[string]interface{} `json:"with-transition"`
	// Name of the transition.
	// Required: Yes.
	WithTransitionName string `json:"with-transition.name"`
	// Transition duration (in milliseconds).
	// Required: No.
	WithTransitionDuration int `json:"with-transition.duration"`
	// contains filtered or unexported fields
}

TransitionToProgramRequest : Transitions the currently previewed scene to the main output. Will return an `error` if Studio Mode is not enabled.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitiontoprogram

func NewTransitionToProgramRequest

func NewTransitionToProgramRequest(
	withTransition map[string]interface{},
	withTransitionName string,
	withTransitionDuration int,
) TransitionToProgramRequest

NewTransitionToProgramRequest returns a new TransitionToProgramRequest.

func (TransitionToProgramRequest) ID

func (r TransitionToProgramRequest) ID() string

ID returns the request's message ID.

func (TransitionToProgramRequest) Receive

Receive waits for the response.

func (*TransitionToProgramRequest) Send

Send sends the request.

func (TransitionToProgramRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (TransitionToProgramRequest) Type

func (r TransitionToProgramRequest) Type() string

Type returns the request's message type.

type TransitionToProgramResponse

type TransitionToProgramResponse struct {
	// contains filtered or unexported fields
}

TransitionToProgramResponse : Response for TransitionToProgramRequest.

Since obs-websocket version: 4.1.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitiontoprogram

func (TransitionToProgramResponse) Error

func (r TransitionToProgramResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (TransitionToProgramResponse) ID

func (r TransitionToProgramResponse) ID() string

ID returns the response's message ID.

func (TransitionToProgramResponse) Status

func (r TransitionToProgramResponse) Status() string

Status returns the response's status.

type TransitionVideoEndEvent

type TransitionVideoEndEvent struct {
	// Transition name.
	// Required: Yes.
	Name string `json:"name"`
	// Transition type.
	// Required: Yes.
	Type_ string `json:"type"`
	// Transition duration (in milliseconds).
	// Required: Yes.
	Duration int `json:"duration"`
	// Source scene of the transition.
	// Required: No.
	FromScene string `json:"from-scene"`
	// Destination scene of the transition.
	// Required: Yes.
	ToScene string `json:"to-scene"`
	// contains filtered or unexported fields
}

TransitionVideoEndEvent : A stinger transition has finished playing its video.

Since obs-websocket version: 4.8.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitionvideoend

func (TransitionVideoEndEvent) RecTimecode

func (e TransitionVideoEndEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (TransitionVideoEndEvent) StreamTimecode

func (e TransitionVideoEndEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (TransitionVideoEndEvent) Type

func (e TransitionVideoEndEvent) Type() string

Type returns the event's update type.

type TriggerHotkeyByNameRequest

type TriggerHotkeyByNameRequest struct {
	// Unique name of the hotkey, as defined when registering the hotkey (e.g. "ReplayBuffer.Save").
	// Required: Yes.
	HotkeyName string `json:"hotkeyName"`
	// contains filtered or unexported fields
}

TriggerHotkeyByNameRequest : Executes hotkey routine, identified by hotkey unique name.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#triggerhotkeybyname

func NewTriggerHotkeyByNameRequest

func NewTriggerHotkeyByNameRequest(hotkeyName string) TriggerHotkeyByNameRequest

NewTriggerHotkeyByNameRequest returns a new TriggerHotkeyByNameRequest.

func (TriggerHotkeyByNameRequest) ID

func (r TriggerHotkeyByNameRequest) ID() string

ID returns the request's message ID.

func (TriggerHotkeyByNameRequest) Receive

Receive waits for the response.

func (*TriggerHotkeyByNameRequest) Send

Send sends the request.

func (TriggerHotkeyByNameRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (TriggerHotkeyByNameRequest) Type

func (r TriggerHotkeyByNameRequest) Type() string

Type returns the request's message type.

type TriggerHotkeyByNameResponse

type TriggerHotkeyByNameResponse struct {
	// contains filtered or unexported fields
}

TriggerHotkeyByNameResponse : Response for TriggerHotkeyByNameRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#triggerhotkeybyname

func (TriggerHotkeyByNameResponse) Error

func (r TriggerHotkeyByNameResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (TriggerHotkeyByNameResponse) ID

func (r TriggerHotkeyByNameResponse) ID() string

ID returns the response's message ID.

func (TriggerHotkeyByNameResponse) Status

func (r TriggerHotkeyByNameResponse) Status() string

Status returns the response's status.

type TriggerHotkeyBySequenceRequest

type TriggerHotkeyBySequenceRequest struct {
	// Main key identifier (e.g. `OBS_KEY_A` for key "A").
	// Available identifiers [here](https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h).
	// Required: Yes.
	KeyID string `json:"keyId"`
	// Optional key modifiers object.
	// False entries can be ommitted.
	// Required: Yes.
	KeyModifiers map[string]interface{} `json:"keyModifiers"`
	// Trigger Shift Key.
	// Required: Yes.
	KeyModifiersShift bool `json:"keyModifiers.shift"`
	// Trigger Alt Key.
	// Required: Yes.
	KeyModifiersAlt bool `json:"keyModifiers.alt"`
	// Trigger Control (Ctrl) Key.
	// Required: Yes.
	KeyModifiersControl bool `json:"keyModifiers.control"`
	// Trigger Command Key (Mac).
	// Required: Yes.
	KeyModifiersCommand bool `json:"keyModifiers.command"`
	// contains filtered or unexported fields
}

TriggerHotkeyBySequenceRequest : Executes hotkey routine, identified by bound combination of keys A single key combination might trigger multiple hotkey routines depending on user settings.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#triggerhotkeybysequence

func NewTriggerHotkeyBySequenceRequest

func NewTriggerHotkeyBySequenceRequest(
	keyID string,
	keyModifiers map[string]interface{},
	keyModifiersShift bool,
	keyModifiersAlt bool,
	keyModifiersControl bool,
	keyModifiersCommand bool,
) TriggerHotkeyBySequenceRequest

NewTriggerHotkeyBySequenceRequest returns a new TriggerHotkeyBySequenceRequest.

func (TriggerHotkeyBySequenceRequest) ID

func (r TriggerHotkeyBySequenceRequest) ID() string

ID returns the request's message ID.

func (TriggerHotkeyBySequenceRequest) Receive

Receive waits for the response.

func (*TriggerHotkeyBySequenceRequest) Send

Send sends the request.

func (TriggerHotkeyBySequenceRequest) SendReceive

SendReceive sends the request then immediately waits for the response.

func (TriggerHotkeyBySequenceRequest) Type

func (r TriggerHotkeyBySequenceRequest) Type() string

Type returns the request's message type.

type TriggerHotkeyBySequenceResponse

type TriggerHotkeyBySequenceResponse struct {
	// contains filtered or unexported fields
}

TriggerHotkeyBySequenceResponse : Response for TriggerHotkeyBySequenceRequest.

Since obs-websocket version: 4.9.0.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#triggerhotkeybysequence

func (TriggerHotkeyBySequenceResponse) Error

func (r TriggerHotkeyBySequenceResponse) Error() string

Error returns the response's error. When using Receive or SendReceive, this should always return an empty string, because the error will have been returned explictly instead of stored here.

func (TriggerHotkeyBySequenceResponse) ID

func (r TriggerHotkeyBySequenceResponse) ID() string

ID returns the response's message ID.

func (TriggerHotkeyBySequenceResponse) Status

func (r TriggerHotkeyBySequenceResponse) Status() string

Status returns the response's status.

type VirtualCamStartedEvent

type VirtualCamStartedEvent struct {
	// contains filtered or unexported fields
}

VirtualCamStartedEvent : Virtual cam started successfully.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#virtualcamstarted

func (VirtualCamStartedEvent) RecTimecode

func (e VirtualCamStartedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (VirtualCamStartedEvent) StreamTimecode

func (e VirtualCamStartedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (VirtualCamStartedEvent) Type

func (e VirtualCamStartedEvent) Type() string

Type returns the event's update type.

type VirtualCamStoppedEvent

type VirtualCamStoppedEvent struct {
	// contains filtered or unexported fields
}

VirtualCamStoppedEvent : Virtual cam stopped successfully.

Since obs-websocket version: 4.9.1.

https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#virtualcamstopped

func (VirtualCamStoppedEvent) RecTimecode

func (e VirtualCamStoppedEvent) RecTimecode() string

RecTimecode returns the event's recording timecode.

func (VirtualCamStoppedEvent) StreamTimecode

func (e VirtualCamStoppedEvent) StreamTimecode() string

StreamTimeode returns the event's stream timecode.

func (VirtualCamStoppedEvent) Type

func (e VirtualCamStoppedEvent) Type() string

Type returns the event's update type.

Jump to

Keyboard shortcuts

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