Documentation
¶
Index ¶
- type Audio
- type Input
- type Overlay
- type Transition
- type Vmix
- func (v *Vmix) ActivatorRefresh() error
- func (v *Vmix) BrowserBack(input interface{}) error
- func (v *Vmix) BrowserForward(input interface{}) error
- func (v *Vmix) BrowserKeyboardDisabled(input interface{}) error
- func (v *Vmix) BrowserKeyboardEnabled(input interface{}) error
- func (v *Vmix) BrowserMouseDisabled(input interface{}) error
- func (v *Vmix) BrowserMouseEnabled(input interface{}) error
- func (v *Vmix) BrowserNavigate(input interface{}, url string) error
- func (v *Vmix) BrowserReload(input interface{}) error
- func (v *Vmix) CallManagerShowHide() error
- func (v *Vmix) CrossZoom(scene interface{}, duration uint) error
- func (v *Vmix) Cube(scene interface{}, duration uint) error
- func (v *Vmix) CubeZoom(scene interface{}, duration uint) error
- func (v *Vmix) Cut(scene interface{}) error
- func (v *Vmix) CutDirect(scene interface{}, duration uint) error
- func (v *Vmix) DataSourceAutoNextOff(nametable string) error
- func (v *Vmix) DataSourceAutoNextOn(nametable string) error
- func (v *Vmix) DataSourceAutoNextOnOff(nametable string) error
- func (v *Vmix) DataSourceNextRow(nametable string) error
- func (v *Vmix) DataSourcePreviousRow(nametable string) error
- func (v *Vmix) DataSourceSelectRow(nametableindex string) error
- func (v *Vmix) Fade(scene interface{}, duration uint) error
- func (v *Vmix) FadeToBlack() error
- func (v *Vmix) Fly(scene interface{}, duration uint) error
- func (v *Vmix) FlyRotate(scene interface{}, duration uint) error
- func (v *Vmix) Fullscreen() error
- func (v *Vmix) FullscreenOff() error
- func (v *Vmix) FullscreenOn() error
- func (v *Vmix) KeyPress(key string) error
- func (v *Vmix) LastPreset() error
- func (v *Vmix) Merge(scene interface{}, duration uint) error
- func (v *Vmix) NDICommand(input interface{}, command string) error
- func (v *Vmix) NDISelectSourceByIndex(input interface{}, index uint) error
- func (v *Vmix) NDISelectSourceByName(input interface{}, name string) error
- func (v *Vmix) NDIStartRecording(input interface{}) error
- func (v *Vmix) NDIStopRecording(input interface{}) error
- func (v *Vmix) OpenPreset(filename string) error
- func (v *Vmix) QuickPlay(scene interface{}) error
- func (v *Vmix) Refresh() (*Vmix, error)
- func (v *Vmix) SavePreset(filename string) error
- func (v *Vmix) ScriptStart(scriptname string) error
- func (v *Vmix) ScriptStartDynamic(code string) error
- func (v *Vmix) ScriptStop(scriptname string) error
- func (v *Vmix) ScriptStopAll() error
- func (v *Vmix) ScriptStopDynamic() error
- func (v *Vmix) SendFunction(funcname string, params map[string]string) error
- func (v *Vmix) SendKeys(keys string) error
- func (v *Vmix) SetFader(fader uint8) error
- func (v *Vmix) SetOutput2(input interface{}, value string) error
- func (v *Vmix) SetOutput3(input interface{}, value string) error
- func (v *Vmix) SetOutput4(input interface{}, value string) error
- func (v *Vmix) SetOutputExternal2(input interface{}, value string) error
- func (v *Vmix) SetOutputFullscreen(input interface{}, value string) error
- func (v *Vmix) SetOutputFullscreen2(input interface{}, value string) error
- func (v *Vmix) SetTransitionDuration1(duration uint) error
- func (v *Vmix) SetTransitionDuration2(duration uint) error
- func (v *Vmix) SetTransitionDuration3(duration uint) error
- func (v *Vmix) SetTransitionDuration4(duration uint) error
- func (v *Vmix) SetTransitionEffect1(transition string) error
- func (v *Vmix) SetTransitionEffect2(transition string) error
- func (v *Vmix) SetTransitionEffect3(transition string) error
- func (v *Vmix) SetTransitionEffect4(transition string) error
- func (v *Vmix) Slide(scene interface{}, duration uint) error
- func (v *Vmix) SlideReverse(scene interface{}, duration uint) error
- func (v *Vmix) Snapshot(savedir string) error
- func (v *Vmix) SnapshotInput(input interface{}, savedir string) error
- func (v *Vmix) StartExternal() error
- func (v *Vmix) StartMultiCorder() error
- func (v *Vmix) StartRecording() error
- func (v *Vmix) StartStopExternal() error
- func (v *Vmix) StartStopMultiCorder() error
- func (v *Vmix) StartStopRecording() error
- func (v *Vmix) StartStopStreaming(stream uint) error
- func (v *Vmix) StartStreaming(stream uint) error
- func (v *Vmix) Stinger1(scene interface{}) error
- func (v *Vmix) Stinger2(scene interface{}) error
- func (v *Vmix) StopExternal() error
- func (v *Vmix) StopMultiCorder() error
- func (v *Vmix) StopRecording() error
- func (v *Vmix) StopStreaming(stream uint) error
- func (v *Vmix) StreamingSetKey(stream string) error
- func (v *Vmix) StreamingSetPassword(stream string) error
- func (v *Vmix) StreamingSetURL(stream string) error
- func (v *Vmix) StreamingSetUsername(stream string) error
- func (v *Vmix) Transition1() error
- func (v *Vmix) Transition2() error
- func (v *Vmix) Transition3() error
- func (v *Vmix) Transition4() error
- func (v *Vmix) VerticalSlide(scene interface{}, duration uint) error
- func (v *Vmix) VerticalSlideReverse(scene interface{}, duration uint) error
- func (v *Vmix) VerticalWipe(scene interface{}, duration uint) error
- func (v *Vmix) VerticalWipeReverse(scene interface{}, duration uint) error
- func (v *Vmix) Wipe(scene interface{}, duration uint) error
- func (v *Vmix) WipeReverse(scene interface{}, duration uint) error
- func (v *Vmix) WriteDurationToRecordingLog(tagtext string) error
- func (v *Vmix) Zoom(scene interface{}, duration uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
// Common properties
Name string `xml:",chardata"`
Key string `xml:"key,attr"`
Number uint `xml:"number,attr"`
SceneType string `xml:"type,attr"`
Title string `xml:"title,attr"` // same as Name??
ShortTitle string `xml:"shorttite,attr"`
State string `xml:"state,attr"` // Paused | Running
AttrPosition int `xml:"position,attr"`
Duration int `xml:"duration,attr"`
Loop bool `xml:"loop,attr"`
// Sound related
Muted bool `xml:"muted,attr"`
Volume float64 `xml:"volume,attr"`
Balance float64 `xml:"balance,attr"`
Solo bool `xml:"solo,attr"`
AudioBusses string `xml:"audiobusses,attr"`
MeterF1 float64 `xml:"meterF1,attr"`
MeterF2 float64 `xml:"meterF2,attr"`
GainDb string `xml:"gainDb,attr"`
Position struct {
Text string `xml:",chardata"`
PanX string `xml:"panX,attr"`
PanY string `xml:"panY,attr"`
ZoomX string `xml:"zoomX,attr"`
ZoomY string `xml:"zoomY,attr"`
} `xml:"position"`
// vMix Instant Replay
Replay struct {
Text string `xml:",chardata"`
Live bool `xml:"live,attr"`
Recording bool `xml:"recording,attr"`
Events int `xml:"events,attr"`
CameraA string `xml:"cameraA,attr"`
CameraB string `xml:"cameraB,attr"`
Speed float64 `xml:"speed,attr"`
Timecode string `xml:"timecode"` // time.Time - e.g. 2020-08-14T16:23:13.832
} `xml:"replay"`
// Multi view
Overlay []struct {
Text string `xml:",chardata"`
Index int `xml:"index,attr"`
Key string `xml:"key,attr"`
Position struct {
Text string `xml:",chardata"`
PanX float64 `xml:"panX,attr"`
PanY float64 `xml:"panY,attr"`
ZoomX float64 `xml:"zoomX,attr"`
ZoomY float64 `xml:"zoomY,attr"`
} `xml:"position"`
} `xml:"overlay"`
}
type Transition ¶
type Vmix ¶
type Vmix struct {
Addr *url.URL `xml:"-"` // vmix API destination.
// 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 []Input `xml:"input"`
} `xml:"inputs"`
// Overlays slice
Overlays struct {
Overlay []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 []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 []Audio `xml:"master"`
} `xml:"audio"`
}
Vmix main object
func (*Vmix) ActivatorRefresh ¶
ActivatorRefresh Refresh all activator device lights and controls
func (*Vmix) BrowserForward ¶
BrowserForward ?
func (*Vmix) BrowserKeyboardDisabled ¶
BrowserKeyboardDisabled ?
func (*Vmix) BrowserKeyboardEnabled ¶
BrowserKeyboardEnabled ?
func (*Vmix) BrowserMouseDisabled ¶
BrowserMouseDisabled ?
func (*Vmix) BrowserMouseEnabled ¶
BrowserMouseEnabled ?
func (*Vmix) BrowserNavigate ¶
BrowserNavigate ?
func (*Vmix) CrossZoom ¶
CrossZoom transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) Cube ¶
Cube transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) CubeZoom ¶
CubeZoom transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) 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 (*Vmix) DataSourceAutoNextOff ¶
DataSourceAutoNextOff Name of the Data Source, Table Name(optional) 2args or comma separated??
func (*Vmix) DataSourceAutoNextOn ¶
DataSourceAutoNextOn Name of the Data Source, Table Name(optional) 2args or comma separated??
func (*Vmix) DataSourceAutoNextOnOff ¶
DataSourceAutoNextOnOff Name of the Data Source, Table Name(optional) 2args or comma separated??
func (*Vmix) DataSourceNextRow ¶
DataSourceNextRow Name of the Data Source, Table Name(optional) eg 'Excel/CSV,Shee1'
func (*Vmix) DataSourcePreviousRow ¶
DataSourcePreviousRow Name of the Data Source, Table Name(optional) eg 'Excel/CSV,Shee1'
func (*Vmix) DataSourceSelectRow ¶
DataSourceSelectRow Name of the Data Source, Table Name(optional) and Row Index starting from 0 eg 'Excel/CSV,Sheet1,5'
func (*Vmix) Fade ¶
Fade transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) Fly ¶
Fly transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) FlyRotate ¶
FlyRotate transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) Merge ¶
Merge transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) NDICommand ¶
NDICommand Send specified command to NDI source
func (*Vmix) NDISelectSourceByIndex ¶
NDISelectSourceByIndex Index 0~100
func (*Vmix) NDISelectSourceByName ¶
NDISelectSourceByName ?
func (*Vmix) NDIStartRecording ¶
NDIStartRecording ?
func (*Vmix) NDIStopRecording ¶
NDIStopRecording ?
func (*Vmix) OpenPreset ¶
OpenPreset Load preset from the specified Filename
func (*Vmix) QuickPlay ¶
QuickPlay You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) SavePreset ¶
SavePreset Save preset to the specified FIlename
func (*Vmix) ScriptStartDynamic ¶
ScriptStartDynamic Start a dynamic script using code specified as the Value
func (*Vmix) SendFunction ¶
SendFunction sends request to /api?Function=funcname&Key=Value...
func (*Vmix) SetOutput2 ¶
SetOutput2 Change what is displayed on Output 2 output. Preview,MultiView,Input?
func (*Vmix) SetOutput3 ¶
SetOutput3 Change what is displayed on Output 3 output. Preview,MultiView,Input?
func (*Vmix) SetOutput4 ¶
SetOutput4 Change what is displayed on Output 4 output. Preview,MultiView,Input?
func (*Vmix) SetOutputExternal2 ¶
SetOutputExternal2 Change what is displayed on the External2 output. Preview,MultiView,Input?
func (*Vmix) SetOutputFullscreen ¶
SetOutputFullscreen Change what is displayed on the Fullscreen output. Preview,MultiView,Input?
func (*Vmix) SetOutputFullscreen2 ¶
SetOutputFullscreen2 Change what is displayed on the Fullscreen2 output. Preview,MultiView,Input?
func (*Vmix) SetTransitionDuration1 ¶
SetTransitionDuration1 Change Transition Duration for Button 1
func (*Vmix) SetTransitionDuration2 ¶
SetTransitionDuration2 Change Transition Duration for Button 2
func (*Vmix) SetTransitionDuration3 ¶
SetTransitionDuration3 Change Transition Duration for Button 3
func (*Vmix) SetTransitionDuration4 ¶
SetTransitionDuration4 Change Transition Duration for Button 4
func (*Vmix) SetTransitionEffect1 ¶
SetTransitionEffect1 Change Transition for Button 1
func (*Vmix) SetTransitionEffect2 ¶
SetTransitionEffect2 Change Transition for Button 1
func (*Vmix) SetTransitionEffect3 ¶
SetTransitionEffect3 Change Transition for Button 1
func (*Vmix) SetTransitionEffect4 ¶
SetTransitionEffect4 Change Transition for Button 1
func (*Vmix) Slide ¶
Slide transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) SlideReverse ¶
SlideReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) Snapshot ¶
Snapshot Create a snapshot iamge of the current Output. Optional Value specifies save Filename, otherwise a save file window will appear.
func (*Vmix) SnapshotInput ¶
SnapshotInput Create a snapshot iamge of the selected Output. Optional Value specifies save Filename, otherwise a save file window will appear.
func (*Vmix) StartStopMultiCorder ¶
StartStopMultiCorder ?
func (*Vmix) StartStopStreaming ¶
StartStopStreaming Optional stream number starting from 0
func (*Vmix) StartStreaming ¶
StartStreaming Optional stream number starting from 0
func (*Vmix) Stinger1 ¶
Stinger1 You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) Stinger2 ¶
Stinger2 You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) StopStreaming ¶
StopStreaming Optional stream number starting from 0
func (*Vmix) StreamingSetKey ¶
StreamingSetKey Set Key on Custom RTMP Stream
func (*Vmix) StreamingSetPassword ¶
StreamingSetPassword Set Password on Custom RTMP Stream
func (*Vmix) StreamingSetURL ¶
StreamingSetURL Set URL on Custom RTMP Stream
func (*Vmix) StreamingSetUsername ¶
StreamingSetUsername Set Username on Custom RTMP Stream
func (*Vmix) Transition1 ¶
Transition1 Clicks one of the four Transition buttons in the main vmix window
func (*Vmix) Transition2 ¶
Transition2 Clicks one of the four Transition buttons in the main vmix window
func (*Vmix) Transition3 ¶
Transition3 Clicks one of the four Transition buttons in the main vmix window
func (*Vmix) Transition4 ¶
Transition4 Clicks one of the four Transition buttons in the main vmix window
func (*Vmix) VerticalSlide ¶
VerticalSlide transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) VerticalSlideReverse ¶
VerticalSlideReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) VerticalWipe ¶
VerticalWipe transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) VerticalWipeReverse ¶
VerticalWipeReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) Wipe ¶
Wipe transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) WipeReverse ¶
WipeReverse transition. You can use string scene-key, int scene-number or vmixgo.Scene struct.
func (*Vmix) WriteDurationToRecordingLog ¶
WriteDurationToRecordingLog Write current recording duration to log file with optional tag text Value