Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

46 lines
1.1 KiB

// Code generated DO NOT EDIT
// videotrack.go
package dom
import "syscall/js"
type VideoTrackIFace interface {
GetId() string
GetKind() string
GetLabel() string
GetLanguage() string
GetSelected() bool
SetSelected(bool)
}
type VideoTrack struct {
Value
}
func JSValueToVideoTrack(val js.Value) VideoTrack { return VideoTrack{Value: JSValueToValue(val)} }
func (v Value) AsVideoTrack() VideoTrack { return VideoTrack{Value: v} }
func NewVideoTrack(args ...interface{}) VideoTrack {
return VideoTrack{Value: JSValueToValue(js.Global().Get("VideoTrack").New(args...))}
}
func (v VideoTrack) GetId() string {
val := v.Get("id")
return val.String()
}
func (v VideoTrack) GetKind() string {
val := v.Get("kind")
return val.String()
}
func (v VideoTrack) GetLabel() string {
val := v.Get("label")
return val.String()
}
func (v VideoTrack) GetLanguage() string {
val := v.Get("language")
return val.String()
}
func (v VideoTrack) GetSelected() bool {
val := v.Get("selected")
return val.Bool()
}
func (v VideoTrack) SetSelected(val bool) {
v.Set("selected", val)
}