Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientV1 ¶
type ClientV1 interface { GetLive() bool GetProduct() (info *ProductInformation, err error) ShortcutHTTP(name string, kv map[string]string) error ShortcutWS(name string, kv map[string]string) error Trigger(name string) error // DataLink() // File() VideoPreview(name string, xres, yres, quality int) (image.Image, error) // Dictonary stuff // Dictionary(key string) error MetaData() (*Metadata, error) // Tally() // Switcher() // Buffer() // SwitcherUIEffect() ShortcutStates() (*ShortcutStates, error) // Websocket stuff // v1/audio_notifications // v1/change_notifications // v1/shortcut_notifications // v1/shortcut_state_notifications // v1/timecode_notifications // v1/vu_notifications VUNotifications(name string, cb func(msg string)) error ChangeNotifications(cb func(msg string)) error TimecodeNotifications(cb func(msg string)) error ShortcutNotifications(cb func(msg string)) error }
func NewClientV1 ¶
type ClientV1TCP ¶
type ClientV1TCP interface { Close() error // Close Connection Register(name string) error // send NTK_states Unregister(name string) error // send NTK_states Send(data string) error SendBytes(data []byte) error Shortcut(s Shortcuts) error // should include shortcut XML or name and K/V }
func NewClientV1TCP ¶
func NewClientV1TCP(host string) (ClientV1TCP, error)
type ProductInformation ¶
type ProductInformation struct { XMLName xml.Name `xml:"product_information"` Text string `xml:",chardata"` ProductModel string `xml:"product_model"` ProductName string `xml:"product_name"` ProductVersion string `xml:"product_version"` ProductID string `xml:"product_id"` ProductSerialNo string `xml:"product_serial_no"` ProductBuildNo string `xml:"product_build_no"` MachineName string `xml:"machine_name"` SessionXResolution string `xml:"session_x_resolution"` SessionYResolution string `xml:"session_y_resolution"` SessionFielded string `xml:"session_fielded"` SessionFrameRate string `xml:"session_frame_rate"` SessionAspectRatio string `xml:"session_aspect_ratio"` SessionColorFormat string `xml:"session_color_format"` SessionColorCoding string `xml:"session_color_coding"` SessionName string `xml:"session_name"` OutputCount string `xml:"output_count"` }
ProductInformation. /v1/version API
type ShortcutState ¶
type ShortcutStates ¶
type ShortcutStates struct { XMLName xml.Name `xml:"shortcut_states"` Text string `xml:",chardata"` ShortcutState []ShortcutState `xml:"shortcut_state"` }
type Tally ¶
type Tally struct { XMLName xml.Name `xml:"tally"` Text string `xml:",chardata"` Column []struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Index string `xml:"index,attr"` OnPgm string `xml:"on_pgm,attr"` OnPrev string `xml:"on_prev,attr"` NdiID string `xml:"ndi_id,attr"` } `xml:"column"` }
Click to show internal directories.
Click to hide internal directories.