Documentation
¶
Overview ¶
Package obsws provides client functionality for obs-websocket.
Index ¶
- Constants
- Variables
- func GetMessageID() string
- func SetReceiveTimeout(timeout time.Duration)
- type AddFilterToSourceRequest
- func (r AddFilterToSourceRequest) ID() string
- func (r AddFilterToSourceRequest) Receive() (AddFilterToSourceResponse, error)
- func (r *AddFilterToSourceRequest) Send(c Client) error
- func (r AddFilterToSourceRequest) SendReceive(c Client) (AddFilterToSourceResponse, error)
- func (r AddFilterToSourceRequest) Type() string
- type AddFilterToSourceResponse
- type AddSceneItemRequest
- type AddSceneItemResponse
- type AuthenticateRequest
- type AuthenticateResponse
- type BroadcastCustomMessageEvent
- type BroadcastCustomMessageRequest
- func (r BroadcastCustomMessageRequest) ID() string
- func (r BroadcastCustomMessageRequest) Receive() (BroadcastCustomMessageResponse, error)
- func (r *BroadcastCustomMessageRequest) Send(c Client) error
- func (r BroadcastCustomMessageRequest) SendReceive(c Client) (BroadcastCustomMessageResponse, error)
- func (r BroadcastCustomMessageRequest) Type() string
- type BroadcastCustomMessageResponse
- type Client
- func (c *Client) AddEventHandler(eventType string, handler func(Event)) error
- func (c *Client) Connect() error
- func (c Client) Connected() bool
- func (c *Client) Disconnect() error
- func (c *Client) MustAddEventHandler(eventType string, handler func(Event))
- func (c *Client) RemoveEventHandler(eventType string)
- func (c *Client) SendRequest(req Request) (chan map[string]interface{}, error)
- type CreateSceneRequest
- type CreateSceneResponse
- type CreateSourceRequest
- type CreateSourceResponse
- type DeleteSceneItemRequest
- func (r DeleteSceneItemRequest) ID() string
- func (r DeleteSceneItemRequest) Receive() (DeleteSceneItemResponse, error)
- func (r *DeleteSceneItemRequest) Send(c Client) error
- func (r DeleteSceneItemRequest) SendReceive(c Client) (DeleteSceneItemResponse, error)
- func (r DeleteSceneItemRequest) Type() string
- type DeleteSceneItemResponse
- type DisableStudioModeRequest
- func (r DisableStudioModeRequest) ID() string
- func (r DisableStudioModeRequest) Receive() (DisableStudioModeResponse, error)
- func (r *DisableStudioModeRequest) Send(c Client) error
- func (r DisableStudioModeRequest) SendReceive(c Client) (DisableStudioModeResponse, error)
- func (r DisableStudioModeRequest) Type() string
- type DisableStudioModeResponse
- type DuplicateSceneItemRequest
- func (r DuplicateSceneItemRequest) ID() string
- func (r DuplicateSceneItemRequest) Receive() (DuplicateSceneItemResponse, error)
- func (r *DuplicateSceneItemRequest) Send(c Client) error
- func (r DuplicateSceneItemRequest) SendReceive(c Client) (DuplicateSceneItemResponse, error)
- func (r DuplicateSceneItemRequest) Type() string
- type DuplicateSceneItemResponse
- type EnableStudioModeRequest
- func (r EnableStudioModeRequest) ID() string
- func (r EnableStudioModeRequest) Receive() (EnableStudioModeResponse, error)
- func (r *EnableStudioModeRequest) Send(c Client) error
- func (r EnableStudioModeRequest) SendReceive(c Client) (EnableStudioModeResponse, error)
- func (r EnableStudioModeRequest) Type() string
- type EnableStudioModeResponse
- type Event
- type ExecuteBatchRequest
- type ExecuteBatchResponse
- type ExitingEvent
- type GetAudioActiveRequest
- type GetAudioActiveResponse
- type GetAudioMonitorTypeRequest
- func (r GetAudioMonitorTypeRequest) ID() string
- func (r GetAudioMonitorTypeRequest) Receive() (GetAudioMonitorTypeResponse, error)
- func (r *GetAudioMonitorTypeRequest) Send(c Client) error
- func (r GetAudioMonitorTypeRequest) SendReceive(c Client) (GetAudioMonitorTypeResponse, error)
- func (r GetAudioMonitorTypeRequest) Type() string
- type GetAudioMonitorTypeResponse
- type GetAudioTracksRequest
- type GetAudioTracksResponse
- type GetAuthRequiredRequest
- func (r GetAuthRequiredRequest) ID() string
- func (r GetAuthRequiredRequest) Receive() (GetAuthRequiredResponse, error)
- func (r *GetAuthRequiredRequest) Send(c Client) error
- func (r GetAuthRequiredRequest) SendReceive(c Client) (GetAuthRequiredResponse, error)
- func (r GetAuthRequiredRequest) Type() string
- type GetAuthRequiredResponse
- type GetBrowserSourcePropertiesRequest
- func (r GetBrowserSourcePropertiesRequest) ID() string
- func (r GetBrowserSourcePropertiesRequest) Receive() (GetBrowserSourcePropertiesResponse, error)
- func (r *GetBrowserSourcePropertiesRequest) Send(c Client) error
- func (r GetBrowserSourcePropertiesRequest) SendReceive(c Client) (GetBrowserSourcePropertiesResponse, error)
- func (r GetBrowserSourcePropertiesRequest) Type() string
- type GetBrowserSourcePropertiesResponse
- type GetCurrentProfileRequest
- func (r GetCurrentProfileRequest) ID() string
- func (r GetCurrentProfileRequest) Receive() (GetCurrentProfileResponse, error)
- func (r *GetCurrentProfileRequest) Send(c Client) error
- func (r GetCurrentProfileRequest) SendReceive(c Client) (GetCurrentProfileResponse, error)
- func (r GetCurrentProfileRequest) Type() string
- type GetCurrentProfileResponse
- type GetCurrentSceneCollectionRequest
- func (r GetCurrentSceneCollectionRequest) ID() string
- func (r GetCurrentSceneCollectionRequest) Receive() (GetCurrentSceneCollectionResponse, error)
- func (r *GetCurrentSceneCollectionRequest) Send(c Client) error
- func (r GetCurrentSceneCollectionRequest) SendReceive(c Client) (GetCurrentSceneCollectionResponse, error)
- func (r GetCurrentSceneCollectionRequest) Type() string
- type GetCurrentSceneCollectionResponse
- type GetCurrentSceneRequest
- func (r GetCurrentSceneRequest) ID() string
- func (r GetCurrentSceneRequest) Receive() (GetCurrentSceneResponse, error)
- func (r *GetCurrentSceneRequest) Send(c Client) error
- func (r GetCurrentSceneRequest) SendReceive(c Client) (GetCurrentSceneResponse, error)
- func (r GetCurrentSceneRequest) Type() string
- type GetCurrentSceneResponse
- type GetCurrentTransitionRequest
- func (r GetCurrentTransitionRequest) ID() string
- func (r GetCurrentTransitionRequest) Receive() (GetCurrentTransitionResponse, error)
- func (r *GetCurrentTransitionRequest) Send(c Client) error
- func (r GetCurrentTransitionRequest) SendReceive(c Client) (GetCurrentTransitionResponse, error)
- func (r GetCurrentTransitionRequest) Type() string
- type GetCurrentTransitionResponse
- type GetFilenameFormattingRequest
- func (r GetFilenameFormattingRequest) ID() string
- func (r GetFilenameFormattingRequest) Receive() (GetFilenameFormattingResponse, error)
- func (r *GetFilenameFormattingRequest) Send(c Client) error
- func (r GetFilenameFormattingRequest) SendReceive(c Client) (GetFilenameFormattingResponse, error)
- func (r GetFilenameFormattingRequest) Type() string
- type GetFilenameFormattingResponse
- type GetMediaDurationRequest
- func (r GetMediaDurationRequest) ID() string
- func (r GetMediaDurationRequest) Receive() (GetMediaDurationResponse, error)
- func (r *GetMediaDurationRequest) Send(c Client) error
- func (r GetMediaDurationRequest) SendReceive(c Client) (GetMediaDurationResponse, error)
- func (r GetMediaDurationRequest) Type() string
- type GetMediaDurationResponse
- type GetMediaSourcesListRequest
- func (r GetMediaSourcesListRequest) ID() string
- func (r GetMediaSourcesListRequest) Receive() (GetMediaSourcesListResponse, error)
- func (r *GetMediaSourcesListRequest) Send(c Client) error
- func (r GetMediaSourcesListRequest) SendReceive(c Client) (GetMediaSourcesListResponse, error)
- func (r GetMediaSourcesListRequest) Type() string
- type GetMediaSourcesListResponse
- type GetMediaStateRequest
- type GetMediaStateResponse
- type GetMediaTimeRequest
- type GetMediaTimeResponse
- type GetMuteRequest
- type GetMuteResponse
- type GetOutputInfoRequest
- type GetOutputInfoResponse
- type GetPreviewSceneRequest
- func (r GetPreviewSceneRequest) ID() string
- func (r GetPreviewSceneRequest) Receive() (GetPreviewSceneResponse, error)
- func (r *GetPreviewSceneRequest) Send(c Client) error
- func (r GetPreviewSceneRequest) SendReceive(c Client) (GetPreviewSceneResponse, error)
- func (r GetPreviewSceneRequest) Type() string
- type GetPreviewSceneResponse
- type GetRecordingFolderRequest
- func (r GetRecordingFolderRequest) ID() string
- func (r GetRecordingFolderRequest) Receive() (GetRecordingFolderResponse, error)
- func (r *GetRecordingFolderRequest) Send(c Client) error
- func (r GetRecordingFolderRequest) SendReceive(c Client) (GetRecordingFolderResponse, error)
- func (r GetRecordingFolderRequest) Type() string
- type GetRecordingFolderResponse
- type GetRecordingStatusRequest
- func (r GetRecordingStatusRequest) ID() string
- func (r GetRecordingStatusRequest) Receive() (GetRecordingStatusResponse, error)
- func (r *GetRecordingStatusRequest) Send(c Client) error
- func (r GetRecordingStatusRequest) SendReceive(c Client) (GetRecordingStatusResponse, error)
- func (r GetRecordingStatusRequest) Type() string
- type GetRecordingStatusResponse
- type GetReplayBufferStatusRequest
- func (r GetReplayBufferStatusRequest) ID() string
- func (r GetReplayBufferStatusRequest) Receive() (GetReplayBufferStatusResponse, error)
- func (r *GetReplayBufferStatusRequest) Send(c Client) error
- func (r GetReplayBufferStatusRequest) SendReceive(c Client) (GetReplayBufferStatusResponse, error)
- func (r GetReplayBufferStatusRequest) Type() string
- type GetReplayBufferStatusResponse
- type GetSceneItemListRequest
- func (r GetSceneItemListRequest) ID() string
- func (r GetSceneItemListRequest) Receive() (GetSceneItemListResponse, error)
- func (r *GetSceneItemListRequest) Send(c Client) error
- func (r GetSceneItemListRequest) SendReceive(c Client) (GetSceneItemListResponse, error)
- func (r GetSceneItemListRequest) Type() string
- type GetSceneItemListResponse
- type GetSceneItemPropertiesRequest
- func (r GetSceneItemPropertiesRequest) ID() string
- func (r GetSceneItemPropertiesRequest) Receive() (GetSceneItemPropertiesResponse, error)
- func (r *GetSceneItemPropertiesRequest) Send(c Client) error
- func (r GetSceneItemPropertiesRequest) SendReceive(c Client) (GetSceneItemPropertiesResponse, error)
- func (r GetSceneItemPropertiesRequest) Type() string
- type GetSceneItemPropertiesResponse
- type GetSceneListRequest
- type GetSceneListResponse
- type GetSceneTransitionOverrideRequest
- func (r GetSceneTransitionOverrideRequest) ID() string
- func (r GetSceneTransitionOverrideRequest) Receive() (GetSceneTransitionOverrideResponse, error)
- func (r *GetSceneTransitionOverrideRequest) Send(c Client) error
- func (r GetSceneTransitionOverrideRequest) SendReceive(c Client) (GetSceneTransitionOverrideResponse, error)
- func (r GetSceneTransitionOverrideRequest) Type() string
- type GetSceneTransitionOverrideResponse
- type GetSourceActiveRequest
- func (r GetSourceActiveRequest) ID() string
- func (r GetSourceActiveRequest) Receive() (GetSourceActiveResponse, error)
- func (r *GetSourceActiveRequest) Send(c Client) error
- func (r GetSourceActiveRequest) SendReceive(c Client) (GetSourceActiveResponse, error)
- func (r GetSourceActiveRequest) Type() string
- type GetSourceActiveResponse
- type GetSourceDefaultSettingsRequest
- func (r GetSourceDefaultSettingsRequest) ID() string
- func (r GetSourceDefaultSettingsRequest) Receive() (GetSourceDefaultSettingsResponse, error)
- func (r *GetSourceDefaultSettingsRequest) Send(c Client) error
- func (r GetSourceDefaultSettingsRequest) SendReceive(c Client) (GetSourceDefaultSettingsResponse, error)
- func (r GetSourceDefaultSettingsRequest) Type() string
- type GetSourceDefaultSettingsResponse
- type GetSourceFilterInfoRequest
- func (r GetSourceFilterInfoRequest) ID() string
- func (r GetSourceFilterInfoRequest) Receive() (GetSourceFilterInfoResponse, error)
- func (r *GetSourceFilterInfoRequest) Send(c Client) error
- func (r GetSourceFilterInfoRequest) SendReceive(c Client) (GetSourceFilterInfoResponse, error)
- func (r GetSourceFilterInfoRequest) Type() string
- type GetSourceFilterInfoResponse
- type GetSourceFiltersRequest
- func (r GetSourceFiltersRequest) ID() string
- func (r GetSourceFiltersRequest) Receive() (GetSourceFiltersResponse, error)
- func (r *GetSourceFiltersRequest) Send(c Client) error
- func (r GetSourceFiltersRequest) SendReceive(c Client) (GetSourceFiltersResponse, error)
- func (r GetSourceFiltersRequest) Type() string
- type GetSourceFiltersResponse
- type GetSourceSettingsRequest
- func (r GetSourceSettingsRequest) ID() string
- func (r GetSourceSettingsRequest) Receive() (GetSourceSettingsResponse, error)
- func (r *GetSourceSettingsRequest) Send(c Client) error
- func (r GetSourceSettingsRequest) SendReceive(c Client) (GetSourceSettingsResponse, error)
- func (r GetSourceSettingsRequest) Type() string
- type GetSourceSettingsResponse
- type GetSourceTypesListRequest
- func (r GetSourceTypesListRequest) ID() string
- func (r GetSourceTypesListRequest) Receive() (GetSourceTypesListResponse, error)
- func (r *GetSourceTypesListRequest) Send(c Client) error
- func (r GetSourceTypesListRequest) SendReceive(c Client) (GetSourceTypesListResponse, error)
- func (r GetSourceTypesListRequest) Type() string
- type GetSourceTypesListResponse
- type GetSourcesListRequest
- type GetSourcesListResponse
- type GetSpecialSourcesRequest
- func (r GetSpecialSourcesRequest) ID() string
- func (r GetSpecialSourcesRequest) Receive() (GetSpecialSourcesResponse, error)
- func (r *GetSpecialSourcesRequest) Send(c Client) error
- func (r GetSpecialSourcesRequest) SendReceive(c Client) (GetSpecialSourcesResponse, error)
- func (r GetSpecialSourcesRequest) Type() string
- type GetSpecialSourcesResponse
- type GetStatsRequest
- type GetStatsResponse
- type GetStreamSettingsRequest
- func (r GetStreamSettingsRequest) ID() string
- func (r GetStreamSettingsRequest) Receive() (GetStreamSettingsResponse, error)
- func (r *GetStreamSettingsRequest) Send(c Client) error
- func (r GetStreamSettingsRequest) SendReceive(c Client) (GetStreamSettingsResponse, error)
- func (r GetStreamSettingsRequest) Type() string
- type GetStreamSettingsResponse
- type GetStreamingStatusRequest
- func (r GetStreamingStatusRequest) ID() string
- func (r GetStreamingStatusRequest) Receive() (GetStreamingStatusResponse, error)
- func (r *GetStreamingStatusRequest) Send(c Client) error
- func (r GetStreamingStatusRequest) SendReceive(c Client) (GetStreamingStatusResponse, error)
- func (r GetStreamingStatusRequest) Type() string
- type GetStreamingStatusResponse
- type GetStudioModeStatusRequest
- func (r GetStudioModeStatusRequest) ID() string
- func (r GetStudioModeStatusRequest) Receive() (GetStudioModeStatusResponse, error)
- func (r *GetStudioModeStatusRequest) Send(c Client) error
- func (r GetStudioModeStatusRequest) SendReceive(c Client) (GetStudioModeStatusResponse, error)
- func (r GetStudioModeStatusRequest) Type() string
- type GetStudioModeStatusResponse
- type GetSyncOffsetRequest
- type GetSyncOffsetResponse
- type GetTextFreetype2PropertiesRequest
- func (r GetTextFreetype2PropertiesRequest) ID() string
- func (r GetTextFreetype2PropertiesRequest) Receive() (GetTextFreetype2PropertiesResponse, error)
- func (r *GetTextFreetype2PropertiesRequest) Send(c Client) error
- func (r GetTextFreetype2PropertiesRequest) SendReceive(c Client) (GetTextFreetype2PropertiesResponse, error)
- func (r GetTextFreetype2PropertiesRequest) Type() string
- type GetTextFreetype2PropertiesResponse
- type GetTextGDIPlusPropertiesRequest
- func (r GetTextGDIPlusPropertiesRequest) ID() string
- func (r GetTextGDIPlusPropertiesRequest) Receive() (GetTextGDIPlusPropertiesResponse, error)
- func (r *GetTextGDIPlusPropertiesRequest) Send(c Client) error
- func (r GetTextGDIPlusPropertiesRequest) SendReceive(c Client) (GetTextGDIPlusPropertiesResponse, error)
- func (r GetTextGDIPlusPropertiesRequest) Type() string
- type GetTextGDIPlusPropertiesResponse
- type GetTransitionDurationRequest
- func (r GetTransitionDurationRequest) ID() string
- func (r GetTransitionDurationRequest) Receive() (GetTransitionDurationResponse, error)
- func (r *GetTransitionDurationRequest) Send(c Client) error
- func (r GetTransitionDurationRequest) SendReceive(c Client) (GetTransitionDurationResponse, error)
- func (r GetTransitionDurationRequest) Type() string
- type GetTransitionDurationResponse
- type GetTransitionListRequest
- func (r GetTransitionListRequest) ID() string
- func (r GetTransitionListRequest) Receive() (GetTransitionListResponse, error)
- func (r *GetTransitionListRequest) Send(c Client) error
- func (r GetTransitionListRequest) SendReceive(c Client) (GetTransitionListResponse, error)
- func (r GetTransitionListRequest) Type() string
- type GetTransitionListResponse
- type GetTransitionPositionRequest
- func (r GetTransitionPositionRequest) ID() string
- func (r GetTransitionPositionRequest) Receive() (GetTransitionPositionResponse, error)
- func (r *GetTransitionPositionRequest) Send(c Client) error
- func (r GetTransitionPositionRequest) SendReceive(c Client) (GetTransitionPositionResponse, error)
- func (r GetTransitionPositionRequest) Type() string
- type GetTransitionPositionResponse
- type GetTransitionSettingsRequest
- func (r GetTransitionSettingsRequest) ID() string
- func (r GetTransitionSettingsRequest) Receive() (GetTransitionSettingsResponse, error)
- func (r *GetTransitionSettingsRequest) Send(c Client) error
- func (r GetTransitionSettingsRequest) SendReceive(c Client) (GetTransitionSettingsResponse, error)
- func (r GetTransitionSettingsRequest) Type() string
- type GetTransitionSettingsResponse
- type GetVersionRequest
- type GetVersionResponse
- type GetVideoInfoRequest
- type GetVideoInfoResponse
- type GetVirtualCamStatusRequest
- func (r GetVirtualCamStatusRequest) ID() string
- func (r GetVirtualCamStatusRequest) Receive() (GetVirtualCamStatusResponse, error)
- func (r *GetVirtualCamStatusRequest) Send(c Client) error
- func (r GetVirtualCamStatusRequest) SendReceive(c Client) (GetVirtualCamStatusResponse, error)
- func (r GetVirtualCamStatusRequest) Type() string
- type GetVirtualCamStatusResponse
- type GetVolumeRequest
- type GetVolumeResponse
- type HeartbeatEvent
- type ListOutputsRequest
- type ListOutputsResponse
- type ListProfilesRequest
- type ListProfilesResponse
- type ListSceneCollectionsRequest
- func (r ListSceneCollectionsRequest) ID() string
- func (r ListSceneCollectionsRequest) Receive() (ListSceneCollectionsResponse, error)
- func (r *ListSceneCollectionsRequest) Send(c Client) error
- func (r ListSceneCollectionsRequest) SendReceive(c Client) (ListSceneCollectionsResponse, error)
- func (r ListSceneCollectionsRequest) Type() string
- type ListSceneCollectionsResponse
- type MediaEndedEvent
- type MediaNextEvent
- type MediaPausedEvent
- type MediaPlayingEvent
- type MediaPreviousEvent
- type MediaRestartedEvent
- type MediaStartedEvent
- type MediaStoppedEvent
- type MoveSourceFilterRequest
- func (r MoveSourceFilterRequest) ID() string
- func (r MoveSourceFilterRequest) Receive() (MoveSourceFilterResponse, error)
- func (r *MoveSourceFilterRequest) Send(c Client) error
- func (r MoveSourceFilterRequest) SendReceive(c Client) (MoveSourceFilterResponse, error)
- func (r MoveSourceFilterRequest) Type() string
- type MoveSourceFilterResponse
- type NextMediaRequest
- type NextMediaResponse
- type OBSStats
- type OpenProjectorRequest
- type OpenProjectorResponse
- type PauseRecordingRequest
- type PauseRecordingResponse
- type PlayPauseMediaRequest
- type PlayPauseMediaResponse
- type PreviewSceneChangedEvent
- type PreviousMediaRequest
- type PreviousMediaResponse
- type ProfileChangedEvent
- type ProfileListChangedEvent
- type RecordingPausedEvent
- type RecordingResumedEvent
- type RecordingStartedEvent
- type RecordingStartingEvent
- type RecordingStoppedEvent
- type RecordingStoppingEvent
- type RefreshBrowserSourceRequest
- func (r RefreshBrowserSourceRequest) ID() string
- func (r RefreshBrowserSourceRequest) Receive() (RefreshBrowserSourceResponse, error)
- func (r *RefreshBrowserSourceRequest) Send(c Client) error
- func (r RefreshBrowserSourceRequest) SendReceive(c Client) (RefreshBrowserSourceResponse, error)
- func (r RefreshBrowserSourceRequest) Type() string
- type RefreshBrowserSourceResponse
- type ReleaseTBarRequest
- type ReleaseTBarResponse
- type RemoveFilterFromSourceRequest
- func (r RemoveFilterFromSourceRequest) ID() string
- func (r RemoveFilterFromSourceRequest) Receive() (RemoveFilterFromSourceResponse, error)
- func (r *RemoveFilterFromSourceRequest) Send(c Client) error
- func (r RemoveFilterFromSourceRequest) SendReceive(c Client) (RemoveFilterFromSourceResponse, error)
- func (r RemoveFilterFromSourceRequest) Type() string
- type RemoveFilterFromSourceResponse
- type RemoveSceneTransitionOverrideRequest
- func (r RemoveSceneTransitionOverrideRequest) ID() string
- func (r RemoveSceneTransitionOverrideRequest) Receive() (RemoveSceneTransitionOverrideResponse, error)
- func (r *RemoveSceneTransitionOverrideRequest) Send(c Client) error
- func (r RemoveSceneTransitionOverrideRequest) SendReceive(c Client) (RemoveSceneTransitionOverrideResponse, error)
- func (r RemoveSceneTransitionOverrideRequest) Type() string
- type RemoveSceneTransitionOverrideResponse
- type ReorderSceneItemsRequest
- func (r ReorderSceneItemsRequest) ID() string
- func (r ReorderSceneItemsRequest) Receive() (ReorderSceneItemsResponse, error)
- func (r *ReorderSceneItemsRequest) Send(c Client) error
- func (r ReorderSceneItemsRequest) SendReceive(c Client) (ReorderSceneItemsResponse, error)
- func (r ReorderSceneItemsRequest) Type() string
- type ReorderSceneItemsResponse
- type ReorderSourceFilterRequest
- func (r ReorderSourceFilterRequest) ID() string
- func (r ReorderSourceFilterRequest) Receive() (ReorderSourceFilterResponse, error)
- func (r *ReorderSourceFilterRequest) Send(c Client) error
- func (r ReorderSourceFilterRequest) SendReceive(c Client) (ReorderSourceFilterResponse, error)
- func (r ReorderSourceFilterRequest) Type() string
- type ReorderSourceFilterResponse
- type ReplayStartedEvent
- type ReplayStartingEvent
- type ReplayStoppedEvent
- type ReplayStoppingEvent
- type Request
- type ResetSceneItemRequest
- type ResetSceneItemResponse
- type Response
- type RestartMediaRequest
- type RestartMediaResponse
- type ResumeRecordingRequest
- func (r ResumeRecordingRequest) ID() string
- func (r ResumeRecordingRequest) Receive() (ResumeRecordingResponse, error)
- func (r *ResumeRecordingRequest) Send(c Client) error
- func (r ResumeRecordingRequest) SendReceive(c Client) (ResumeRecordingResponse, error)
- func (r ResumeRecordingRequest) Type() string
- type ResumeRecordingResponse
- type SaveReplayBufferRequest
- func (r SaveReplayBufferRequest) ID() string
- func (r SaveReplayBufferRequest) Receive() (SaveReplayBufferResponse, error)
- func (r *SaveReplayBufferRequest) Send(c Client) error
- func (r SaveReplayBufferRequest) SendReceive(c Client) (SaveReplayBufferResponse, error)
- func (r SaveReplayBufferRequest) Type() string
- type SaveReplayBufferResponse
- type SaveStreamSettingsRequest
- func (r SaveStreamSettingsRequest) ID() string
- func (r SaveStreamSettingsRequest) Receive() (SaveStreamSettingsResponse, error)
- func (r *SaveStreamSettingsRequest) Send(c Client) error
- func (r SaveStreamSettingsRequest) SendReceive(c Client) (SaveStreamSettingsResponse, error)
- func (r SaveStreamSettingsRequest) Type() string
- type SaveStreamSettingsResponse
- type Scene
- type SceneCollection
- type SceneCollectionChangedEvent
- type SceneCollectionListChangedEvent
- type SceneItem
- type SceneItemAddedEvent
- type SceneItemDeselectedEvent
- type SceneItemLockChangedEvent
- type SceneItemRemovedEvent
- type SceneItemSelectedEvent
- type SceneItemTransform
- type SceneItemTransformChangedEvent
- type SceneItemVisibilityChangedEvent
- type ScenesChangedEvent
- type ScrubMediaRequest
- type ScrubMediaResponse
- type SendCaptionsRequest
- type SendCaptionsResponse
- type SetAudioMonitorTypeRequest
- func (r SetAudioMonitorTypeRequest) ID() string
- func (r SetAudioMonitorTypeRequest) Receive() (SetAudioMonitorTypeResponse, error)
- func (r *SetAudioMonitorTypeRequest) Send(c Client) error
- func (r SetAudioMonitorTypeRequest) SendReceive(c Client) (SetAudioMonitorTypeResponse, error)
- func (r SetAudioMonitorTypeRequest) Type() string
- type SetAudioMonitorTypeResponse
- type SetAudioTracksRequest
- type SetAudioTracksResponse
- type SetBrowserSourcePropertiesRequest
- func (r SetBrowserSourcePropertiesRequest) ID() string
- func (r SetBrowserSourcePropertiesRequest) Receive() (SetBrowserSourcePropertiesResponse, error)
- func (r *SetBrowserSourcePropertiesRequest) Send(c Client) error
- func (r SetBrowserSourcePropertiesRequest) SendReceive(c Client) (SetBrowserSourcePropertiesResponse, error)
- func (r SetBrowserSourcePropertiesRequest) Type() string
- type SetBrowserSourcePropertiesResponse
- type SetCurrentProfileRequest
- func (r SetCurrentProfileRequest) ID() string
- func (r SetCurrentProfileRequest) Receive() (SetCurrentProfileResponse, error)
- func (r *SetCurrentProfileRequest) Send(c Client) error
- func (r SetCurrentProfileRequest) SendReceive(c Client) (SetCurrentProfileResponse, error)
- func (r SetCurrentProfileRequest) Type() string
- type SetCurrentProfileResponse
- type SetCurrentSceneCollectionRequest
- func (r SetCurrentSceneCollectionRequest) ID() string
- func (r SetCurrentSceneCollectionRequest) Receive() (SetCurrentSceneCollectionResponse, error)
- func (r *SetCurrentSceneCollectionRequest) Send(c Client) error
- func (r SetCurrentSceneCollectionRequest) SendReceive(c Client) (SetCurrentSceneCollectionResponse, error)
- func (r SetCurrentSceneCollectionRequest) Type() string
- type SetCurrentSceneCollectionResponse
- type SetCurrentSceneRequest
- func (r SetCurrentSceneRequest) ID() string
- func (r SetCurrentSceneRequest) Receive() (SetCurrentSceneResponse, error)
- func (r *SetCurrentSceneRequest) Send(c Client) error
- func (r SetCurrentSceneRequest) SendReceive(c Client) (SetCurrentSceneResponse, error)
- func (r SetCurrentSceneRequest) Type() string
- type SetCurrentSceneResponse
- type SetCurrentTransitionRequest
- func (r SetCurrentTransitionRequest) ID() string
- func (r SetCurrentTransitionRequest) Receive() (SetCurrentTransitionResponse, error)
- func (r *SetCurrentTransitionRequest) Send(c Client) error
- func (r SetCurrentTransitionRequest) SendReceive(c Client) (SetCurrentTransitionResponse, error)
- func (r SetCurrentTransitionRequest) Type() string
- type SetCurrentTransitionResponse
- type SetFilenameFormattingRequest
- func (r SetFilenameFormattingRequest) ID() string
- func (r SetFilenameFormattingRequest) Receive() (SetFilenameFormattingResponse, error)
- func (r *SetFilenameFormattingRequest) Send(c Client) error
- func (r SetFilenameFormattingRequest) SendReceive(c Client) (SetFilenameFormattingResponse, error)
- func (r SetFilenameFormattingRequest) Type() string
- type SetFilenameFormattingResponse
- type SetHeartbeatRequest
- type SetHeartbeatResponse
- type SetMediaTimeRequest
- type SetMediaTimeResponse
- type SetMuteRequest
- type SetMuteResponse
- type SetPreviewSceneRequest
- func (r SetPreviewSceneRequest) ID() string
- func (r SetPreviewSceneRequest) Receive() (SetPreviewSceneResponse, error)
- func (r *SetPreviewSceneRequest) Send(c Client) error
- func (r SetPreviewSceneRequest) SendReceive(c Client) (SetPreviewSceneResponse, error)
- func (r SetPreviewSceneRequest) Type() string
- type SetPreviewSceneResponse
- type SetRecordingFolderRequest
- func (r SetRecordingFolderRequest) ID() string
- func (r SetRecordingFolderRequest) Receive() (SetRecordingFolderResponse, error)
- func (r *SetRecordingFolderRequest) Send(c Client) error
- func (r SetRecordingFolderRequest) SendReceive(c Client) (SetRecordingFolderResponse, error)
- func (r SetRecordingFolderRequest) Type() string
- type SetRecordingFolderResponse
- type SetSceneItemCropRequest
- func (r SetSceneItemCropRequest) ID() string
- func (r SetSceneItemCropRequest) Receive() (SetSceneItemCropResponse, error)
- func (r *SetSceneItemCropRequest) Send(c Client) error
- func (r SetSceneItemCropRequest) SendReceive(c Client) (SetSceneItemCropResponse, error)
- func (r SetSceneItemCropRequest) Type() string
- type SetSceneItemCropResponse
- type SetSceneItemPositionRequest
- func (r SetSceneItemPositionRequest) ID() string
- func (r SetSceneItemPositionRequest) Receive() (SetSceneItemPositionResponse, error)
- func (r *SetSceneItemPositionRequest) Send(c Client) error
- func (r SetSceneItemPositionRequest) SendReceive(c Client) (SetSceneItemPositionResponse, error)
- func (r SetSceneItemPositionRequest) Type() string
- type SetSceneItemPositionResponse
- type SetSceneItemPropertiesRequest
- func (r SetSceneItemPropertiesRequest) ID() string
- func (r SetSceneItemPropertiesRequest) Receive() (SetSceneItemPropertiesResponse, error)
- func (r *SetSceneItemPropertiesRequest) Send(c Client) error
- func (r SetSceneItemPropertiesRequest) SendReceive(c Client) (SetSceneItemPropertiesResponse, error)
- func (r SetSceneItemPropertiesRequest) Type() string
- type SetSceneItemPropertiesResponse
- type SetSceneItemRenderRequest
- func (r SetSceneItemRenderRequest) ID() string
- func (r SetSceneItemRenderRequest) Receive() (SetSceneItemRenderResponse, error)
- func (r *SetSceneItemRenderRequest) Send(c Client) error
- func (r SetSceneItemRenderRequest) SendReceive(c Client) (SetSceneItemRenderResponse, error)
- func (r SetSceneItemRenderRequest) Type() string
- type SetSceneItemRenderResponse
- type SetSceneItemTransformRequest
- func (r SetSceneItemTransformRequest) ID() string
- func (r SetSceneItemTransformRequest) Receive() (SetSceneItemTransformResponse, error)
- func (r *SetSceneItemTransformRequest) Send(c Client) error
- func (r SetSceneItemTransformRequest) SendReceive(c Client) (SetSceneItemTransformResponse, error)
- func (r SetSceneItemTransformRequest) Type() string
- type SetSceneItemTransformResponse
- type SetSceneTransitionOverrideRequest
- func (r SetSceneTransitionOverrideRequest) ID() string
- func (r SetSceneTransitionOverrideRequest) Receive() (SetSceneTransitionOverrideResponse, error)
- func (r *SetSceneTransitionOverrideRequest) Send(c Client) error
- func (r SetSceneTransitionOverrideRequest) SendReceive(c Client) (SetSceneTransitionOverrideResponse, error)
- func (r SetSceneTransitionOverrideRequest) Type() string
- type SetSceneTransitionOverrideResponse
- type SetSourceFilterSettingsRequest
- func (r SetSourceFilterSettingsRequest) ID() string
- func (r SetSourceFilterSettingsRequest) Receive() (SetSourceFilterSettingsResponse, error)
- func (r *SetSourceFilterSettingsRequest) Send(c Client) error
- func (r SetSourceFilterSettingsRequest) SendReceive(c Client) (SetSourceFilterSettingsResponse, error)
- func (r SetSourceFilterSettingsRequest) Type() string
- type SetSourceFilterSettingsResponse
- type SetSourceFilterVisibilityRequest
- func (r SetSourceFilterVisibilityRequest) ID() string
- func (r SetSourceFilterVisibilityRequest) Receive() (SetSourceFilterVisibilityResponse, error)
- func (r *SetSourceFilterVisibilityRequest) Send(c Client) error
- func (r SetSourceFilterVisibilityRequest) SendReceive(c Client) (SetSourceFilterVisibilityResponse, error)
- func (r SetSourceFilterVisibilityRequest) Type() string
- type SetSourceFilterVisibilityResponse
- type SetSourceNameRequest
- type SetSourceNameResponse
- type SetSourceSettingsRequest
- func (r SetSourceSettingsRequest) ID() string
- func (r SetSourceSettingsRequest) Receive() (SetSourceSettingsResponse, error)
- func (r *SetSourceSettingsRequest) Send(c Client) error
- func (r SetSourceSettingsRequest) SendReceive(c Client) (SetSourceSettingsResponse, error)
- func (r SetSourceSettingsRequest) Type() string
- type SetSourceSettingsResponse
- type SetStreamSettingsRequest
- func (r SetStreamSettingsRequest) ID() string
- func (r SetStreamSettingsRequest) Receive() (SetStreamSettingsResponse, error)
- func (r *SetStreamSettingsRequest) Send(c Client) error
- func (r SetStreamSettingsRequest) SendReceive(c Client) (SetStreamSettingsResponse, error)
- func (r SetStreamSettingsRequest) Type() string
- type SetStreamSettingsResponse
- type SetSyncOffsetRequest
- type SetSyncOffsetResponse
- type SetTBarPositionRequest
- func (r SetTBarPositionRequest) ID() string
- func (r SetTBarPositionRequest) Receive() (SetTBarPositionResponse, error)
- func (r *SetTBarPositionRequest) Send(c Client) error
- func (r SetTBarPositionRequest) SendReceive(c Client) (SetTBarPositionResponse, error)
- func (r SetTBarPositionRequest) Type() string
- type SetTBarPositionResponse
- type SetTextFreetype2PropertiesRequest
- func (r SetTextFreetype2PropertiesRequest) ID() string
- func (r SetTextFreetype2PropertiesRequest) Receive() (SetTextFreetype2PropertiesResponse, error)
- func (r *SetTextFreetype2PropertiesRequest) Send(c Client) error
- func (r SetTextFreetype2PropertiesRequest) SendReceive(c Client) (SetTextFreetype2PropertiesResponse, error)
- func (r SetTextFreetype2PropertiesRequest) Type() string
- type SetTextFreetype2PropertiesResponse
- type SetTextGDIPlusPropertiesRequest
- func (r SetTextGDIPlusPropertiesRequest) ID() string
- func (r SetTextGDIPlusPropertiesRequest) Receive() (SetTextGDIPlusPropertiesResponse, error)
- func (r *SetTextGDIPlusPropertiesRequest) Send(c Client) error
- func (r SetTextGDIPlusPropertiesRequest) SendReceive(c Client) (SetTextGDIPlusPropertiesResponse, error)
- func (r SetTextGDIPlusPropertiesRequest) Type() string
- type SetTextGDIPlusPropertiesResponse
- type SetTransitionDurationRequest
- func (r SetTransitionDurationRequest) ID() string
- func (r SetTransitionDurationRequest) Receive() (SetTransitionDurationResponse, error)
- func (r *SetTransitionDurationRequest) Send(c Client) error
- func (r SetTransitionDurationRequest) SendReceive(c Client) (SetTransitionDurationResponse, error)
- func (r SetTransitionDurationRequest) Type() string
- type SetTransitionDurationResponse
- type SetTransitionSettingsRequest
- func (r SetTransitionSettingsRequest) ID() string
- func (r SetTransitionSettingsRequest) Receive() (SetTransitionSettingsResponse, error)
- func (r *SetTransitionSettingsRequest) Send(c Client) error
- func (r SetTransitionSettingsRequest) SendReceive(c Client) (SetTransitionSettingsResponse, error)
- func (r SetTransitionSettingsRequest) Type() string
- type SetTransitionSettingsResponse
- type SetVolumeRequest
- type SetVolumeResponse
- type SleepRequest
- type SleepResponse
- type SourceAudioActivatedEvent
- type SourceAudioDeactivatedEvent
- type SourceAudioMixersChangedEvent
- type SourceAudioSyncOffsetChangedEvent
- type SourceCreatedEvent
- type SourceDestroyedEvent
- type SourceFilterAddedEvent
- type SourceFilterRemovedEvent
- type SourceFilterVisibilityChangedEvent
- type SourceFiltersReorderedEvent
- type SourceMuteStateChangedEvent
- type SourceOrderChangedEvent
- type SourceRenamedEvent
- type SourceVolumeChangedEvent
- type StartOutputRequest
- type StartOutputResponse
- type StartRecordingRequest
- type StartRecordingResponse
- type StartReplayBufferRequest
- func (r StartReplayBufferRequest) ID() string
- func (r StartReplayBufferRequest) Receive() (StartReplayBufferResponse, error)
- func (r *StartReplayBufferRequest) Send(c Client) error
- func (r StartReplayBufferRequest) SendReceive(c Client) (StartReplayBufferResponse, error)
- func (r StartReplayBufferRequest) Type() string
- type StartReplayBufferResponse
- type StartStopRecordingRequest
- func (r StartStopRecordingRequest) ID() string
- func (r StartStopRecordingRequest) Receive() (StartStopRecordingResponse, error)
- func (r *StartStopRecordingRequest) Send(c Client) error
- func (r StartStopRecordingRequest) SendReceive(c Client) (StartStopRecordingResponse, error)
- func (r StartStopRecordingRequest) Type() string
- type StartStopRecordingResponse
- type StartStopReplayBufferRequest
- func (r StartStopReplayBufferRequest) ID() string
- func (r StartStopReplayBufferRequest) Receive() (StartStopReplayBufferResponse, error)
- func (r *StartStopReplayBufferRequest) Send(c Client) error
- func (r StartStopReplayBufferRequest) SendReceive(c Client) (StartStopReplayBufferResponse, error)
- func (r StartStopReplayBufferRequest) Type() string
- type StartStopReplayBufferResponse
- type StartStopStreamingRequest
- func (r StartStopStreamingRequest) ID() string
- func (r StartStopStreamingRequest) Receive() (StartStopStreamingResponse, error)
- func (r *StartStopStreamingRequest) Send(c Client) error
- func (r StartStopStreamingRequest) SendReceive(c Client) (StartStopStreamingResponse, error)
- func (r StartStopStreamingRequest) Type() string
- type StartStopStreamingResponse
- type StartStopVirtualCamRequest
- func (r StartStopVirtualCamRequest) ID() string
- func (r StartStopVirtualCamRequest) Receive() (StartStopVirtualCamResponse, error)
- func (r *StartStopVirtualCamRequest) Send(c Client) error
- func (r StartStopVirtualCamRequest) SendReceive(c Client) (StartStopVirtualCamResponse, error)
- func (r StartStopVirtualCamRequest) Type() string
- type StartStopVirtualCamResponse
- type StartStreamingRequest
- type StartStreamingResponse
- type StartVirtualCamRequest
- func (r StartVirtualCamRequest) ID() string
- func (r StartVirtualCamRequest) Receive() (StartVirtualCamResponse, error)
- func (r *StartVirtualCamRequest) Send(c Client) error
- func (r StartVirtualCamRequest) SendReceive(c Client) (StartVirtualCamResponse, error)
- func (r StartVirtualCamRequest) Type() string
- type StartVirtualCamResponse
- type StopMediaRequest
- type StopMediaResponse
- type StopOutputRequest
- type StopOutputResponse
- type StopRecordingRequest
- type StopRecordingResponse
- type StopReplayBufferRequest
- func (r StopReplayBufferRequest) ID() string
- func (r StopReplayBufferRequest) Receive() (StopReplayBufferResponse, error)
- func (r *StopReplayBufferRequest) Send(c Client) error
- func (r StopReplayBufferRequest) SendReceive(c Client) (StopReplayBufferResponse, error)
- func (r StopReplayBufferRequest) Type() string
- type StopReplayBufferResponse
- type StopStreamingRequest
- type StopStreamingResponse
- type StopVirtualCamRequest
- type StopVirtualCamResponse
- type StreamStartedEvent
- type StreamStartingEvent
- type StreamStatusEvent
- type StreamStoppedEvent
- type StreamStoppingEvent
- type StudioModeSwitchedEvent
- type SwitchScenesEvent
- type SwitchTransitionEvent
- type TakeSourceScreenshotRequest
- func (r TakeSourceScreenshotRequest) ID() string
- func (r TakeSourceScreenshotRequest) Receive() (TakeSourceScreenshotResponse, error)
- func (r *TakeSourceScreenshotRequest) Send(c Client) error
- func (r TakeSourceScreenshotRequest) SendReceive(c Client) (TakeSourceScreenshotResponse, error)
- func (r TakeSourceScreenshotRequest) Type() string
- type TakeSourceScreenshotResponse
- type ToggleMuteRequest
- type ToggleMuteResponse
- type ToggleStudioModeRequest
- func (r ToggleStudioModeRequest) ID() string
- func (r ToggleStudioModeRequest) Receive() (ToggleStudioModeResponse, error)
- func (r *ToggleStudioModeRequest) Send(c Client) error
- func (r ToggleStudioModeRequest) SendReceive(c Client) (ToggleStudioModeResponse, error)
- func (r ToggleStudioModeRequest) Type() string
- type ToggleStudioModeResponse
- type TransitionBeginEvent
- type TransitionDurationChangedEvent
- type TransitionEndEvent
- type TransitionListChangedEvent
- type TransitionToProgramRequest
- func (r TransitionToProgramRequest) ID() string
- func (r TransitionToProgramRequest) Receive() (TransitionToProgramResponse, error)
- func (r *TransitionToProgramRequest) Send(c Client) error
- func (r TransitionToProgramRequest) SendReceive(c Client) (TransitionToProgramResponse, error)
- func (r TransitionToProgramRequest) Type() string
- type TransitionToProgramResponse
- type TransitionVideoEndEvent
- type TriggerHotkeyByNameRequest
- func (r TriggerHotkeyByNameRequest) ID() string
- func (r TriggerHotkeyByNameRequest) Receive() (TriggerHotkeyByNameResponse, error)
- func (r *TriggerHotkeyByNameRequest) Send(c Client) error
- func (r TriggerHotkeyByNameRequest) SendReceive(c Client) (TriggerHotkeyByNameResponse, error)
- func (r TriggerHotkeyByNameRequest) Type() string
- type TriggerHotkeyByNameResponse
- type TriggerHotkeyBySequenceRequest
- func (r TriggerHotkeyBySequenceRequest) ID() string
- func (r TriggerHotkeyBySequenceRequest) Receive() (TriggerHotkeyBySequenceResponse, error)
- func (r *TriggerHotkeyBySequenceRequest) Send(c Client) error
- func (r TriggerHotkeyBySequenceRequest) SendReceive(c Client) (TriggerHotkeyBySequenceResponse, error)
- func (r TriggerHotkeyBySequenceRequest) Type() string
- type TriggerHotkeyBySequenceResponse
- type VirtualCamStartedEvent
- type VirtualCamStoppedEvent
Constants ¶
const ( // StatusOK indicates that the request was successful. StatusOK = "ok" // StatusError indicates that the request was unsuccessful. StatusError = "error" )
Variables ¶
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") )
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") )
var ErrUnknownEventType = errors.New("unknown event type")
ErrUnknownEventType is returned when a handler is added for an unknown event.
Functions ¶
func GetMessageID ¶
func GetMessageID() string
GetMessageID generates a string that the client has not yet used.
func SetReceiveTimeout ¶
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.
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 ¶
func (r AddFilterToSourceRequest) Receive() (AddFilterToSourceResponse, error)
Receive waits for the response.
func (*AddFilterToSourceRequest) Send ¶
func (r *AddFilterToSourceRequest) Send(c Client) error
Send sends the request.
func (AddFilterToSourceRequest) SendReceive ¶
func (r AddFilterToSourceRequest) SendReceive(c Client) (AddFilterToSourceResponse, error)
SendReceive sends the request then immediately waits for the response.
type AddFilterToSourceResponse ¶
type AddFilterToSourceResponse struct {
// contains filtered or unexported fields
}
AddFilterToSourceResponse : Response for AddFilterToSourceRequest.
Since obs-websocket version: 4.5.0.
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.
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 ¶
func (r AddSceneItemRequest) Receive() (AddSceneItemResponse, error)
Receive waits for the response.
func (*AddSceneItemRequest) Send ¶
func (r *AddSceneItemRequest) Send(c Client) error
Send sends the request.
func (AddSceneItemRequest) SendReceive ¶
func (r AddSceneItemRequest) SendReceive(c Client) (AddSceneItemResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r AuthenticateRequest) Receive() (AuthenticateResponse, error)
Receive waits for the response.
func (*AuthenticateRequest) Send ¶
func (r *AuthenticateRequest) Send(c Client) error
Send sends the request.
func (AuthenticateRequest) SendReceive ¶
func (r AuthenticateRequest) SendReceive(c Client) (AuthenticateResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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.
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 ¶
func (r BroadcastCustomMessageRequest) Receive() (BroadcastCustomMessageResponse, error)
Receive waits for the response.
func (*BroadcastCustomMessageRequest) Send ¶
func (r *BroadcastCustomMessageRequest) Send(c Client) error
Send sends the request.
func (BroadcastCustomMessageRequest) SendReceive ¶
func (r BroadcastCustomMessageRequest) SendReceive(c Client) (BroadcastCustomMessageResponse, error)
SendReceive sends the request then immediately waits for the response.
type BroadcastCustomMessageResponse ¶
type BroadcastCustomMessageResponse struct {
// contains filtered or unexported fields
}
BroadcastCustomMessageResponse : Response for BroadcastCustomMessageRequest.
Since obs-websocket version: 4.7.0.
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.
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 ¶
AddEventHandler adds a handler function for a given event type.
func (*Client) Disconnect ¶
Disconnect closes the WebSocket connection.
func (*Client) MustAddEventHandler ¶
MustAddEventHandler adds a handler function for a given event type. Panics if eventType is of an unknown type.
func (*Client) RemoveEventHandler ¶
RemoveEventHandler removes the handler for a given event type.
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 ¶
func (r CreateSceneRequest) Receive() (CreateSceneResponse, error)
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.
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.
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 ¶
func (r CreateSourceRequest) Receive() (CreateSourceResponse, error)
Receive waits for the response.
func (*CreateSourceRequest) Send ¶
func (r *CreateSourceRequest) Send(c Client) error
Send sends the request.
func (CreateSourceRequest) SendReceive ¶
func (r CreateSourceRequest) SendReceive(c Client) (CreateSourceResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r DeleteSceneItemRequest) Receive() (DeleteSceneItemResponse, error)
Receive waits for the response.
func (*DeleteSceneItemRequest) Send ¶
func (r *DeleteSceneItemRequest) Send(c Client) error
Send sends the request.
func (DeleteSceneItemRequest) SendReceive ¶
func (r DeleteSceneItemRequest) SendReceive(c Client) (DeleteSceneItemResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
type DisableStudioModeRequest ¶
type DisableStudioModeRequest struct {
// contains filtered or unexported fields
}
DisableStudioModeRequest : Disables Studio Mode.
Since obs-websocket version: 4.1.0.
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 ¶
func (r DisableStudioModeRequest) Receive() (DisableStudioModeResponse, error)
Receive waits for the response.
func (*DisableStudioModeRequest) Send ¶
func (r *DisableStudioModeRequest) Send(c Client) error
Send sends the request.
func (DisableStudioModeRequest) SendReceive ¶
func (r DisableStudioModeRequest) SendReceive(c Client) (DisableStudioModeResponse, error)
SendReceive sends the request then immediately waits for the response.
type DisableStudioModeResponse ¶
type DisableStudioModeResponse struct {
// contains filtered or unexported fields
}
DisableStudioModeResponse : Response for DisableStudioModeRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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 ¶
func (r DuplicateSceneItemRequest) Receive() (DuplicateSceneItemResponse, error)
Receive waits for the response.
func (*DuplicateSceneItemRequest) Send ¶
func (r *DuplicateSceneItemRequest) Send(c Client) error
Send sends the request.
func (DuplicateSceneItemRequest) SendReceive ¶
func (r DuplicateSceneItemRequest) SendReceive(c Client) (DuplicateSceneItemResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
type EnableStudioModeRequest ¶
type EnableStudioModeRequest struct {
// contains filtered or unexported fields
}
EnableStudioModeRequest : Enables Studio Mode.
Since obs-websocket version: 4.1.0.
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 ¶
func (r EnableStudioModeRequest) Receive() (EnableStudioModeResponse, error)
Receive waits for the response.
func (*EnableStudioModeRequest) Send ¶
func (r *EnableStudioModeRequest) Send(c Client) error
Send sends the request.
func (EnableStudioModeRequest) SendReceive ¶
func (r EnableStudioModeRequest) SendReceive(c Client) (EnableStudioModeResponse, error)
SendReceive sends the request then immediately waits for the response.
type EnableStudioModeResponse ¶
type EnableStudioModeResponse struct {
// contains filtered or unexported fields
}
EnableStudioModeResponse : Response for EnableStudioModeRequest.
Since obs-websocket version: 4.1.0.
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.
type Event ¶
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 ¶
func (r ExecuteBatchRequest) Receive() (ExecuteBatchResponse, error)
Receive waits for the response.
func (*ExecuteBatchRequest) Send ¶
func (r *ExecuteBatchRequest) Send(c Client) error
Send sends the request.
func (ExecuteBatchRequest) SendReceive ¶
func (r ExecuteBatchRequest) SendReceive(c Client) (ExecuteBatchResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetAudioActiveRequest) Receive() (GetAudioActiveResponse, error)
Receive waits for the response.
func (*GetAudioActiveRequest) Send ¶
func (r *GetAudioActiveRequest) Send(c Client) error
Send sends the request.
func (GetAudioActiveRequest) SendReceive ¶
func (r GetAudioActiveRequest) SendReceive(c Client) (GetAudioActiveResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetAudioMonitorTypeRequest) Receive() (GetAudioMonitorTypeResponse, error)
Receive waits for the response.
func (*GetAudioMonitorTypeRequest) Send ¶
func (r *GetAudioMonitorTypeRequest) Send(c Client) error
Send sends the request.
func (GetAudioMonitorTypeRequest) SendReceive ¶
func (r GetAudioMonitorTypeRequest) SendReceive(c Client) (GetAudioMonitorTypeResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetAudioTracksRequest) Receive() (GetAudioTracksResponse, error)
Receive waits for the response.
func (*GetAudioTracksRequest) Send ¶
func (r *GetAudioTracksRequest) Send(c Client) error
Send sends the request.
func (GetAudioTracksRequest) SendReceive ¶
func (r GetAudioTracksRequest) SendReceive(c Client) (GetAudioTracksResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r GetAuthRequiredRequest) Receive() (GetAuthRequiredResponse, error)
Receive waits for the response.
func (*GetAuthRequiredRequest) Send ¶
func (r *GetAuthRequiredRequest) Send(c Client) error
Send sends the request.
func (GetAuthRequiredRequest) SendReceive ¶
func (r GetAuthRequiredRequest) SendReceive(c Client) (GetAuthRequiredResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetBrowserSourcePropertiesRequest) Receive() (GetBrowserSourcePropertiesResponse, error)
Receive waits for the response.
func (*GetBrowserSourcePropertiesRequest) Send ¶
func (r *GetBrowserSourcePropertiesRequest) Send(c Client) error
Send sends the request.
func (GetBrowserSourcePropertiesRequest) SendReceive ¶
func (r GetBrowserSourcePropertiesRequest) SendReceive(c Client) (GetBrowserSourcePropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetCurrentProfileRequest) Receive() (GetCurrentProfileResponse, error)
Receive waits for the response.
func (*GetCurrentProfileRequest) Send ¶
func (r *GetCurrentProfileRequest) Send(c Client) error
Send sends the request.
func (GetCurrentProfileRequest) SendReceive ¶
func (r GetCurrentProfileRequest) SendReceive(c Client) (GetCurrentProfileResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetCurrentSceneCollectionRequest) Receive() (GetCurrentSceneCollectionResponse, error)
Receive waits for the response.
func (*GetCurrentSceneCollectionRequest) Send ¶
func (r *GetCurrentSceneCollectionRequest) Send(c Client) error
Send sends the request.
func (GetCurrentSceneCollectionRequest) SendReceive ¶
func (r GetCurrentSceneCollectionRequest) SendReceive(c Client) (GetCurrentSceneCollectionResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetCurrentSceneRequest) Receive() (GetCurrentSceneResponse, error)
Receive waits for the response.
func (*GetCurrentSceneRequest) Send ¶
func (r *GetCurrentSceneRequest) Send(c Client) error
Send sends the request.
func (GetCurrentSceneRequest) SendReceive ¶
func (r GetCurrentSceneRequest) SendReceive(c Client) (GetCurrentSceneResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetCurrentTransitionRequest) Receive() (GetCurrentTransitionResponse, error)
Receive waits for the response.
func (*GetCurrentTransitionRequest) Send ¶
func (r *GetCurrentTransitionRequest) Send(c Client) error
Send sends the request.
func (GetCurrentTransitionRequest) SendReceive ¶
func (r GetCurrentTransitionRequest) SendReceive(c Client) (GetCurrentTransitionResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
type GetFilenameFormattingRequest ¶
type GetFilenameFormattingRequest struct {
// contains filtered or unexported fields
}
GetFilenameFormattingRequest : Get the filename formatting string.
Since obs-websocket version: 4.3.0.
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 ¶
func (r GetFilenameFormattingRequest) Receive() (GetFilenameFormattingResponse, error)
Receive waits for the response.
func (*GetFilenameFormattingRequest) Send ¶
func (r *GetFilenameFormattingRequest) Send(c Client) error
Send sends the request.
func (GetFilenameFormattingRequest) SendReceive ¶
func (r GetFilenameFormattingRequest) SendReceive(c Client) (GetFilenameFormattingResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetMediaDurationRequest) Receive() (GetMediaDurationResponse, error)
Receive waits for the response.
func (*GetMediaDurationRequest) Send ¶
func (r *GetMediaDurationRequest) Send(c Client) error
Send sends the request.
func (GetMediaDurationRequest) SendReceive ¶
func (r GetMediaDurationRequest) SendReceive(c Client) (GetMediaDurationResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetMediaSourcesListRequest) Receive() (GetMediaSourcesListResponse, error)
Receive waits for the response.
func (*GetMediaSourcesListRequest) Send ¶
func (r *GetMediaSourcesListRequest) Send(c Client) error
Send sends the request.
func (GetMediaSourcesListRequest) SendReceive ¶
func (r GetMediaSourcesListRequest) SendReceive(c Client) (GetMediaSourcesListResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetMediaStateRequest) Receive() (GetMediaStateResponse, error)
Receive waits for the response.
func (*GetMediaStateRequest) Send ¶
func (r *GetMediaStateRequest) Send(c Client) error
Send sends the request.
func (GetMediaStateRequest) SendReceive ¶
func (r GetMediaStateRequest) SendReceive(c Client) (GetMediaStateResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r GetMediaTimeRequest) Receive() (GetMediaTimeResponse, error)
Receive waits for the response.
func (*GetMediaTimeRequest) Send ¶
func (r *GetMediaTimeRequest) Send(c Client) error
Send sends the request.
func (GetMediaTimeRequest) SendReceive ¶
func (r GetMediaTimeRequest) SendReceive(c Client) (GetMediaTimeResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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) Receive ¶
func (r GetMuteRequest) Receive() (GetMuteResponse, error)
Receive waits for the response.
func (GetMuteRequest) SendReceive ¶
func (r GetMuteRequest) SendReceive(c Client) (GetMuteResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r GetOutputInfoRequest) Receive() (GetOutputInfoResponse, error)
Receive waits for the response.
func (*GetOutputInfoRequest) Send ¶
func (r *GetOutputInfoRequest) Send(c Client) error
Send sends the request.
func (GetOutputInfoRequest) SendReceive ¶
func (r GetOutputInfoRequest) SendReceive(c Client) (GetOutputInfoResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r GetPreviewSceneRequest) Receive() (GetPreviewSceneResponse, error)
Receive waits for the response.
func (*GetPreviewSceneRequest) Send ¶
func (r *GetPreviewSceneRequest) Send(c Client) error
Send sends the request.
func (GetPreviewSceneRequest) SendReceive ¶
func (r GetPreviewSceneRequest) SendReceive(c Client) (GetPreviewSceneResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetRecordingFolderRequest) Receive() (GetRecordingFolderResponse, error)
Receive waits for the response.
func (*GetRecordingFolderRequest) Send ¶
func (r *GetRecordingFolderRequest) Send(c Client) error
Send sends the request.
func (GetRecordingFolderRequest) SendReceive ¶
func (r GetRecordingFolderRequest) SendReceive(c Client) (GetRecordingFolderResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
type GetRecordingStatusRequest ¶
type GetRecordingStatusRequest struct {
// contains filtered or unexported fields
}
GetRecordingStatusRequest : Get current recording status.
Since obs-websocket version: 4.9.0.
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 ¶
func (r GetRecordingStatusRequest) Receive() (GetRecordingStatusResponse, error)
Receive waits for the response.
func (*GetRecordingStatusRequest) Send ¶
func (r *GetRecordingStatusRequest) Send(c Client) error
Send sends the request.
func (GetRecordingStatusRequest) SendReceive ¶
func (r GetRecordingStatusRequest) SendReceive(c Client) (GetRecordingStatusResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetReplayBufferStatusRequest) Receive() (GetReplayBufferStatusResponse, error)
Receive waits for the response.
func (*GetReplayBufferStatusRequest) Send ¶
func (r *GetReplayBufferStatusRequest) Send(c Client) error
Send sends the request.
func (GetReplayBufferStatusRequest) SendReceive ¶
func (r GetReplayBufferStatusRequest) SendReceive(c Client) (GetReplayBufferStatusResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetSceneItemListRequest) Receive() (GetSceneItemListResponse, error)
Receive waits for the response.
func (*GetSceneItemListRequest) Send ¶
func (r *GetSceneItemListRequest) Send(c Client) error
Send sends the request.
func (GetSceneItemListRequest) SendReceive ¶
func (r GetSceneItemListRequest) SendReceive(c Client) (GetSceneItemListResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetSceneItemPropertiesRequest) Receive() (GetSceneItemPropertiesResponse, error)
Receive waits for the response.
func (*GetSceneItemPropertiesRequest) Send ¶
func (r *GetSceneItemPropertiesRequest) Send(c Client) error
Send sends the request.
func (GetSceneItemPropertiesRequest) SendReceive ¶
func (r GetSceneItemPropertiesRequest) SendReceive(c Client) (GetSceneItemPropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetSceneListRequest) Receive() (GetSceneListResponse, error)
Receive waits for the response.
func (*GetSceneListRequest) Send ¶
func (r *GetSceneListRequest) Send(c Client) error
Send sends the request.
func (GetSceneListRequest) SendReceive ¶
func (r GetSceneListRequest) SendReceive(c Client) (GetSceneListResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetSceneTransitionOverrideRequest) Receive() (GetSceneTransitionOverrideResponse, error)
Receive waits for the response.
func (*GetSceneTransitionOverrideRequest) Send ¶
func (r *GetSceneTransitionOverrideRequest) Send(c Client) error
Send sends the request.
func (GetSceneTransitionOverrideRequest) SendReceive ¶
func (r GetSceneTransitionOverrideRequest) SendReceive(c Client) (GetSceneTransitionOverrideResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetSourceActiveRequest) Receive() (GetSourceActiveResponse, error)
Receive waits for the response.
func (*GetSourceActiveRequest) Send ¶
func (r *GetSourceActiveRequest) Send(c Client) error
Send sends the request.
func (GetSourceActiveRequest) SendReceive ¶
func (r GetSourceActiveRequest) SendReceive(c Client) (GetSourceActiveResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetSourceDefaultSettingsRequest) Receive() (GetSourceDefaultSettingsResponse, error)
Receive waits for the response.
func (*GetSourceDefaultSettingsRequest) Send ¶
func (r *GetSourceDefaultSettingsRequest) Send(c Client) error
Send sends the request.
func (GetSourceDefaultSettingsRequest) SendReceive ¶
func (r GetSourceDefaultSettingsRequest) SendReceive(c Client) (GetSourceDefaultSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetSourceFilterInfoRequest) Receive() (GetSourceFilterInfoResponse, error)
Receive waits for the response.
func (*GetSourceFilterInfoRequest) Send ¶
func (r *GetSourceFilterInfoRequest) Send(c Client) error
Send sends the request.
func (GetSourceFilterInfoRequest) SendReceive ¶
func (r GetSourceFilterInfoRequest) SendReceive(c Client) (GetSourceFilterInfoResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetSourceFiltersRequest) Receive() (GetSourceFiltersResponse, error)
Receive waits for the response.
func (*GetSourceFiltersRequest) Send ¶
func (r *GetSourceFiltersRequest) Send(c Client) error
Send sends the request.
func (GetSourceFiltersRequest) SendReceive ¶
func (r GetSourceFiltersRequest) SendReceive(c Client) (GetSourceFiltersResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetSourceSettingsRequest) Receive() (GetSourceSettingsResponse, error)
Receive waits for the response.
func (*GetSourceSettingsRequest) Send ¶
func (r *GetSourceSettingsRequest) Send(c Client) error
Send sends the request.
func (GetSourceSettingsRequest) SendReceive ¶
func (r GetSourceSettingsRequest) SendReceive(c Client) (GetSourceSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetSourceTypesListRequest) Receive() (GetSourceTypesListResponse, error)
Receive waits for the response.
func (*GetSourceTypesListRequest) Send ¶
func (r *GetSourceTypesListRequest) Send(c Client) error
Send sends the request.
func (GetSourceTypesListRequest) SendReceive ¶
func (r GetSourceTypesListRequest) SendReceive(c Client) (GetSourceTypesListResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetSourcesListRequest) Receive() (GetSourcesListResponse, error)
Receive waits for the response.
func (*GetSourcesListRequest) Send ¶
func (r *GetSourcesListRequest) Send(c Client) error
Send sends the request.
func (GetSourcesListRequest) SendReceive ¶
func (r GetSourcesListRequest) SendReceive(c Client) (GetSourcesListResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetSpecialSourcesRequest) Receive() (GetSpecialSourcesResponse, error)
Receive waits for the response.
func (*GetSpecialSourcesRequest) Send ¶
func (r *GetSpecialSourcesRequest) Send(c Client) error
Send sends the request.
func (GetSpecialSourcesRequest) SendReceive ¶
func (r GetSpecialSourcesRequest) SendReceive(c Client) (GetSpecialSourcesResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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.
type GetStreamSettingsRequest ¶
type GetStreamSettingsRequest struct {
// contains filtered or unexported fields
}
GetStreamSettingsRequest : Get the current streaming server settings.
Since obs-websocket version: 4.1.0.
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 ¶
func (r GetStreamSettingsRequest) Receive() (GetStreamSettingsResponse, error)
Receive waits for the response.
func (*GetStreamSettingsRequest) Send ¶
func (r *GetStreamSettingsRequest) Send(c Client) error
Send sends the request.
func (GetStreamSettingsRequest) SendReceive ¶
func (r GetStreamSettingsRequest) SendReceive(c Client) (GetStreamSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
type GetStreamingStatusRequest ¶
type GetStreamingStatusRequest struct {
// contains filtered or unexported fields
}
GetStreamingStatusRequest : Get current streaming and recording status.
Since obs-websocket version: 0.3.
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 ¶
func (r GetStreamingStatusRequest) Receive() (GetStreamingStatusResponse, error)
Receive waits for the response.
func (*GetStreamingStatusRequest) Send ¶
func (r *GetStreamingStatusRequest) Send(c Client) error
Send sends the request.
func (GetStreamingStatusRequest) SendReceive ¶
func (r GetStreamingStatusRequest) SendReceive(c Client) (GetStreamingStatusResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetStudioModeStatusRequest) Receive() (GetStudioModeStatusResponse, error)
Receive waits for the response.
func (*GetStudioModeStatusRequest) Send ¶
func (r *GetStudioModeStatusRequest) Send(c Client) error
Send sends the request.
func (GetStudioModeStatusRequest) SendReceive ¶
func (r GetStudioModeStatusRequest) SendReceive(c Client) (GetStudioModeStatusResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetSyncOffsetRequest) Receive() (GetSyncOffsetResponse, error)
Receive waits for the response.
func (*GetSyncOffsetRequest) Send ¶
func (r *GetSyncOffsetRequest) Send(c Client) error
Send sends the request.
func (GetSyncOffsetRequest) SendReceive ¶
func (r GetSyncOffsetRequest) SendReceive(c Client) (GetSyncOffsetResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetTextFreetype2PropertiesRequest) Receive() (GetTextFreetype2PropertiesResponse, error)
Receive waits for the response.
func (*GetTextFreetype2PropertiesRequest) Send ¶
func (r *GetTextFreetype2PropertiesRequest) Send(c Client) error
Send sends the request.
func (GetTextFreetype2PropertiesRequest) SendReceive ¶
func (r GetTextFreetype2PropertiesRequest) SendReceive(c Client) (GetTextFreetype2PropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetTextGDIPlusPropertiesRequest) Receive() (GetTextGDIPlusPropertiesResponse, error)
Receive waits for the response.
func (*GetTextGDIPlusPropertiesRequest) Send ¶
func (r *GetTextGDIPlusPropertiesRequest) Send(c Client) error
Send sends the request.
func (GetTextGDIPlusPropertiesRequest) SendReceive ¶
func (r GetTextGDIPlusPropertiesRequest) SendReceive(c Client) (GetTextGDIPlusPropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetTransitionDurationRequest) Receive() (GetTransitionDurationResponse, error)
Receive waits for the response.
func (*GetTransitionDurationRequest) Send ¶
func (r *GetTransitionDurationRequest) Send(c Client) error
Send sends the request.
func (GetTransitionDurationRequest) SendReceive ¶
func (r GetTransitionDurationRequest) SendReceive(c Client) (GetTransitionDurationResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetTransitionListRequest) Receive() (GetTransitionListResponse, error)
Receive waits for the response.
func (*GetTransitionListRequest) Send ¶
func (r *GetTransitionListRequest) Send(c Client) error
Send sends the request.
func (GetTransitionListRequest) SendReceive ¶
func (r GetTransitionListRequest) SendReceive(c Client) (GetTransitionListResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetTransitionPositionRequest) Receive() (GetTransitionPositionResponse, error)
Receive waits for the response.
func (*GetTransitionPositionRequest) Send ¶
func (r *GetTransitionPositionRequest) Send(c Client) error
Send sends the request.
func (GetTransitionPositionRequest) SendReceive ¶
func (r GetTransitionPositionRequest) SendReceive(c Client) (GetTransitionPositionResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r GetTransitionSettingsRequest) Receive() (GetTransitionSettingsResponse, error)
Receive waits for the response.
func (*GetTransitionSettingsRequest) Send ¶
func (r *GetTransitionSettingsRequest) Send(c Client) error
Send sends the request.
func (GetTransitionSettingsRequest) SendReceive ¶
func (r GetTransitionSettingsRequest) SendReceive(c Client) (GetTransitionSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r GetVersionRequest) Receive() (GetVersionResponse, error)
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.
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.
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 ¶
func (r GetVideoInfoRequest) Receive() (GetVideoInfoResponse, error)
Receive waits for the response.
func (*GetVideoInfoRequest) Send ¶
func (r *GetVideoInfoRequest) Send(c Client) error
Send sends the request.
func (GetVideoInfoRequest) SendReceive ¶
func (r GetVideoInfoRequest) SendReceive(c Client) (GetVideoInfoResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
type GetVirtualCamStatusRequest ¶
type GetVirtualCamStatusRequest struct {
// contains filtered or unexported fields
}
GetVirtualCamStatusRequest : Get current virtual cam status.
Since obs-websocket version: 4.9.1.
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 ¶
func (r GetVirtualCamStatusRequest) Receive() (GetVirtualCamStatusResponse, error)
Receive waits for the response.
func (*GetVirtualCamStatusRequest) Send ¶
func (r *GetVirtualCamStatusRequest) Send(c Client) error
Send sends the request.
func (GetVirtualCamStatusRequest) SendReceive ¶
func (r GetVirtualCamStatusRequest) SendReceive(c Client) (GetVirtualCamStatusResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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.
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.
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 ¶
func (r ListOutputsRequest) Receive() (ListOutputsResponse, error)
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.
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.
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 ¶
func (r ListProfilesRequest) Receive() (ListProfilesResponse, error)
Receive waits for the response.
func (*ListProfilesRequest) Send ¶
func (r *ListProfilesRequest) Send(c Client) error
Send sends the request.
func (ListProfilesRequest) SendReceive ¶
func (r ListProfilesRequest) SendReceive(c Client) (ListProfilesResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
type ListSceneCollectionsRequest ¶
type ListSceneCollectionsRequest struct {
// contains filtered or unexported fields
}
ListSceneCollectionsRequest : List available scene collections.
Since obs-websocket version: 4.0.0.
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 ¶
func (r ListSceneCollectionsRequest) Receive() (ListSceneCollectionsResponse, error)
Receive waits for the response.
func (*ListSceneCollectionsRequest) Send ¶
func (r *ListSceneCollectionsRequest) Send(c Client) error
Send sends the request.
func (ListSceneCollectionsRequest) SendReceive ¶
func (r ListSceneCollectionsRequest) SendReceive(c Client) (ListSceneCollectionsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 ¶
func (r MoveSourceFilterRequest) Receive() (MoveSourceFilterResponse, error)
Receive waits for the response.
func (*MoveSourceFilterRequest) Send ¶
func (r *MoveSourceFilterRequest) Send(c Client) error
Send sends the request.
func (MoveSourceFilterRequest) SendReceive ¶
func (r MoveSourceFilterRequest) SendReceive(c Client) (MoveSourceFilterResponse, error)
SendReceive sends the request then immediately waits for the response.
type MoveSourceFilterResponse ¶
type MoveSourceFilterResponse struct {
// contains filtered or unexported fields
}
MoveSourceFilterResponse : Response for MoveSourceFilterRequest.
Since obs-websocket version: 4.5.0.
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.
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.
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.
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 ¶
func (r OpenProjectorRequest) Receive() (OpenProjectorResponse, error)
Receive waits for the response.
func (*OpenProjectorRequest) Send ¶
func (r *OpenProjectorRequest) Send(c Client) error
Send sends the request.
func (OpenProjectorRequest) SendReceive ¶
func (r OpenProjectorRequest) SendReceive(c Client) (OpenProjectorResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r PauseRecordingRequest) Receive() (PauseRecordingResponse, error)
Receive waits for the response.
func (*PauseRecordingRequest) Send ¶
func (r *PauseRecordingRequest) Send(c Client) error
Send sends the request.
func (PauseRecordingRequest) SendReceive ¶
func (r PauseRecordingRequest) SendReceive(c Client) (PauseRecordingResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r PlayPauseMediaRequest) Receive() (PlayPauseMediaResponse, error)
Receive waits for the response.
func (*PlayPauseMediaRequest) Send ¶
func (r *PlayPauseMediaRequest) Send(c Client) error
Send sends the request.
func (PlayPauseMediaRequest) SendReceive ¶
func (r PlayPauseMediaRequest) SendReceive(c Client) (PlayPauseMediaResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r PreviousMediaRequest) Receive() (PreviousMediaResponse, error)
Receive waits for the response.
func (*PreviousMediaRequest) Send ¶
func (r *PreviousMediaRequest) Send(c Client) error
Send sends the request.
func (PreviousMediaRequest) SendReceive ¶
func (r PreviousMediaRequest) SendReceive(c Client) (PreviousMediaResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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.
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.
type RecordingResumedEvent ¶
type RecordingResumedEvent struct {
// contains filtered or unexported fields
}
RecordingResumedEvent : Current recording resumed.
Since obs-websocket version: 4.7.0.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 ¶
func (r RefreshBrowserSourceRequest) Receive() (RefreshBrowserSourceResponse, error)
Receive waits for the response.
func (*RefreshBrowserSourceRequest) Send ¶
func (r *RefreshBrowserSourceRequest) Send(c Client) error
Send sends the request.
func (RefreshBrowserSourceRequest) SendReceive ¶
func (r RefreshBrowserSourceRequest) SendReceive(c Client) (RefreshBrowserSourceResponse, error)
SendReceive sends the request then immediately waits for the response.
type RefreshBrowserSourceResponse ¶
type RefreshBrowserSourceResponse struct {
// contains filtered or unexported fields
}
RefreshBrowserSourceResponse : Response for RefreshBrowserSourceRequest.
Since obs-websocket version: 4.9.0.
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.
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 ¶
func (r ReleaseTBarRequest) Receive() (ReleaseTBarResponse, error)
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.
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.
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.
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 ¶
func (r RemoveFilterFromSourceRequest) Receive() (RemoveFilterFromSourceResponse, error)
Receive waits for the response.
func (*RemoveFilterFromSourceRequest) Send ¶
func (r *RemoveFilterFromSourceRequest) Send(c Client) error
Send sends the request.
func (RemoveFilterFromSourceRequest) SendReceive ¶
func (r RemoveFilterFromSourceRequest) SendReceive(c Client) (RemoveFilterFromSourceResponse, error)
SendReceive sends the request then immediately waits for the response.
type RemoveFilterFromSourceResponse ¶
type RemoveFilterFromSourceResponse struct {
// contains filtered or unexported fields
}
RemoveFilterFromSourceResponse : Response for RemoveFilterFromSourceRequest.
Since obs-websocket version: 4.5.0.
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.
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.
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 ¶
func (r RemoveSceneTransitionOverrideRequest) Receive() (RemoveSceneTransitionOverrideResponse, error)
Receive waits for the response.
func (*RemoveSceneTransitionOverrideRequest) Send ¶
func (r *RemoveSceneTransitionOverrideRequest) Send(c Client) error
Send sends the request.
func (RemoveSceneTransitionOverrideRequest) SendReceive ¶
func (r RemoveSceneTransitionOverrideRequest) SendReceive(c Client) (RemoveSceneTransitionOverrideResponse, error)
SendReceive sends the request then immediately waits for the response.
type RemoveSceneTransitionOverrideResponse ¶
type RemoveSceneTransitionOverrideResponse struct {
// contains filtered or unexported fields
}
RemoveSceneTransitionOverrideResponse : Response for RemoveSceneTransitionOverrideRequest.
Since obs-websocket version: 4.8.0.
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.
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.
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 ¶
func (r ReorderSceneItemsRequest) Receive() (ReorderSceneItemsResponse, error)
Receive waits for the response.
func (*ReorderSceneItemsRequest) Send ¶
func (r *ReorderSceneItemsRequest) Send(c Client) error
Send sends the request.
func (ReorderSceneItemsRequest) SendReceive ¶
func (r ReorderSceneItemsRequest) SendReceive(c Client) (ReorderSceneItemsResponse, error)
SendReceive sends the request then immediately waits for the response.
type ReorderSceneItemsResponse ¶
type ReorderSceneItemsResponse struct {
// contains filtered or unexported fields
}
ReorderSceneItemsResponse : Response for ReorderSceneItemsRequest.
Since obs-websocket version: 4.5.0.
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.
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.
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 ¶
func (r ReorderSourceFilterRequest) Receive() (ReorderSourceFilterResponse, error)
Receive waits for the response.
func (*ReorderSourceFilterRequest) Send ¶
func (r *ReorderSourceFilterRequest) Send(c Client) error
Send sends the request.
func (ReorderSourceFilterRequest) SendReceive ¶
func (r ReorderSourceFilterRequest) SendReceive(c Client) (ReorderSourceFilterResponse, error)
SendReceive sends the request then immediately waits for the response.
type ReorderSourceFilterResponse ¶
type ReorderSourceFilterResponse struct {
// contains filtered or unexported fields
}
ReorderSourceFilterResponse : Response for ReorderSourceFilterRequest.
Since obs-websocket version: 4.5.0.
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.
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.
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.
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.
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.
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 ¶
func (r ResetSceneItemRequest) Receive() (ResetSceneItemResponse, error)
Receive waits for the response.
func (*ResetSceneItemRequest) Send ¶
func (r *ResetSceneItemRequest) Send(c Client) error
Send sends the request.
func (ResetSceneItemRequest) SendReceive ¶
func (r ResetSceneItemRequest) SendReceive(c Client) (ResetSceneItemResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r RestartMediaRequest) Receive() (RestartMediaResponse, error)
Receive waits for the response.
func (*RestartMediaRequest) Send ¶
func (r *RestartMediaRequest) Send(c Client) error
Send sends the request.
func (RestartMediaRequest) SendReceive ¶
func (r RestartMediaRequest) SendReceive(c Client) (RestartMediaResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r ResumeRecordingRequest) Receive() (ResumeRecordingResponse, error)
Receive waits for the response.
func (*ResumeRecordingRequest) Send ¶
func (r *ResumeRecordingRequest) Send(c Client) error
Send sends the request.
func (ResumeRecordingRequest) SendReceive ¶
func (r ResumeRecordingRequest) SendReceive(c Client) (ResumeRecordingResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r SaveReplayBufferRequest) Receive() (SaveReplayBufferResponse, error)
Receive waits for the response.
func (*SaveReplayBufferRequest) Send ¶
func (r *SaveReplayBufferRequest) Send(c Client) error
Send sends the request.
func (SaveReplayBufferRequest) SendReceive ¶
func (r SaveReplayBufferRequest) SendReceive(c Client) (SaveReplayBufferResponse, error)
SendReceive sends the request then immediately waits for the response.
type SaveReplayBufferResponse ¶
type SaveReplayBufferResponse struct {
// contains filtered or unexported fields
}
SaveReplayBufferResponse : Response for SaveReplayBufferRequest.
Since obs-websocket version: 4.2.0.
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.
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.
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 ¶
func (r SaveStreamSettingsRequest) Receive() (SaveStreamSettingsResponse, error)
Receive waits for the response.
func (*SaveStreamSettingsRequest) Send ¶
func (r *SaveStreamSettingsRequest) Send(c Client) error
Send sends the request.
func (SaveStreamSettingsRequest) SendReceive ¶
func (r SaveStreamSettingsRequest) SendReceive(c Client) (SaveStreamSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
type SaveStreamSettingsResponse ¶
type SaveStreamSettingsResponse struct {
// contains filtered or unexported fields
}
SaveStreamSettingsResponse : Response for SaveStreamSettingsRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 ¶
func (r ScrubMediaRequest) Receive() (ScrubMediaResponse, error)
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.
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.
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 ¶
func (r SendCaptionsRequest) Receive() (SendCaptionsResponse, error)
Receive waits for the response.
func (*SendCaptionsRequest) Send ¶
func (r *SendCaptionsRequest) Send(c Client) error
Send sends the request.
func (SendCaptionsRequest) SendReceive ¶
func (r SendCaptionsRequest) SendReceive(c Client) (SendCaptionsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r SetAudioMonitorTypeRequest) Receive() (SetAudioMonitorTypeResponse, error)
Receive waits for the response.
func (*SetAudioMonitorTypeRequest) Send ¶
func (r *SetAudioMonitorTypeRequest) Send(c Client) error
Send sends the request.
func (SetAudioMonitorTypeRequest) SendReceive ¶
func (r SetAudioMonitorTypeRequest) SendReceive(c Client) (SetAudioMonitorTypeResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetAudioMonitorTypeResponse ¶
type SetAudioMonitorTypeResponse struct {
// contains filtered or unexported fields
}
SetAudioMonitorTypeResponse : Response for SetAudioMonitorTypeRequest.
Since obs-websocket version: 4.8.0.
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.
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 ¶
func (r SetAudioTracksRequest) Receive() (SetAudioTracksResponse, error)
Receive waits for the response.
func (*SetAudioTracksRequest) Send ¶
func (r *SetAudioTracksRequest) Send(c Client) error
Send sends the request.
func (SetAudioTracksRequest) SendReceive ¶
func (r SetAudioTracksRequest) SendReceive(c Client) (SetAudioTracksResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r SetBrowserSourcePropertiesRequest) Receive() (SetBrowserSourcePropertiesResponse, error)
Receive waits for the response.
func (*SetBrowserSourcePropertiesRequest) Send ¶
func (r *SetBrowserSourcePropertiesRequest) Send(c Client) error
Send sends the request.
func (SetBrowserSourcePropertiesRequest) SendReceive ¶
func (r SetBrowserSourcePropertiesRequest) SendReceive(c Client) (SetBrowserSourcePropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetBrowserSourcePropertiesResponse ¶
type SetBrowserSourcePropertiesResponse struct {
// contains filtered or unexported fields
}
SetBrowserSourcePropertiesResponse : Response for SetBrowserSourcePropertiesRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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 ¶
func (r SetCurrentProfileRequest) Receive() (SetCurrentProfileResponse, error)
Receive waits for the response.
func (*SetCurrentProfileRequest) Send ¶
func (r *SetCurrentProfileRequest) Send(c Client) error
Send sends the request.
func (SetCurrentProfileRequest) SendReceive ¶
func (r SetCurrentProfileRequest) SendReceive(c Client) (SetCurrentProfileResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetCurrentProfileResponse ¶
type SetCurrentProfileResponse struct {
// contains filtered or unexported fields
}
SetCurrentProfileResponse : Response for SetCurrentProfileRequest.
Since obs-websocket version: 4.0.0.
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.
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.
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 ¶
func (r SetCurrentSceneCollectionRequest) Receive() (SetCurrentSceneCollectionResponse, error)
Receive waits for the response.
func (*SetCurrentSceneCollectionRequest) Send ¶
func (r *SetCurrentSceneCollectionRequest) Send(c Client) error
Send sends the request.
func (SetCurrentSceneCollectionRequest) SendReceive ¶
func (r SetCurrentSceneCollectionRequest) SendReceive(c Client) (SetCurrentSceneCollectionResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetCurrentSceneCollectionResponse ¶
type SetCurrentSceneCollectionResponse struct {
// contains filtered or unexported fields
}
SetCurrentSceneCollectionResponse : Response for SetCurrentSceneCollectionRequest.
Since obs-websocket version: 4.0.0.
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.
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 ¶
func (r SetCurrentSceneRequest) Receive() (SetCurrentSceneResponse, error)
Receive waits for the response.
func (*SetCurrentSceneRequest) Send ¶
func (r *SetCurrentSceneRequest) Send(c Client) error
Send sends the request.
func (SetCurrentSceneRequest) SendReceive ¶
func (r SetCurrentSceneRequest) SendReceive(c Client) (SetCurrentSceneResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r SetCurrentTransitionRequest) Receive() (SetCurrentTransitionResponse, error)
Receive waits for the response.
func (*SetCurrentTransitionRequest) Send ¶
func (r *SetCurrentTransitionRequest) Send(c Client) error
Send sends the request.
func (SetCurrentTransitionRequest) SendReceive ¶
func (r SetCurrentTransitionRequest) SendReceive(c Client) (SetCurrentTransitionResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetCurrentTransitionResponse ¶
type SetCurrentTransitionResponse struct {
// contains filtered or unexported fields
}
SetCurrentTransitionResponse : Response for SetCurrentTransitionRequest.
Since obs-websocket version: 0.3.
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.
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.
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 ¶
func (r SetFilenameFormattingRequest) Receive() (SetFilenameFormattingResponse, error)
Receive waits for the response.
func (*SetFilenameFormattingRequest) Send ¶
func (r *SetFilenameFormattingRequest) Send(c Client) error
Send sends the request.
func (SetFilenameFormattingRequest) SendReceive ¶
func (r SetFilenameFormattingRequest) SendReceive(c Client) (SetFilenameFormattingResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetFilenameFormattingResponse ¶
type SetFilenameFormattingResponse struct {
// contains filtered or unexported fields
}
SetFilenameFormattingResponse : Response for SetFilenameFormattingRequest.
Since obs-websocket version: 4.3.0.
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.
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 ¶
func (r SetHeartbeatRequest) Receive() (SetHeartbeatResponse, error)
Receive waits for the response.
func (*SetHeartbeatRequest) Send ¶
func (r *SetHeartbeatRequest) Send(c Client) error
Send sends the request.
func (SetHeartbeatRequest) SendReceive ¶
func (r SetHeartbeatRequest) SendReceive(c Client) (SetHeartbeatResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r SetMediaTimeRequest) Receive() (SetMediaTimeResponse, error)
Receive waits for the response.
func (*SetMediaTimeRequest) Send ¶
func (r *SetMediaTimeRequest) Send(c Client) error
Send sends the request.
func (SetMediaTimeRequest) SendReceive ¶
func (r SetMediaTimeRequest) SendReceive(c Client) (SetMediaTimeResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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) Receive ¶
func (r SetMuteRequest) Receive() (SetMuteResponse, error)
Receive waits for the response.
func (SetMuteRequest) SendReceive ¶
func (r SetMuteRequest) SendReceive(c Client) (SetMuteResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r SetPreviewSceneRequest) Receive() (SetPreviewSceneResponse, error)
Receive waits for the response.
func (*SetPreviewSceneRequest) Send ¶
func (r *SetPreviewSceneRequest) Send(c Client) error
Send sends the request.
func (SetPreviewSceneRequest) SendReceive ¶
func (r SetPreviewSceneRequest) SendReceive(c Client) (SetPreviewSceneResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r SetRecordingFolderRequest) Receive() (SetRecordingFolderResponse, error)
Receive waits for the response.
func (*SetRecordingFolderRequest) Send ¶
func (r *SetRecordingFolderRequest) Send(c Client) error
Send sends the request.
func (SetRecordingFolderRequest) SendReceive ¶
func (r SetRecordingFolderRequest) SendReceive(c Client) (SetRecordingFolderResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetRecordingFolderResponse ¶
type SetRecordingFolderResponse struct {
// contains filtered or unexported fields
}
SetRecordingFolderResponse : Response for SetRecordingFolderRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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 ¶
func (r SetSceneItemCropRequest) Receive() (SetSceneItemCropResponse, error)
Receive waits for the response.
func (*SetSceneItemCropRequest) Send ¶
func (r *SetSceneItemCropRequest) Send(c Client) error
Send sends the request.
func (SetSceneItemCropRequest) SendReceive ¶
func (r SetSceneItemCropRequest) SendReceive(c Client) (SetSceneItemCropResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSceneItemCropResponse ¶
type SetSceneItemCropResponse struct {
// contains filtered or unexported fields
}
SetSceneItemCropResponse : Response for SetSceneItemCropRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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 ¶
func (r SetSceneItemPositionRequest) Receive() (SetSceneItemPositionResponse, error)
Receive waits for the response.
func (*SetSceneItemPositionRequest) Send ¶
func (r *SetSceneItemPositionRequest) Send(c Client) error
Send sends the request.
func (SetSceneItemPositionRequest) SendReceive ¶
func (r SetSceneItemPositionRequest) SendReceive(c Client) (SetSceneItemPositionResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSceneItemPositionResponse ¶
type SetSceneItemPositionResponse struct {
// contains filtered or unexported fields
}
SetSceneItemPositionResponse : Response for SetSceneItemPositionRequest.
Since obs-websocket version: 4.0.0.
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.
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.
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 ¶
func (r SetSceneItemPropertiesRequest) Receive() (SetSceneItemPropertiesResponse, error)
Receive waits for the response.
func (*SetSceneItemPropertiesRequest) Send ¶
func (r *SetSceneItemPropertiesRequest) Send(c Client) error
Send sends the request.
func (SetSceneItemPropertiesRequest) SendReceive ¶
func (r SetSceneItemPropertiesRequest) SendReceive(c Client) (SetSceneItemPropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSceneItemPropertiesResponse ¶
type SetSceneItemPropertiesResponse struct {
// contains filtered or unexported fields
}
SetSceneItemPropertiesResponse : Response for SetSceneItemPropertiesRequest.
Since obs-websocket version: 4.3.0.
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.
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.
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 ¶
func (r SetSceneItemRenderRequest) Receive() (SetSceneItemRenderResponse, error)
Receive waits for the response.
func (*SetSceneItemRenderRequest) Send ¶
func (r *SetSceneItemRenderRequest) Send(c Client) error
Send sends the request.
func (SetSceneItemRenderRequest) SendReceive ¶
func (r SetSceneItemRenderRequest) SendReceive(c Client) (SetSceneItemRenderResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSceneItemRenderResponse ¶
type SetSceneItemRenderResponse struct {
// contains filtered or unexported fields
}
SetSceneItemRenderResponse : Response for SetSceneItemRenderRequest.
Since obs-websocket version: 0.3.
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.
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.
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 ¶
func (r SetSceneItemTransformRequest) Receive() (SetSceneItemTransformResponse, error)
Receive waits for the response.
func (*SetSceneItemTransformRequest) Send ¶
func (r *SetSceneItemTransformRequest) Send(c Client) error
Send sends the request.
func (SetSceneItemTransformRequest) SendReceive ¶
func (r SetSceneItemTransformRequest) SendReceive(c Client) (SetSceneItemTransformResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSceneItemTransformResponse ¶
type SetSceneItemTransformResponse struct {
// contains filtered or unexported fields
}
SetSceneItemTransformResponse : Response for SetSceneItemTransformRequest.
Since obs-websocket version: 4.0.0.
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.
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.
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 ¶
func (r SetSceneTransitionOverrideRequest) Receive() (SetSceneTransitionOverrideResponse, error)
Receive waits for the response.
func (*SetSceneTransitionOverrideRequest) Send ¶
func (r *SetSceneTransitionOverrideRequest) Send(c Client) error
Send sends the request.
func (SetSceneTransitionOverrideRequest) SendReceive ¶
func (r SetSceneTransitionOverrideRequest) SendReceive(c Client) (SetSceneTransitionOverrideResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSceneTransitionOverrideResponse ¶
type SetSceneTransitionOverrideResponse struct {
// contains filtered or unexported fields
}
SetSceneTransitionOverrideResponse : Response for SetSceneTransitionOverrideRequest.
Since obs-websocket version: 4.8.0.
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.
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.
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 ¶
func (r SetSourceFilterSettingsRequest) Receive() (SetSourceFilterSettingsResponse, error)
Receive waits for the response.
func (*SetSourceFilterSettingsRequest) Send ¶
func (r *SetSourceFilterSettingsRequest) Send(c Client) error
Send sends the request.
func (SetSourceFilterSettingsRequest) SendReceive ¶
func (r SetSourceFilterSettingsRequest) SendReceive(c Client) (SetSourceFilterSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSourceFilterSettingsResponse ¶
type SetSourceFilterSettingsResponse struct {
// contains filtered or unexported fields
}
SetSourceFilterSettingsResponse : Response for SetSourceFilterSettingsRequest.
Since obs-websocket version: 4.5.0.
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.
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.
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 ¶
func (r SetSourceFilterVisibilityRequest) Receive() (SetSourceFilterVisibilityResponse, error)
Receive waits for the response.
func (*SetSourceFilterVisibilityRequest) Send ¶
func (r *SetSourceFilterVisibilityRequest) Send(c Client) error
Send sends the request.
func (SetSourceFilterVisibilityRequest) SendReceive ¶
func (r SetSourceFilterVisibilityRequest) SendReceive(c Client) (SetSourceFilterVisibilityResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetSourceFilterVisibilityResponse ¶
type SetSourceFilterVisibilityResponse struct {
// contains filtered or unexported fields
}
SetSourceFilterVisibilityResponse : Response for SetSourceFilterVisibilityRequest.
Since obs-websocket version: 4.7.0.
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.
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 ¶
func (r SetSourceNameRequest) Receive() (SetSourceNameResponse, error)
Receive waits for the response.
func (*SetSourceNameRequest) Send ¶
func (r *SetSourceNameRequest) Send(c Client) error
Send sends the request.
func (SetSourceNameRequest) SendReceive ¶
func (r SetSourceNameRequest) SendReceive(c Client) (SetSourceNameResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r SetSourceSettingsRequest) Receive() (SetSourceSettingsResponse, error)
Receive waits for the response.
func (*SetSourceSettingsRequest) Send ¶
func (r *SetSourceSettingsRequest) Send(c Client) error
Send sends the request.
func (SetSourceSettingsRequest) SendReceive ¶
func (r SetSourceSettingsRequest) SendReceive(c Client) (SetSourceSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r SetStreamSettingsRequest) Receive() (SetStreamSettingsResponse, error)
Receive waits for the response.
func (*SetStreamSettingsRequest) Send ¶
func (r *SetStreamSettingsRequest) Send(c Client) error
Send sends the request.
func (SetStreamSettingsRequest) SendReceive ¶
func (r SetStreamSettingsRequest) SendReceive(c Client) (SetStreamSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetStreamSettingsResponse ¶
type SetStreamSettingsResponse struct {
// contains filtered or unexported fields
}
SetStreamSettingsResponse : Response for SetStreamSettingsRequest.
Since obs-websocket version: 4.1.0.
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.
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 ¶
func (r SetSyncOffsetRequest) Receive() (SetSyncOffsetResponse, error)
Receive waits for the response.
func (*SetSyncOffsetRequest) Send ¶
func (r *SetSyncOffsetRequest) Send(c Client) error
Send sends the request.
func (SetSyncOffsetRequest) SendReceive ¶
func (r SetSyncOffsetRequest) SendReceive(c Client) (SetSyncOffsetResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r SetTBarPositionRequest) Receive() (SetTBarPositionResponse, error)
Receive waits for the response.
func (*SetTBarPositionRequest) Send ¶
func (r *SetTBarPositionRequest) Send(c Client) error
Send sends the request.
func (SetTBarPositionRequest) SendReceive ¶
func (r SetTBarPositionRequest) SendReceive(c Client) (SetTBarPositionResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r SetTextFreetype2PropertiesRequest) Receive() (SetTextFreetype2PropertiesResponse, error)
Receive waits for the response.
func (*SetTextFreetype2PropertiesRequest) Send ¶
func (r *SetTextFreetype2PropertiesRequest) Send(c Client) error
Send sends the request.
func (SetTextFreetype2PropertiesRequest) SendReceive ¶
func (r SetTextFreetype2PropertiesRequest) SendReceive(c Client) (SetTextFreetype2PropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetTextFreetype2PropertiesResponse ¶
type SetTextFreetype2PropertiesResponse struct {
// contains filtered or unexported fields
}
SetTextFreetype2PropertiesResponse : Response for SetTextFreetype2PropertiesRequest.
Since obs-websocket version: 4.5.0.
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.
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.
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 ¶
func (r SetTextGDIPlusPropertiesRequest) Receive() (SetTextGDIPlusPropertiesResponse, error)
Receive waits for the response.
func (*SetTextGDIPlusPropertiesRequest) Send ¶
func (r *SetTextGDIPlusPropertiesRequest) Send(c Client) error
Send sends the request.
func (SetTextGDIPlusPropertiesRequest) SendReceive ¶
func (r SetTextGDIPlusPropertiesRequest) SendReceive(c Client) (SetTextGDIPlusPropertiesResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetTextGDIPlusPropertiesResponse ¶
type SetTextGDIPlusPropertiesResponse struct {
// contains filtered or unexported fields
}
SetTextGDIPlusPropertiesResponse : Response for SetTextGDIPlusPropertiesRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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 ¶
func (r SetTransitionDurationRequest) Receive() (SetTransitionDurationResponse, error)
Receive waits for the response.
func (*SetTransitionDurationRequest) Send ¶
func (r *SetTransitionDurationRequest) Send(c Client) error
Send sends the request.
func (SetTransitionDurationRequest) SendReceive ¶
func (r SetTransitionDurationRequest) SendReceive(c Client) (SetTransitionDurationResponse, error)
SendReceive sends the request then immediately waits for the response.
type SetTransitionDurationResponse ¶
type SetTransitionDurationResponse struct {
// contains filtered or unexported fields
}
SetTransitionDurationResponse : Response for SetTransitionDurationRequest.
Since obs-websocket version: 4.0.0.
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.
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.
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 ¶
func (r SetTransitionSettingsRequest) Receive() (SetTransitionSettingsResponse, error)
Receive waits for the response.
func (*SetTransitionSettingsRequest) Send ¶
func (r *SetTransitionSettingsRequest) Send(c Client) error
Send sends the request.
func (SetTransitionSettingsRequest) SendReceive ¶
func (r SetTransitionSettingsRequest) SendReceive(c Client) (SetTransitionSettingsResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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.
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) Receive ¶
func (r SleepRequest) Receive() (SleepResponse, error)
Receive waits for the response.
func (SleepRequest) SendReceive ¶
func (r SleepRequest) SendReceive(c Client) (SleepResponse, error)
SendReceive sends the request then immediately waits for the response.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 ¶
func (r StartOutputRequest) Receive() (StartOutputResponse, error)
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.
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.
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 ¶
func (r StartRecordingRequest) Receive() (StartRecordingResponse, error)
Receive waits for the response.
func (*StartRecordingRequest) Send ¶
func (r *StartRecordingRequest) Send(c Client) error
Send sends the request.
func (StartRecordingRequest) SendReceive ¶
func (r StartRecordingRequest) SendReceive(c Client) (StartRecordingResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r StartReplayBufferRequest) Receive() (StartReplayBufferResponse, error)
Receive waits for the response.
func (*StartReplayBufferRequest) Send ¶
func (r *StartReplayBufferRequest) Send(c Client) error
Send sends the request.
func (StartReplayBufferRequest) SendReceive ¶
func (r StartReplayBufferRequest) SendReceive(c Client) (StartReplayBufferResponse, error)
SendReceive sends the request then immediately waits for the response.
type StartReplayBufferResponse ¶
type StartReplayBufferResponse struct {
// contains filtered or unexported fields
}
StartReplayBufferResponse : Response for StartReplayBufferRequest.
Since obs-websocket version: 4.2.0.
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.
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.
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 ¶
func (r StartStopRecordingRequest) Receive() (StartStopRecordingResponse, error)
Receive waits for the response.
func (*StartStopRecordingRequest) Send ¶
func (r *StartStopRecordingRequest) Send(c Client) error
Send sends the request.
func (StartStopRecordingRequest) SendReceive ¶
func (r StartStopRecordingRequest) SendReceive(c Client) (StartStopRecordingResponse, error)
SendReceive sends the request then immediately waits for the response.
type StartStopRecordingResponse ¶
type StartStopRecordingResponse struct {
// contains filtered or unexported fields
}
StartStopRecordingResponse : Response for StartStopRecordingRequest.
Since obs-websocket version: 0.3.
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.
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.
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 ¶
func (r StartStopReplayBufferRequest) Receive() (StartStopReplayBufferResponse, error)
Receive waits for the response.
func (*StartStopReplayBufferRequest) Send ¶
func (r *StartStopReplayBufferRequest) Send(c Client) error
Send sends the request.
func (StartStopReplayBufferRequest) SendReceive ¶
func (r StartStopReplayBufferRequest) SendReceive(c Client) (StartStopReplayBufferResponse, error)
SendReceive sends the request then immediately waits for the response.
type StartStopReplayBufferResponse ¶
type StartStopReplayBufferResponse struct {
// contains filtered or unexported fields
}
StartStopReplayBufferResponse : Response for StartStopReplayBufferRequest.
Since obs-websocket version: 4.2.0.
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.
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.
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 ¶
func (r StartStopStreamingRequest) Receive() (StartStopStreamingResponse, error)
Receive waits for the response.
func (*StartStopStreamingRequest) Send ¶
func (r *StartStopStreamingRequest) Send(c Client) error
Send sends the request.
func (StartStopStreamingRequest) SendReceive ¶
func (r StartStopStreamingRequest) SendReceive(c Client) (StartStopStreamingResponse, error)
SendReceive sends the request then immediately waits for the response.
type StartStopStreamingResponse ¶
type StartStopStreamingResponse struct {
// contains filtered or unexported fields
}
StartStopStreamingResponse : Response for StartStopStreamingRequest.
Since obs-websocket version: 0.3.
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.
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.
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 ¶
func (r StartStopVirtualCamRequest) Receive() (StartStopVirtualCamResponse, error)
Receive waits for the response.
func (*StartStopVirtualCamRequest) Send ¶
func (r *StartStopVirtualCamRequest) Send(c Client) error
Send sends the request.
func (StartStopVirtualCamRequest) SendReceive ¶
func (r StartStopVirtualCamRequest) SendReceive(c Client) (StartStopVirtualCamResponse, error)
SendReceive sends the request then immediately waits for the response.
type StartStopVirtualCamResponse ¶
type StartStopVirtualCamResponse struct {
// contains filtered or unexported fields
}
StartStopVirtualCamResponse : Response for StartStopVirtualCamRequest.
Since obs-websocket version: 4.9.1.
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.
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 ¶
func (r StartStreamingRequest) Receive() (StartStreamingResponse, error)
Receive waits for the response.
func (*StartStreamingRequest) Send ¶
func (r *StartStreamingRequest) Send(c Client) error
Send sends the request.
func (StartStreamingRequest) SendReceive ¶
func (r StartStreamingRequest) SendReceive(c Client) (StartStreamingResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r StartVirtualCamRequest) Receive() (StartVirtualCamResponse, error)
Receive waits for the response.
func (*StartVirtualCamRequest) Send ¶
func (r *StartVirtualCamRequest) Send(c Client) error
Send sends the request.
func (StartVirtualCamRequest) SendReceive ¶
func (r StartVirtualCamRequest) SendReceive(c Client) (StartVirtualCamResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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 ¶
func (r StopOutputRequest) Receive() (StopOutputResponse, error)
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.
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.
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 ¶
func (r StopRecordingRequest) Receive() (StopRecordingResponse, error)
Receive waits for the response.
func (*StopRecordingRequest) Send ¶
func (r *StopRecordingRequest) Send(c Client) error
Send sends the request.
func (StopRecordingRequest) SendReceive ¶
func (r StopRecordingRequest) SendReceive(c Client) (StopRecordingResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r StopReplayBufferRequest) Receive() (StopReplayBufferResponse, error)
Receive waits for the response.
func (*StopReplayBufferRequest) Send ¶
func (r *StopReplayBufferRequest) Send(c Client) error
Send sends the request.
func (StopReplayBufferRequest) SendReceive ¶
func (r StopReplayBufferRequest) SendReceive(c Client) (StopReplayBufferResponse, error)
SendReceive sends the request then immediately waits for the response.
type StopReplayBufferResponse ¶
type StopReplayBufferResponse struct {
// contains filtered or unexported fields
}
StopReplayBufferResponse : Response for StopReplayBufferRequest.
Since obs-websocket version: 4.2.0.
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.
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 ¶
func (r StopStreamingRequest) Receive() (StopStreamingResponse, error)
Receive waits for the response.
func (*StopStreamingRequest) Send ¶
func (r *StopStreamingRequest) Send(c Client) error
Send sends the request.
func (StopStreamingRequest) SendReceive ¶
func (r StopStreamingRequest) SendReceive(c Client) (StopStreamingResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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 ¶
func (r StopVirtualCamRequest) Receive() (StopVirtualCamResponse, error)
Receive waits for the response.
func (*StopVirtualCamRequest) Send ¶
func (r *StopVirtualCamRequest) Send(c Client) error
Send sends the request.
func (StopVirtualCamRequest) SendReceive ¶
func (r StopVirtualCamRequest) SendReceive(c Client) (StopVirtualCamResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 ¶
func (r TakeSourceScreenshotRequest) Receive() (TakeSourceScreenshotResponse, error)
Receive waits for the response.
func (*TakeSourceScreenshotRequest) Send ¶
func (r *TakeSourceScreenshotRequest) Send(c Client) error
Send sends the request.
func (TakeSourceScreenshotRequest) SendReceive ¶
func (r TakeSourceScreenshotRequest) SendReceive(c Client) (TakeSourceScreenshotResponse, error)
SendReceive sends the request then immediately waits for the response.
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.
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.
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 ¶
func (r ToggleMuteRequest) Receive() (ToggleMuteResponse, error)
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.
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.
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.
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 ¶
func (r ToggleStudioModeRequest) Receive() (ToggleStudioModeResponse, error)
Receive waits for the response.
func (*ToggleStudioModeRequest) Send ¶
func (r *ToggleStudioModeRequest) Send(c Client) error
Send sends the request.
func (ToggleStudioModeRequest) SendReceive ¶
func (r ToggleStudioModeRequest) SendReceive(c Client) (ToggleStudioModeResponse, error)
SendReceive sends the request then immediately waits for the response.
type ToggleStudioModeResponse ¶
type ToggleStudioModeResponse struct {
// contains filtered or unexported fields
}
ToggleStudioModeResponse : Response for ToggleStudioModeRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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.
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.
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.
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.
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.
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.
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 ¶
func (r TransitionToProgramRequest) Receive() (TransitionToProgramResponse, error)
Receive waits for the response.
func (*TransitionToProgramRequest) Send ¶
func (r *TransitionToProgramRequest) Send(c Client) error
Send sends the request.
func (TransitionToProgramRequest) SendReceive ¶
func (r TransitionToProgramRequest) SendReceive(c Client) (TransitionToProgramResponse, error)
SendReceive sends the request then immediately waits for the response.
type TransitionToProgramResponse ¶
type TransitionToProgramResponse struct {
// contains filtered or unexported fields
}
TransitionToProgramResponse : Response for TransitionToProgramRequest.
Since obs-websocket version: 4.1.0.
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.
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.
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.
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.
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 ¶
func (r TriggerHotkeyByNameRequest) Receive() (TriggerHotkeyByNameResponse, error)
Receive waits for the response.
func (*TriggerHotkeyByNameRequest) Send ¶
func (r *TriggerHotkeyByNameRequest) Send(c Client) error
Send sends the request.
func (TriggerHotkeyByNameRequest) SendReceive ¶
func (r TriggerHotkeyByNameRequest) SendReceive(c Client) (TriggerHotkeyByNameResponse, error)
SendReceive sends the request then immediately waits for the response.
type TriggerHotkeyByNameResponse ¶
type TriggerHotkeyByNameResponse struct {
// contains filtered or unexported fields
}
TriggerHotkeyByNameResponse : Response for TriggerHotkeyByNameRequest.
Since obs-websocket version: 4.9.0.
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.
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.
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 ¶
func (r TriggerHotkeyBySequenceRequest) Receive() (TriggerHotkeyBySequenceResponse, error)
Receive waits for the response.
func (*TriggerHotkeyBySequenceRequest) Send ¶
func (r *TriggerHotkeyBySequenceRequest) Send(c Client) error
Send sends the request.
func (TriggerHotkeyBySequenceRequest) SendReceive ¶
func (r TriggerHotkeyBySequenceRequest) SendReceive(c Client) (TriggerHotkeyBySequenceResponse, error)
SendReceive sends the request then immediately waits for the response.
type TriggerHotkeyBySequenceResponse ¶
type TriggerHotkeyBySequenceResponse struct {
// contains filtered or unexported fields
}
TriggerHotkeyBySequenceResponse : Response for TriggerHotkeyBySequenceRequest.
Since obs-websocket version: 4.9.0.
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.
type VirtualCamStartedEvent ¶
type VirtualCamStartedEvent struct {
// contains filtered or unexported fields
}
VirtualCamStartedEvent : Virtual cam started successfully.
Since obs-websocket version: 4.9.1.
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.
type VirtualCamStoppedEvent ¶
type VirtualCamStoppedEvent struct {
// contains filtered or unexported fields
}
VirtualCamStoppedEvent : Virtual cam stopped successfully.
Since obs-websocket version: 4.9.1.
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.
Source Files
¶
- client.go
- client_connection.go
- client_events.go
- client_requests.go
- doc.go
- event_utils.go
- events.go
- events_general.go
- events_media.go
- events_other.go
- events_profiles.go
- events_recording.go
- events_replay_buffer.go
- events_scene_items.go
- events_scenes.go
- events_sources.go
- events_streaming.go
- events_studio_mode.go
- events_transitions.go
- events_virtual_cam.go
- logger.go
- requests.go
- requests_general.go
- requests_media_control.go
- requests_outputs.go
- requests_profiles.go
- requests_recording.go
- requests_replay_buffer.go
- requests_scene_collections.go
- requests_scene_items.go
- requests_scenes.go
- requests_sources.go
- requests_streaming.go
- requests_studio_mode.go
- requests_transitions.go
- requests_virtual_cam.go
- types.go