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.
 

24 lines
535 B

// Code generated DO NOT EDIT
// mediaerror.go
package dom
import "syscall/js"
type MediaErrorIFace interface {
GetCode() int
GetMessage() string
}
type MediaError struct {
Value
}
func jsValueToMediaError(val js.Value) MediaError { return MediaError{Value: Value{Value: val}} }
func (v Value) AsMediaError() MediaError { return MediaError{Value: v} }
func (m MediaError) GetCode() int {
val := m.Get("code")
return val.Int()
}
func (m MediaError) GetMessage() string {
val := m.Get("message")
return val.String()
}