Documentation ¶
Index ¶
- type Client
- func (v *Client) ActivatorRefresh() error
- func (v *Client) BrowserBack(input interface{}) error
- func (v *Client) BrowserForward(input interface{}) error
- func (v *Client) BrowserKeyboardDisabled(input interface{}) error
- func (v *Client) BrowserKeyboardEnabled(input interface{}) error
- func (v *Client) BrowserMouseDisabled(input interface{}) error
- func (v *Client) BrowserMouseEnabled(input interface{}) error
- func (v *Client) BrowserNavigate(input interface{}, url string) error
- func (v *Client) BrowserReload(input interface{}) error
- func (v *Client) CallManagerShowHide() error
- func (v *Client) CrossZoom(scene interface{}, duration uint) error
- func (v *Client) Cube(scene interface{}, duration uint) error
- func (v *Client) CubeZoom(scene interface{}, duration uint) error
- func (v *Client) Cut(scene interface{}) error
- func (v *Client) CutDirect(scene interface{}, duration uint) error
- func (v *Client) DataSourceAutoNextOff(nametable string) error
- func (v *Client) DataSourceAutoNextOn(nametable string) error
- func (v *Client) DataSourceAutoNextOnOff(nametable string) error
- func (v *Client) DataSourceNextRow(nametable string) error
- func (v *Client) DataSourcePreviousRow(nametable string) error
- func (v *Client) DataSourceSelectRow(nametableindex string) error
- func (v *Client) Fade(scene interface{}, duration uint) error
- func (v *Client) FadeToBlack() error
- func (v *Client) Fly(scene interface{}, duration uint) error
- func (v *Client) FlyRotate(scene interface{}, duration uint) error
- func (v *Client) Fullscreen() error
- func (v *Client) FullscreenOff() error
- func (v *Client) FullscreenOn() error
- func (v *Client) KeyPress(key string) error
- func (v *Client) LastPreset() error
- func (v *Client) Merge(scene interface{}, duration uint) error
- func (v *Client) NDICommand(input interface{}, command string) error
- func (v *Client) NDISelectSourceByIndex(input interface{}, index uint) error
- func (v *Client) NDISelectSourceByName(input interface{}, name string) error
- func (v *Client) NDIStartRecording(input interface{}) error
- func (v *Client) NDIStopRecording(input interface{}) error
- func (v *Client) OpenPreset(filename string) error
- func (v *Client) QuickPlay(scene interface{}) error
- func (v *Client) Refresh() error
- func (v *Client) SavePreset(filename string) error
- func (v *Client) ScriptStart(scriptname string) error
- func (v *Client) ScriptStartDynamic(code string) error
- func (v *Client) ScriptStop(scriptname string) error
- func (v *Client) ScriptStopAll() error
- func (v *Client) ScriptStopDynamic() error
- func (v *Client) SendFunction(funcname string, params map[string]string) error
- func (v *Client) SendKeys(keys string) error
- func (v *Client) SetFader(fader uint8) error
- func (v *Client) SetOutput2(input interface{}, value string) error
- func (v *Client) SetOutput3(input interface{}, value string) error
- func (v *Client) SetOutput4(input interface{}, value string) error
- func (v *Client) SetOutputExternal2(input interface{}, value string) error
- func (v *Client) SetOutputFullscreen(input interface{}, value string) error
- func (v *Client) SetOutputFullscreen2(input interface{}, value string) error
- func (v *Client) SetTransitionDuration1(duration uint) error
- func (v *Client) SetTransitionDuration2(duration uint) error
- func (v *Client) SetTransitionDuration3(duration uint) error
- func (v *Client) SetTransitionDuration4(duration uint) error
- func (v *Client) SetTransitionEffect1(transition string) error
- func (v *Client) SetTransitionEffect2(transition string) error
- func (v *Client) SetTransitionEffect3(transition string) error
- func (v *Client) SetTransitionEffect4(transition string) error
- func (v *Client) Slide(scene interface{}, duration uint) error
- func (v *Client) SlideReverse(scene interface{}, duration uint) error
- func (v *Client) Snapshot(savedir string) error
- func (v *Client) SnapshotInput(input interface{}, savedir string) error
- func (v *Client) StartExternal() error
- func (v *Client) StartMultiCorder() error
- func (v *Client) StartRecording() error
- func (v *Client) StartStopExternal() error
- func (v *Client) StartStopMultiCorder() error
- func (v *Client) StartStopRecording() error
- func (v *Client) StartStopStreaming(stream uint) error
- func (v *Client) StartStreaming(stream uint) error
- func (v *Client) Stinger1(scene interface{}) error
- func (v *Client) Stinger2(scene interface{}) error
- func (v *Client) StopExternal() error
- func (v *Client) StopMultiCorder() error
- func (v *Client) StopRecording() error
- func (v *Client) StopStreaming(stream uint) error
- func (v *Client) StreamingSetKey(stream string) error
- func (v *Client) StreamingSetPassword(stream string) error
- func (v *Client) StreamingSetURL(stream string) error
- func (v *Client) StreamingSetUsername(stream string) error
- func (v *Client) Transition1() error
- func (v *Client) Transition2() error
- func (v *Client) Transition3() error
- func (v *Client) Transition4() error
- func (v *Client) VerticalSlide(scene interface{}, duration uint) error
- func (v *Client) VerticalSlideReverse(scene interface{}, duration uint) error
- func (v *Client) VerticalWipe(scene interface{}, duration uint) error
- func (v *Client) VerticalWipeReverse(scene interface{}, duration uint) error
- func (v *Client) Wipe(scene interface{}, duration uint) error
- func (v *Client) WipeReverse(scene interface{}, duration uint) error
- func (v *Client) WriteDurationToRecordingLog(tagtext string) error
- func (v *Client) Zoom(scene interface{}, duration uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Available informations in /api endpoint (XML). XMLName xml.Name `xml:"vmix"` Version string `xml:"version"` // vmix Version. e.g. "23.0.0.31" Edition string `xml:"edition"` // vmix Edition. e.g. "4K" Preset string `xml:"preset"` // vmix profile directory. e.g. "C:\my-profile.vmix" // Scenes slice Inputs struct { Input []models.Input `xml:"input"` } `xml:"inputs"` // Overlays slice Overlays struct { Overlay []models.Overlay `xml:"overlay"` } `xml:"overlays"` Preview uint `xml:"preview"` // Preview scene number Active uint `xml:"active"` // Active scene number IsFadeToBlack bool `xml:"fadeToBlack"` // FTB activated or not // vmix transition Transitions struct { Transition []models.Transition `xml:"transition"` } `xml:"transitions"` Recording bool `xml:"recording"` // Recording enabled External bool `xml:"external"` // External output enabled Streaming bool `xml:"streaming"` // RTMP Streaming enabled PlayList bool `xml:"playList"` // Playlist enabled MultiCorder bool `xml:"multiCorder"` // MultiCorder enabled FullScreen bool `xml:"fullscreen"` // FullScreen enabled // Audio? Audios struct { Master []models.Audio `xml:"master"` } `xml:"audio"` // contains filtered or unexported fields }
Client vMix HTTP API main object
func (*Client) ActivatorRefresh ¶
ActivatorRefresh Refresh all activator device lights and controls
func (*Client) BrowserForward ¶
BrowserForward ?
func (*Client) BrowserKeyboardDisabled ¶
BrowserKeyboardDisabled ?
func (*Client) BrowserKeyboardEnabled ¶
BrowserKeyboardEnabled ?
func (*Client) BrowserMouseDisabled ¶
BrowserMouseDisabled ?
func (*Client) BrowserMouseEnabled ¶
BrowserMouseEnabled ?
func (*Client) BrowserNavigate ¶
BrowserNavigate ?
func (*Client) BrowserReload ¶
BrowserReload ?
func (*Client) CallManagerShowHide ¶
CallManagerShowHide ?
func (*Client) CrossZoom ¶
CrossZoom transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) Cube ¶
Cube transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) CubeZoom ¶
CubeZoom transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) CutDirect ¶
CutDirect Cuts the input directly to Output without changing Preview. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) DataSourceAutoNextOff ¶
DataSourceAutoNextOff Name of the Data Source, Table Name(optional) 2args or comma separated??
func (*Client) DataSourceAutoNextOn ¶
DataSourceAutoNextOn Name of the Data Source, Table Name(optional) 2args or comma separated??
func (*Client) DataSourceAutoNextOnOff ¶
DataSourceAutoNextOnOff Name of the Data Source, Table Name(optional) 2args or comma separated??
func (*Client) DataSourceNextRow ¶
DataSourceNextRow Name of the Data Source, Table Name(optional) eg 'Excel/CSV,Shee1'
func (*Client) DataSourcePreviousRow ¶
DataSourcePreviousRow Name of the Data Source, Table Name(optional) eg 'Excel/CSV,Shee1'
func (*Client) DataSourceSelectRow ¶
DataSourceSelectRow Name of the Data Source, Table Name(optional) and Row Index starting from 0 eg 'Excel/CSV,Sheet1,5'
func (*Client) Fade ¶
Fade transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) Fly ¶
Fly transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) FlyRotate ¶
FlyRotate transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) Fullscreen ¶
Fullscreen Toggles Fullscreen On or Off
func (*Client) Merge ¶
Merge transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) NDICommand ¶
NDICommand Send specified command to NDI source
func (*Client) NDISelectSourceByIndex ¶
NDISelectSourceByIndex Index 0~100
func (*Client) NDISelectSourceByName ¶
NDISelectSourceByName ?
func (*Client) NDIStartRecording ¶
NDIStartRecording ?
func (*Client) NDIStopRecording ¶
NDIStopRecording ?
func (*Client) OpenPreset ¶
OpenPreset Load preset from the specified Filename
func (*Client) QuickPlay ¶
QuickPlay You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) SavePreset ¶
SavePreset Save preset to the specified FIlename
func (*Client) ScriptStartDynamic ¶
ScriptStartDynamic Start a dynamic script using code specified as the Value
func (*Client) SendFunction ¶
SendFunction sends request to /api?Function=funcname&Key=Value...
func (*Client) SetOutput2 ¶
SetOutput2 Change what is displayed on Output 2 output. Preview,MultiView,Input?
func (*Client) SetOutput3 ¶
SetOutput3 Change what is displayed on Output 3 output. Preview,MultiView,Input?
func (*Client) SetOutput4 ¶
SetOutput4 Change what is displayed on Output 4 output. Preview,MultiView,Input?
func (*Client) SetOutputExternal2 ¶
SetOutputExternal2 Change what is displayed on the External2 output. Preview,MultiView,Input?
func (*Client) SetOutputFullscreen ¶
SetOutputFullscreen Change what is displayed on the Fullscreen output. Preview,MultiView,Input?
func (*Client) SetOutputFullscreen2 ¶
SetOutputFullscreen2 Change what is displayed on the Fullscreen2 output. Preview,MultiView,Input?
func (*Client) SetTransitionDuration1 ¶
SetTransitionDuration1 Change Transition Duration for Button 1
func (*Client) SetTransitionDuration2 ¶
SetTransitionDuration2 Change Transition Duration for Button 2
func (*Client) SetTransitionDuration3 ¶
SetTransitionDuration3 Change Transition Duration for Button 3
func (*Client) SetTransitionDuration4 ¶
SetTransitionDuration4 Change Transition Duration for Button 4
func (*Client) SetTransitionEffect1 ¶
SetTransitionEffect1 Change Transition for Button 1
func (*Client) SetTransitionEffect2 ¶
SetTransitionEffect2 Change Transition for Button 1
func (*Client) SetTransitionEffect3 ¶
SetTransitionEffect3 Change Transition for Button 1
func (*Client) SetTransitionEffect4 ¶
SetTransitionEffect4 Change Transition for Button 1
func (*Client) Slide ¶
Slide transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) SlideReverse ¶
SlideReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) Snapshot ¶
Snapshot Create a snapshot iamge of the current Output. Optional Value specifies save Filename, otherwise a save file window will appear.
func (*Client) SnapshotInput ¶
SnapshotInput Create a snapshot iamge of the selected Output. Optional Value specifies save Filename, otherwise a save file window will appear.
func (*Client) StartStopMultiCorder ¶
StartStopMultiCorder ?
func (*Client) StartStopRecording ¶
StartStopRecording ?
func (*Client) StartStopStreaming ¶
StartStopStreaming Optional stream number starting from 0
func (*Client) StartStreaming ¶
StartStreaming Optional stream number starting from 0
func (*Client) Stinger1 ¶
Stinger1 You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) Stinger2 ¶
Stinger2 You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) StopStreaming ¶
StopStreaming Optional stream number starting from 0
func (*Client) StreamingSetKey ¶
StreamingSetKey Set Key on Custom RTMP Stream
func (*Client) StreamingSetPassword ¶
StreamingSetPassword Set Password on Custom RTMP Stream
func (*Client) StreamingSetURL ¶
StreamingSetURL Set URL on Custom RTMP Stream
func (*Client) StreamingSetUsername ¶
StreamingSetUsername Set Username on Custom RTMP Stream
func (*Client) Transition1 ¶
Transition1 Clicks one of the four Transition buttons in the main vmix window
func (*Client) Transition2 ¶
Transition2 Clicks one of the four Transition buttons in the main vmix window
func (*Client) Transition3 ¶
Transition3 Clicks one of the four Transition buttons in the main vmix window
func (*Client) Transition4 ¶
Transition4 Clicks one of the four Transition buttons in the main vmix window
func (*Client) VerticalSlide ¶
VerticalSlide transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) VerticalSlideReverse ¶
VerticalSlideReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) VerticalWipe ¶
VerticalWipe transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) VerticalWipeReverse ¶
VerticalWipeReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) Wipe ¶
Wipe transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) WipeReverse ¶
WipeReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Client) WriteDurationToRecordingLog ¶
WriteDurationToRecordingLog Write current recording duration to log file with optional tag text Value