media

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 10 Imported by: 3

Documentation

Overview

Package media contains HTML media related types.

Source: HTML Standard (https://html.spec.whatwg.org/)

Index

Constants

View Source
const (
	NETWORK_EMPTY     int = 0
	NETWORK_IDLE      int = 1
	NETWORK_LOADING   int = 2
	NETWORK_NO_SOURCE int = 3
	HAVE_NOTHING      int = 0
	HAVE_METADATA     int = 1
	HAVE_CURRENT_DATA int = 2
	HAVE_FUTURE_DATA  int = 3
	HAVE_ENOUGH_DATA  int = 4
)
View Source
const (
	NONE    int = 0
	LOADING int = 1
	LOADED  int = 2
	ERROR   int = 3
)
View Source
const (
	MEDIA_ERR_ABORTED           int = 1
	MEDIA_ERR_NETWORK           int = 2
	MEDIA_ERR_DECODE            int = 3
	MEDIA_ERR_SRC_NOT_SUPPORTED int = 4
)

Variables

This section is empty.

Functions

func IsTypeSupported

func IsTypeSupported(_type string) (_result bool)

Types

type AppendMode

type AppendMode int

enum: AppendMode

const (
	SegmentsAppendMode AppendMode = iota
	SequenceAppendMode
)

func AppendModeFromJS

func AppendModeFromJS(value js.Value) AppendMode

AppendModeFromJS is converting a javascript value into a AppendMode enum value.

func (*AppendMode) JSValue

func (this *AppendMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AppendMode) Value

func (this AppendMode) Value() string

Value is converting this into javascript defined string value

type AudioTrack

type AudioTrack struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: AudioTrack

func AudioTrackFromJS

func AudioTrackFromJS(value js.Value) *AudioTrack

AudioTrackFromJS is casting a js.Value into AudioTrack.

func AudioTrackFromWrapper

func AudioTrackFromWrapper(input core.Wrapper) *AudioTrack

AudioTrackFromJS is casting from something that holds a js.Value into AudioTrack.

func (*AudioTrack) Enabled

func (_this *AudioTrack) Enabled() bool

Enabled returning attribute 'enabled' with type bool (idl: boolean).

func (*AudioTrack) Id

func (_this *AudioTrack) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*AudioTrack) JSValue

func (_this *AudioTrack) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*AudioTrack) Kind

func (_this *AudioTrack) Kind() string

Kind returning attribute 'kind' with type string (idl: DOMString).

func (*AudioTrack) Label

func (_this *AudioTrack) Label() string

Label returning attribute 'label' with type string (idl: DOMString).

func (*AudioTrack) Language

func (_this *AudioTrack) Language() string

Language returning attribute 'language' with type string (idl: DOMString).

func (*AudioTrack) SetEnabled

func (_this *AudioTrack) SetEnabled(value bool)

SetEnabled setting attribute 'enabled' with type bool (idl: boolean).

func (*AudioTrack) SourceBuffer

func (_this *AudioTrack) SourceBuffer() *SourceBuffer

SourceBuffer returning attribute 'sourceBuffer' with type SourceBuffer (idl: SourceBuffer).

type AudioTrackList

type AudioTrackList struct {
	domcore.EventTarget
}

class: AudioTrackList

func AudioTrackListFromJS

func AudioTrackListFromJS(value js.Value) *AudioTrackList

AudioTrackListFromJS is casting a js.Value into AudioTrackList.

func AudioTrackListFromWrapper

func AudioTrackListFromWrapper(input core.Wrapper) *AudioTrackList

AudioTrackListFromJS is casting from something that holds a js.Value into AudioTrackList.

func (*AudioTrackList) AddEventAddTrack

func (_this *AudioTrackList) AddEventAddTrack(listener func(event *htmlevent.TrackEvent, currentTarget *AudioTrackList)) js.Func

AddAddTrack is adding doing AddEventListener for 'AddTrack' on target. This method is returning allocated javascript function that need to be released.

func (*AudioTrackList) AddEventChange

func (_this *AudioTrackList) AddEventChange(listener func(event *domcore.Event, currentTarget *AudioTrackList)) js.Func

AddChange is adding doing AddEventListener for 'Change' on target. This method is returning allocated javascript function that need to be released.

func (*AudioTrackList) AddEventRemoveTrack

func (_this *AudioTrackList) AddEventRemoveTrack(listener func(event *htmlevent.TrackEvent, currentTarget *AudioTrackList)) js.Func

AddRemoveTrack is adding doing AddEventListener for 'RemoveTrack' on target. This method is returning allocated javascript function that need to be released.

func (*AudioTrackList) GetTrackById

func (_this *AudioTrackList) GetTrackById(id string) (_result *AudioTrack)

func (*AudioTrackList) Index

func (_this *AudioTrackList) Index(index uint) (_result *AudioTrack)

func (*AudioTrackList) Length

func (_this *AudioTrackList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*AudioTrackList) OnAddTrack

func (_this *AudioTrackList) OnAddTrack() domcore.EventHandlerFunc

OnAddTrack returning attribute 'onaddtrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*AudioTrackList) OnChange

func (_this *AudioTrackList) OnChange() domcore.EventHandlerFunc

OnChange returning attribute 'onchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*AudioTrackList) OnRemoveTrack

func (_this *AudioTrackList) OnRemoveTrack() domcore.EventHandlerFunc

OnRemoveTrack returning attribute 'onremovetrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*AudioTrackList) SetOnAddTrack

func (_this *AudioTrackList) SetOnAddTrack(listener func(event *htmlevent.TrackEvent, currentTarget *AudioTrackList)) js.Func

SetOnAddTrack is assigning a function to 'onaddtrack'. This This method is returning allocated javascript function that need to be released.

func (*AudioTrackList) SetOnChange

func (_this *AudioTrackList) SetOnChange(listener func(event *domcore.Event, currentTarget *AudioTrackList)) js.Func

SetOnChange is assigning a function to 'onchange'. This This method is returning allocated javascript function that need to be released.

func (*AudioTrackList) SetOnRemoveTrack

func (_this *AudioTrackList) SetOnRemoveTrack(listener func(event *htmlevent.TrackEvent, currentTarget *AudioTrackList)) js.Func

SetOnRemoveTrack is assigning a function to 'onremovetrack'. This This method is returning allocated javascript function that need to be released.

type CanPlayTypeResult

type CanPlayTypeResult int

enum: CanPlayTypeResult

const (
	EmptyString0CanPlayTypeResult CanPlayTypeResult = iota
	MaybeCanPlayTypeResult
	ProbablyCanPlayTypeResult
)

func CanPlayTypeResultFromJS

func CanPlayTypeResultFromJS(value js.Value) CanPlayTypeResult

CanPlayTypeResultFromJS is converting a javascript value into a CanPlayTypeResult enum value.

func (*CanPlayTypeResult) JSValue

func (this *CanPlayTypeResult) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanPlayTypeResult) Value

func (this CanPlayTypeResult) Value() string

Value is converting this into javascript defined string value

type EndOfStreamError

type EndOfStreamError int

enum: EndOfStreamError

const (
	NetworkEndOfStreamError EndOfStreamError = iota
	DecodeEndOfStreamError
)

func EndOfStreamErrorFromJS

func EndOfStreamErrorFromJS(value js.Value) EndOfStreamError

EndOfStreamErrorFromJS is converting a javascript value into a EndOfStreamError enum value.

func (*EndOfStreamError) JSValue

func (this *EndOfStreamError) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (EndOfStreamError) Value

func (this EndOfStreamError) Value() string

Value is converting this into javascript defined string value

type HTMLAudioElement

type HTMLAudioElement struct {
	HTMLMediaElement
}

class: HTMLAudioElement

func HTMLAudioElementFromJS

func HTMLAudioElementFromJS(value js.Value) *HTMLAudioElement

HTMLAudioElementFromJS is casting a js.Value into HTMLAudioElement.

func HTMLAudioElementFromWrapper

func HTMLAudioElementFromWrapper(input core.Wrapper) *HTMLAudioElement

HTMLAudioElementFromJS is casting from something that holds a js.Value into HTMLAudioElement.

type HTMLMediaElement

type HTMLMediaElement struct {
	html.HTMLElement
}

class: HTMLMediaElement

func HTMLMediaElementFromJS

func HTMLMediaElementFromJS(value js.Value) *HTMLMediaElement

HTMLMediaElementFromJS is casting a js.Value into HTMLMediaElement.

func HTMLMediaElementFromWrapper

func HTMLMediaElementFromWrapper(input core.Wrapper) *HTMLMediaElement

HTMLMediaElementFromJS is casting from something that holds a js.Value into HTMLMediaElement.

func (*HTMLMediaElement) AddEventEncrypted

func (_this *HTMLMediaElement) AddEventEncrypted(listener func(event *encrypted.MediaEncryptedEvent, currentTarget *HTMLMediaElement)) js.Func

AddEncrypted is adding doing AddEventListener for 'Encrypted' on target. This method is returning allocated javascript function that need to be released.

func (*HTMLMediaElement) AddEventWaitingForKey

func (_this *HTMLMediaElement) AddEventWaitingForKey(listener func(event *domcore.Event, currentTarget *HTMLMediaElement)) js.Func

AddWaitingForKey is adding doing AddEventListener for 'WaitingForKey' on target. This method is returning allocated javascript function that need to be released.

func (*HTMLMediaElement) AddTextTrack

func (_this *HTMLMediaElement) AddTextTrack(kind TextTrackKind, label *string, language *string) (_result *TextTrack)

func (*HTMLMediaElement) AudioTracks

func (_this *HTMLMediaElement) AudioTracks() *AudioTrackList

AudioTracks returning attribute 'audioTracks' with type AudioTrackList (idl: AudioTrackList).

func (*HTMLMediaElement) Autoplay

func (_this *HTMLMediaElement) Autoplay() bool

Autoplay returning attribute 'autoplay' with type bool (idl: boolean).

func (*HTMLMediaElement) Buffered

func (_this *HTMLMediaElement) Buffered() *html.TimeRanges

Buffered returning attribute 'buffered' with type html.TimeRanges (idl: TimeRanges).

func (*HTMLMediaElement) CanPlayType

func (_this *HTMLMediaElement) CanPlayType(_type string) (_result CanPlayTypeResult)

func (*HTMLMediaElement) CaptureStream

func (_this *HTMLMediaElement) CaptureStream() (_result *local.MediaStream)

func (*HTMLMediaElement) Controls

func (_this *HTMLMediaElement) Controls() bool

Controls returning attribute 'controls' with type bool (idl: boolean).

func (*HTMLMediaElement) CrossOrigin

func (_this *HTMLMediaElement) CrossOrigin() *string

CrossOrigin returning attribute 'crossOrigin' with type string (idl: DOMString).

func (*HTMLMediaElement) CurrentSrc

func (_this *HTMLMediaElement) CurrentSrc() string

CurrentSrc returning attribute 'currentSrc' with type string (idl: USVString).

func (*HTMLMediaElement) CurrentTime

func (_this *HTMLMediaElement) CurrentTime() float64

CurrentTime returning attribute 'currentTime' with type float64 (idl: double).

func (*HTMLMediaElement) DefaultMuted

func (_this *HTMLMediaElement) DefaultMuted() bool

DefaultMuted returning attribute 'defaultMuted' with type bool (idl: boolean).

func (*HTMLMediaElement) DefaultPlaybackRate

func (_this *HTMLMediaElement) DefaultPlaybackRate() float64

DefaultPlaybackRate returning attribute 'defaultPlaybackRate' with type float64 (idl: double).

func (*HTMLMediaElement) DisableRemotePlayback

func (_this *HTMLMediaElement) DisableRemotePlayback() bool

DisableRemotePlayback returning attribute 'disableRemotePlayback' with type bool (idl: boolean).

func (*HTMLMediaElement) Duration

func (_this *HTMLMediaElement) Duration() float64

Duration returning attribute 'duration' with type float64 (idl: unrestricted double).

func (*HTMLMediaElement) Ended

func (_this *HTMLMediaElement) Ended() bool

Ended returning attribute 'ended' with type bool (idl: boolean).

func (*HTMLMediaElement) Error

func (_this *HTMLMediaElement) Error() *MediaError

Error returning attribute 'error' with type MediaError (idl: MediaError).

func (*HTMLMediaElement) FastSeek

func (_this *HTMLMediaElement) FastSeek(time float64)

func (*HTMLMediaElement) GetStartDate

func (_this *HTMLMediaElement) GetStartDate() (_result *javascript.Object)

func (*HTMLMediaElement) Load

func (_this *HTMLMediaElement) Load()

func (*HTMLMediaElement) Loop

func (_this *HTMLMediaElement) Loop() bool

Loop returning attribute 'loop' with type bool (idl: boolean).

func (*HTMLMediaElement) MediaKeys

func (_this *HTMLMediaElement) MediaKeys() *encrypted.MediaKeys

MediaKeys returning attribute 'mediaKeys' with type encrypted.MediaKeys (idl: MediaKeys).

func (*HTMLMediaElement) Muted

func (_this *HTMLMediaElement) Muted() bool

Muted returning attribute 'muted' with type bool (idl: boolean).

func (*HTMLMediaElement) NetworkState

func (_this *HTMLMediaElement) NetworkState() int

NetworkState returning attribute 'networkState' with type int (idl: unsigned short).

func (*HTMLMediaElement) OnEncrypted

func (_this *HTMLMediaElement) OnEncrypted() domcore.EventHandlerFunc

OnEncrypted returning attribute 'onencrypted' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*HTMLMediaElement) OnWaitingForKey

func (_this *HTMLMediaElement) OnWaitingForKey() domcore.EventHandlerFunc

OnWaitingForKey returning attribute 'onwaitingforkey' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*HTMLMediaElement) Pause

func (_this *HTMLMediaElement) Pause()

func (*HTMLMediaElement) Paused

func (_this *HTMLMediaElement) Paused() bool

Paused returning attribute 'paused' with type bool (idl: boolean).

func (*HTMLMediaElement) Play

func (_this *HTMLMediaElement) Play() (_result *javascript.PromiseVoid)

func (*HTMLMediaElement) PlaybackRate

func (_this *HTMLMediaElement) PlaybackRate() float64

PlaybackRate returning attribute 'playbackRate' with type float64 (idl: double).

func (*HTMLMediaElement) Played

func (_this *HTMLMediaElement) Played() *html.TimeRanges

Played returning attribute 'played' with type html.TimeRanges (idl: TimeRanges).

func (*HTMLMediaElement) Preload

func (_this *HTMLMediaElement) Preload() string

Preload returning attribute 'preload' with type string (idl: DOMString).

func (*HTMLMediaElement) ReadyState

func (_this *HTMLMediaElement) ReadyState() int

ReadyState returning attribute 'readyState' with type int (idl: unsigned short).

func (*HTMLMediaElement) Remote

Remote returning attribute 'remote' with type remoteplayback.RemotePlayback (idl: RemotePlayback).

func (*HTMLMediaElement) Seekable

func (_this *HTMLMediaElement) Seekable() *html.TimeRanges

Seekable returning attribute 'seekable' with type html.TimeRanges (idl: TimeRanges).

func (*HTMLMediaElement) Seeking

func (_this *HTMLMediaElement) Seeking() bool

Seeking returning attribute 'seeking' with type bool (idl: boolean).

func (*HTMLMediaElement) SetAutoplay

func (_this *HTMLMediaElement) SetAutoplay(value bool)

SetAutoplay setting attribute 'autoplay' with type bool (idl: boolean).

func (*HTMLMediaElement) SetControls

func (_this *HTMLMediaElement) SetControls(value bool)

SetControls setting attribute 'controls' with type bool (idl: boolean).

func (*HTMLMediaElement) SetCrossOrigin

func (_this *HTMLMediaElement) SetCrossOrigin(value *string)

SetCrossOrigin setting attribute 'crossOrigin' with type string (idl: DOMString).

func (*HTMLMediaElement) SetCurrentTime

func (_this *HTMLMediaElement) SetCurrentTime(value float64)

SetCurrentTime setting attribute 'currentTime' with type float64 (idl: double).

func (*HTMLMediaElement) SetDefaultMuted

func (_this *HTMLMediaElement) SetDefaultMuted(value bool)

SetDefaultMuted setting attribute 'defaultMuted' with type bool (idl: boolean).

func (*HTMLMediaElement) SetDefaultPlaybackRate

func (_this *HTMLMediaElement) SetDefaultPlaybackRate(value float64)

SetDefaultPlaybackRate setting attribute 'defaultPlaybackRate' with type float64 (idl: double).

func (*HTMLMediaElement) SetDisableRemotePlayback

func (_this *HTMLMediaElement) SetDisableRemotePlayback(value bool)

SetDisableRemotePlayback setting attribute 'disableRemotePlayback' with type bool (idl: boolean).

func (*HTMLMediaElement) SetLoop

func (_this *HTMLMediaElement) SetLoop(value bool)

SetLoop setting attribute 'loop' with type bool (idl: boolean).

func (*HTMLMediaElement) SetMediaKeys

func (_this *HTMLMediaElement) SetMediaKeys(mediaKeys *encrypted.MediaKeys) (_result *javascript.PromiseVoid)

func (*HTMLMediaElement) SetMuted

func (_this *HTMLMediaElement) SetMuted(value bool)

SetMuted setting attribute 'muted' with type bool (idl: boolean).

func (*HTMLMediaElement) SetOnEncrypted

func (_this *HTMLMediaElement) SetOnEncrypted(listener func(event *encrypted.MediaEncryptedEvent, currentTarget *HTMLMediaElement)) js.Func

SetOnEncrypted is assigning a function to 'onencrypted'. This This method is returning allocated javascript function that need to be released.

func (*HTMLMediaElement) SetOnWaitingForKey

func (_this *HTMLMediaElement) SetOnWaitingForKey(listener func(event *domcore.Event, currentTarget *HTMLMediaElement)) js.Func

SetOnWaitingForKey is assigning a function to 'onwaitingforkey'. This This method is returning allocated javascript function that need to be released.

func (*HTMLMediaElement) SetPlaybackRate

func (_this *HTMLMediaElement) SetPlaybackRate(value float64)

SetPlaybackRate setting attribute 'playbackRate' with type float64 (idl: double).

func (*HTMLMediaElement) SetPreload

func (_this *HTMLMediaElement) SetPreload(value string)

SetPreload setting attribute 'preload' with type string (idl: DOMString).

func (*HTMLMediaElement) SetSinkId

func (_this *HTMLMediaElement) SetSinkId(sinkId string) (_result *javascript.PromiseVoid)

func (*HTMLMediaElement) SetSrc

func (_this *HTMLMediaElement) SetSrc(value string)

SetSrc setting attribute 'src' with type string (idl: USVString).

func (*HTMLMediaElement) SetSrcObject

func (_this *HTMLMediaElement) SetSrcObject(value *Union)

SetSrcObject setting attribute 'srcObject' with type Union (idl: Union).

func (*HTMLMediaElement) SetVolume

func (_this *HTMLMediaElement) SetVolume(value float64)

SetVolume setting attribute 'volume' with type float64 (idl: double).

func (*HTMLMediaElement) SinkId

func (_this *HTMLMediaElement) SinkId() string

SinkId returning attribute 'sinkId' with type string (idl: DOMString).

func (*HTMLMediaElement) Src

func (_this *HTMLMediaElement) Src() string

Src returning attribute 'src' with type string (idl: USVString).

func (*HTMLMediaElement) SrcObject

func (_this *HTMLMediaElement) SrcObject() *Union

SrcObject returning attribute 'srcObject' with type Union (idl: Union).

func (*HTMLMediaElement) TextTracks

func (_this *HTMLMediaElement) TextTracks() *TextTrackList

TextTracks returning attribute 'textTracks' with type TextTrackList (idl: TextTrackList).

func (*HTMLMediaElement) VideoTracks

func (_this *HTMLMediaElement) VideoTracks() *VideoTrackList

VideoTracks returning attribute 'videoTracks' with type VideoTrackList (idl: VideoTrackList).

func (*HTMLMediaElement) Volume

func (_this *HTMLMediaElement) Volume() float64

Volume returning attribute 'volume' with type float64 (idl: double).

type HTMLTrackElement

type HTMLTrackElement struct {
	html.HTMLElement
}

class: HTMLTrackElement

func HTMLTrackElementFromJS

func HTMLTrackElementFromJS(value js.Value) *HTMLTrackElement

HTMLTrackElementFromJS is casting a js.Value into HTMLTrackElement.

func HTMLTrackElementFromWrapper

func HTMLTrackElementFromWrapper(input core.Wrapper) *HTMLTrackElement

HTMLTrackElementFromJS is casting from something that holds a js.Value into HTMLTrackElement.

func (*HTMLTrackElement) Default

func (_this *HTMLTrackElement) Default() bool

Default returning attribute 'default' with type bool (idl: boolean).

func (*HTMLTrackElement) Kind

func (_this *HTMLTrackElement) Kind() string

Kind returning attribute 'kind' with type string (idl: DOMString).

func (*HTMLTrackElement) Label

func (_this *HTMLTrackElement) Label() string

Label returning attribute 'label' with type string (idl: DOMString).

func (*HTMLTrackElement) ReadyState

func (_this *HTMLTrackElement) ReadyState() int

ReadyState returning attribute 'readyState' with type int (idl: unsigned short).

func (*HTMLTrackElement) SetDefault

func (_this *HTMLTrackElement) SetDefault(value bool)

SetDefault setting attribute 'default' with type bool (idl: boolean).

func (*HTMLTrackElement) SetKind

func (_this *HTMLTrackElement) SetKind(value string)

SetKind setting attribute 'kind' with type string (idl: DOMString).

func (*HTMLTrackElement) SetLabel

func (_this *HTMLTrackElement) SetLabel(value string)

SetLabel setting attribute 'label' with type string (idl: DOMString).

func (*HTMLTrackElement) SetSrc

func (_this *HTMLTrackElement) SetSrc(value string)

SetSrc setting attribute 'src' with type string (idl: USVString).

func (*HTMLTrackElement) SetSrclang

func (_this *HTMLTrackElement) SetSrclang(value string)

SetSrclang setting attribute 'srclang' with type string (idl: DOMString).

func (*HTMLTrackElement) Src

func (_this *HTMLTrackElement) Src() string

Src returning attribute 'src' with type string (idl: USVString).

func (*HTMLTrackElement) Srclang

func (_this *HTMLTrackElement) Srclang() string

Srclang returning attribute 'srclang' with type string (idl: DOMString).

func (*HTMLTrackElement) Track

func (_this *HTMLTrackElement) Track() *TextTrack

Track returning attribute 'track' with type TextTrack (idl: TextTrack).

type HTMLVideoElement

type HTMLVideoElement struct {
	HTMLMediaElement
}

class: HTMLVideoElement

func HTMLVideoElementFromJS

func HTMLVideoElementFromJS(value js.Value) *HTMLVideoElement

HTMLVideoElementFromJS is casting a js.Value into HTMLVideoElement.

func HTMLVideoElementFromWrapper

func HTMLVideoElementFromWrapper(input core.Wrapper) *HTMLVideoElement

HTMLVideoElementFromJS is casting from something that holds a js.Value into HTMLVideoElement.

func (*HTMLVideoElement) AddEventEnterPictureInPicture

func (_this *HTMLVideoElement) AddEventEnterPictureInPicture(listener func(event *pictureinpicture.EnterPictureInPictureEvent, currentTarget *HTMLVideoElement)) js.Func

AddEnterPictureInPicture is adding doing AddEventListener for 'EnterPictureInPicture' on target. This method is returning allocated javascript function that need to be released.

func (*HTMLVideoElement) AddEventLeavePictureInPicture

func (_this *HTMLVideoElement) AddEventLeavePictureInPicture(listener func(event *domcore.Event, currentTarget *HTMLVideoElement)) js.Func

AddLeavePictureInPicture is adding doing AddEventListener for 'LeavePictureInPicture' on target. This method is returning allocated javascript function that need to be released.

func (*HTMLVideoElement) AutoPictureInPicture

func (_this *HTMLVideoElement) AutoPictureInPicture() bool

AutoPictureInPicture returning attribute 'autoPictureInPicture' with type bool (idl: boolean).

func (*HTMLVideoElement) DisablePictureInPicture

func (_this *HTMLVideoElement) DisablePictureInPicture() bool

DisablePictureInPicture returning attribute 'disablePictureInPicture' with type bool (idl: boolean).

func (*HTMLVideoElement) Height

func (_this *HTMLVideoElement) Height() uint

Height returning attribute 'height' with type uint (idl: unsigned long).

func (*HTMLVideoElement) OnEnterPictureInPicture

func (_this *HTMLVideoElement) OnEnterPictureInPicture() domcore.EventHandlerFunc

OnEnterPictureInPicture returning attribute 'onenterpictureinpicture' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*HTMLVideoElement) OnLeavePictureInPicture

func (_this *HTMLVideoElement) OnLeavePictureInPicture() domcore.EventHandlerFunc

OnLeavePictureInPicture returning attribute 'onleavepictureinpicture' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*HTMLVideoElement) PlaysInline

func (_this *HTMLVideoElement) PlaysInline() bool

PlaysInline returning attribute 'playsInline' with type bool (idl: boolean).

func (*HTMLVideoElement) Poster

func (_this *HTMLVideoElement) Poster() string

Poster returning attribute 'poster' with type string (idl: USVString).

func (*HTMLVideoElement) RequestPictureInPicture

func (_this *HTMLVideoElement) RequestPictureInPicture() (_result *pictureinpicture.PromisePictureInPictureWindow)

func (*HTMLVideoElement) SetAutoPictureInPicture

func (_this *HTMLVideoElement) SetAutoPictureInPicture(value bool)

SetAutoPictureInPicture setting attribute 'autoPictureInPicture' with type bool (idl: boolean).

func (*HTMLVideoElement) SetDisablePictureInPicture

func (_this *HTMLVideoElement) SetDisablePictureInPicture(value bool)

SetDisablePictureInPicture setting attribute 'disablePictureInPicture' with type bool (idl: boolean).

func (*HTMLVideoElement) SetHeight

func (_this *HTMLVideoElement) SetHeight(value uint)

SetHeight setting attribute 'height' with type uint (idl: unsigned long).

func (*HTMLVideoElement) SetOnEnterPictureInPicture

func (_this *HTMLVideoElement) SetOnEnterPictureInPicture(listener func(event *pictureinpicture.EnterPictureInPictureEvent, currentTarget *HTMLVideoElement)) js.Func

SetOnEnterPictureInPicture is assigning a function to 'onenterpictureinpicture'. This This method is returning allocated javascript function that need to be released.

func (*HTMLVideoElement) SetOnLeavePictureInPicture

func (_this *HTMLVideoElement) SetOnLeavePictureInPicture(listener func(event *domcore.Event, currentTarget *HTMLVideoElement)) js.Func

SetOnLeavePictureInPicture is assigning a function to 'onleavepictureinpicture'. This This method is returning allocated javascript function that need to be released.

func (*HTMLVideoElement) SetPlaysInline

func (_this *HTMLVideoElement) SetPlaysInline(value bool)

SetPlaysInline setting attribute 'playsInline' with type bool (idl: boolean).

func (*HTMLVideoElement) SetPoster

func (_this *HTMLVideoElement) SetPoster(value string)

SetPoster setting attribute 'poster' with type string (idl: USVString).

func (*HTMLVideoElement) SetWidth

func (_this *HTMLVideoElement) SetWidth(value uint)

SetWidth setting attribute 'width' with type uint (idl: unsigned long).

func (*HTMLVideoElement) VideoHeight

func (_this *HTMLVideoElement) VideoHeight() uint

VideoHeight returning attribute 'videoHeight' with type uint (idl: unsigned long).

func (*HTMLVideoElement) VideoWidth

func (_this *HTMLVideoElement) VideoWidth() uint

VideoWidth returning attribute 'videoWidth' with type uint (idl: unsigned long).

func (*HTMLVideoElement) Width

func (_this *HTMLVideoElement) Width() uint

Width returning attribute 'width' with type uint (idl: unsigned long).

type MediaError

type MediaError struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: MediaError

func MediaErrorFromJS

func MediaErrorFromJS(value js.Value) *MediaError

MediaErrorFromJS is casting a js.Value into MediaError.

func MediaErrorFromWrapper

func MediaErrorFromWrapper(input core.Wrapper) *MediaError

MediaErrorFromJS is casting from something that holds a js.Value into MediaError.

func (*MediaError) Code

func (_this *MediaError) Code() int

Code returning attribute 'code' with type int (idl: unsigned short).

func (*MediaError) JSValue

func (_this *MediaError) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*MediaError) Message

func (_this *MediaError) Message() string

Message returning attribute 'message' with type string (idl: DOMString).

type MediaSource

type MediaSource struct {
	domcore.EventTarget
}

class: MediaSource

func MediaSourceFromJS

func MediaSourceFromJS(value js.Value) *MediaSource

MediaSourceFromJS is casting a js.Value into MediaSource.

func MediaSourceFromWrapper

func MediaSourceFromWrapper(input core.Wrapper) *MediaSource

MediaSourceFromJS is casting from something that holds a js.Value into MediaSource.

func NewMediaSource

func NewMediaSource() (_result *MediaSource)

func (*MediaSource) ActiveSourceBuffers

func (_this *MediaSource) ActiveSourceBuffers() *SourceBufferList

ActiveSourceBuffers returning attribute 'activeSourceBuffers' with type SourceBufferList (idl: SourceBufferList).

func (*MediaSource) AddEventSourceClose

func (_this *MediaSource) AddEventSourceClose(listener func(event *domcore.Event, currentTarget *MediaSource)) js.Func

AddSourceClose is adding doing AddEventListener for 'SourceClose' on target. This method is returning allocated javascript function that need to be released.

func (*MediaSource) AddEventSourceEnded

func (_this *MediaSource) AddEventSourceEnded(listener func(event *domcore.Event, currentTarget *MediaSource)) js.Func

AddSourceEnded is adding doing AddEventListener for 'SourceEnded' on target. This method is returning allocated javascript function that need to be released.

func (*MediaSource) AddEventSourceOpen

func (_this *MediaSource) AddEventSourceOpen(listener func(event *domcore.Event, currentTarget *MediaSource)) js.Func

AddSourceOpen is adding doing AddEventListener for 'SourceOpen' on target. This method is returning allocated javascript function that need to be released.

func (*MediaSource) AddSourceBuffer

func (_this *MediaSource) AddSourceBuffer(_type string) (_result *SourceBuffer)

func (*MediaSource) ClearLiveSeekableRange

func (_this *MediaSource) ClearLiveSeekableRange()

func (*MediaSource) Duration

func (_this *MediaSource) Duration() float64

Duration returning attribute 'duration' with type float64 (idl: unrestricted double).

func (*MediaSource) EndOfStream

func (_this *MediaSource) EndOfStream(_error *EndOfStreamError)

func (*MediaSource) OnSourceClose

func (_this *MediaSource) OnSourceClose() domcore.EventHandlerFunc

OnSourceClose returning attribute 'onsourceclose' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaSource) OnSourceEnded

func (_this *MediaSource) OnSourceEnded() domcore.EventHandlerFunc

OnSourceEnded returning attribute 'onsourceended' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaSource) OnSourceOpen

func (_this *MediaSource) OnSourceOpen() domcore.EventHandlerFunc

OnSourceOpen returning attribute 'onsourceopen' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaSource) ReadyState

func (_this *MediaSource) ReadyState() ReadyState

ReadyState returning attribute 'readyState' with type ReadyState (idl: ReadyState).

func (*MediaSource) RemoveSourceBuffer

func (_this *MediaSource) RemoveSourceBuffer(sourceBuffer *SourceBuffer)

func (*MediaSource) SetDuration

func (_this *MediaSource) SetDuration(value float64)

SetDuration setting attribute 'duration' with type float64 (idl: unrestricted double).

func (*MediaSource) SetLiveSeekableRange

func (_this *MediaSource) SetLiveSeekableRange(start float64, end float64)

func (*MediaSource) SetOnSourceClose

func (_this *MediaSource) SetOnSourceClose(listener func(event *domcore.Event, currentTarget *MediaSource)) js.Func

SetOnSourceClose is assigning a function to 'onsourceclose'. This This method is returning allocated javascript function that need to be released.

func (*MediaSource) SetOnSourceEnded

func (_this *MediaSource) SetOnSourceEnded(listener func(event *domcore.Event, currentTarget *MediaSource)) js.Func

SetOnSourceEnded is assigning a function to 'onsourceended'. This This method is returning allocated javascript function that need to be released.

func (*MediaSource) SetOnSourceOpen

func (_this *MediaSource) SetOnSourceOpen(listener func(event *domcore.Event, currentTarget *MediaSource)) js.Func

SetOnSourceOpen is assigning a function to 'onsourceopen'. This This method is returning allocated javascript function that need to be released.

func (*MediaSource) SourceBuffers

func (_this *MediaSource) SourceBuffers() *SourceBufferList

SourceBuffers returning attribute 'sourceBuffers' with type SourceBufferList (idl: SourceBufferList).

type ReadyState

type ReadyState int

enum: ReadyState

const (
	ClosedReadyState ReadyState = iota
	OpenReadyState
	EndedReadyState
)

func ReadyStateFromJS

func ReadyStateFromJS(value js.Value) ReadyState

ReadyStateFromJS is converting a javascript value into a ReadyState enum value.

func (*ReadyState) JSValue

func (this *ReadyState) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ReadyState) Value

func (this ReadyState) Value() string

Value is converting this into javascript defined string value

type SourceBuffer

type SourceBuffer struct {
	domcore.EventTarget
}

class: SourceBuffer

func SourceBufferFromJS

func SourceBufferFromJS(value js.Value) *SourceBuffer

SourceBufferFromJS is casting a js.Value into SourceBuffer.

func SourceBufferFromWrapper

func SourceBufferFromWrapper(input core.Wrapper) *SourceBuffer

SourceBufferFromJS is casting from something that holds a js.Value into SourceBuffer.

func (*SourceBuffer) Abort

func (_this *SourceBuffer) Abort()

func (*SourceBuffer) AddEventAbort

func (_this *SourceBuffer) AddEventAbort(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

AddAbort is adding doing AddEventListener for 'Abort' on target. This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) AddEventError

func (_this *SourceBuffer) AddEventError(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) AddEventUpdate

func (_this *SourceBuffer) AddEventUpdate(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

AddUpdate is adding doing AddEventListener for 'Update' on target. This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) AddEventUpdateEnd

func (_this *SourceBuffer) AddEventUpdateEnd(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

AddUpdateEnd is adding doing AddEventListener for 'UpdateEnd' on target. This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) AddEventUpdateStart

func (_this *SourceBuffer) AddEventUpdateStart(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

AddUpdateStart is adding doing AddEventListener for 'UpdateStart' on target. This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) AppendBuffer

func (_this *SourceBuffer) AppendBuffer(data *Union)

func (*SourceBuffer) AppendWindowEnd

func (_this *SourceBuffer) AppendWindowEnd() float64

AppendWindowEnd returning attribute 'appendWindowEnd' with type float64 (idl: unrestricted double).

func (*SourceBuffer) AppendWindowStart

func (_this *SourceBuffer) AppendWindowStart() float64

AppendWindowStart returning attribute 'appendWindowStart' with type float64 (idl: double).

func (*SourceBuffer) AudioTracks

func (_this *SourceBuffer) AudioTracks() *AudioTrackList

AudioTracks returning attribute 'audioTracks' with type AudioTrackList (idl: AudioTrackList).

func (*SourceBuffer) Buffered

func (_this *SourceBuffer) Buffered() *html.TimeRanges

Buffered returning attribute 'buffered' with type html.TimeRanges (idl: TimeRanges).

func (*SourceBuffer) Mode

func (_this *SourceBuffer) Mode() AppendMode

Mode returning attribute 'mode' with type AppendMode (idl: AppendMode).

func (*SourceBuffer) OnAbort

func (_this *SourceBuffer) OnAbort() domcore.EventHandlerFunc

OnAbort returning attribute 'onabort' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SourceBuffer) OnError

func (_this *SourceBuffer) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SourceBuffer) OnUpdate

func (_this *SourceBuffer) OnUpdate() domcore.EventHandlerFunc

OnUpdate returning attribute 'onupdate' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SourceBuffer) OnUpdateEnd

func (_this *SourceBuffer) OnUpdateEnd() domcore.EventHandlerFunc

OnUpdateEnd returning attribute 'onupdateend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SourceBuffer) OnUpdateStart

func (_this *SourceBuffer) OnUpdateStart() domcore.EventHandlerFunc

OnUpdateStart returning attribute 'onupdatestart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SourceBuffer) Remove

func (_this *SourceBuffer) Remove(start float64, end float64)

func (*SourceBuffer) SetAppendWindowEnd

func (_this *SourceBuffer) SetAppendWindowEnd(value float64)

SetAppendWindowEnd setting attribute 'appendWindowEnd' with type float64 (idl: unrestricted double).

func (*SourceBuffer) SetAppendWindowStart

func (_this *SourceBuffer) SetAppendWindowStart(value float64)

SetAppendWindowStart setting attribute 'appendWindowStart' with type float64 (idl: double).

func (*SourceBuffer) SetMode

func (_this *SourceBuffer) SetMode(value AppendMode)

SetMode setting attribute 'mode' with type AppendMode (idl: AppendMode).

func (*SourceBuffer) SetOnAbort

func (_this *SourceBuffer) SetOnAbort(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

SetOnAbort is assigning a function to 'onabort'. This This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) SetOnError

func (_this *SourceBuffer) SetOnError(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) SetOnUpdate

func (_this *SourceBuffer) SetOnUpdate(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

SetOnUpdate is assigning a function to 'onupdate'. This This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) SetOnUpdateEnd

func (_this *SourceBuffer) SetOnUpdateEnd(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

SetOnUpdateEnd is assigning a function to 'onupdateend'. This This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) SetOnUpdateStart

func (_this *SourceBuffer) SetOnUpdateStart(listener func(event *domcore.Event, currentTarget *SourceBuffer)) js.Func

SetOnUpdateStart is assigning a function to 'onupdatestart'. This This method is returning allocated javascript function that need to be released.

func (*SourceBuffer) SetTimestampOffset

func (_this *SourceBuffer) SetTimestampOffset(value float64)

SetTimestampOffset setting attribute 'timestampOffset' with type float64 (idl: double).

func (*SourceBuffer) TextTracks

func (_this *SourceBuffer) TextTracks() *TextTrackList

TextTracks returning attribute 'textTracks' with type TextTrackList (idl: TextTrackList).

func (*SourceBuffer) TimestampOffset

func (_this *SourceBuffer) TimestampOffset() float64

TimestampOffset returning attribute 'timestampOffset' with type float64 (idl: double).

func (*SourceBuffer) Updating

func (_this *SourceBuffer) Updating() bool

Updating returning attribute 'updating' with type bool (idl: boolean).

func (*SourceBuffer) VideoTracks

func (_this *SourceBuffer) VideoTracks() *VideoTrackList

VideoTracks returning attribute 'videoTracks' with type VideoTrackList (idl: VideoTrackList).

type SourceBufferList

type SourceBufferList struct {
	domcore.EventTarget
}

class: SourceBufferList

func SourceBufferListFromJS

func SourceBufferListFromJS(value js.Value) *SourceBufferList

SourceBufferListFromJS is casting a js.Value into SourceBufferList.

func SourceBufferListFromWrapper

func SourceBufferListFromWrapper(input core.Wrapper) *SourceBufferList

SourceBufferListFromJS is casting from something that holds a js.Value into SourceBufferList.

func (*SourceBufferList) AddEventAddSourceBuffer

func (_this *SourceBufferList) AddEventAddSourceBuffer(listener func(event *domcore.Event, currentTarget *SourceBufferList)) js.Func

AddAddSourceBuffer is adding doing AddEventListener for 'AddSourceBuffer' on target. This method is returning allocated javascript function that need to be released.

func (*SourceBufferList) AddEventRemoveSourceBuffer

func (_this *SourceBufferList) AddEventRemoveSourceBuffer(listener func(event *domcore.Event, currentTarget *SourceBufferList)) js.Func

AddRemoveSourceBuffer is adding doing AddEventListener for 'RemoveSourceBuffer' on target. This method is returning allocated javascript function that need to be released.

func (*SourceBufferList) Index

func (_this *SourceBufferList) Index(index uint) (_result *SourceBuffer)

func (*SourceBufferList) Length

func (_this *SourceBufferList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*SourceBufferList) OnAddSourceBuffer

func (_this *SourceBufferList) OnAddSourceBuffer() domcore.EventHandlerFunc

OnAddSourceBuffer returning attribute 'onaddsourcebuffer' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SourceBufferList) OnRemoveSourceBuffer

func (_this *SourceBufferList) OnRemoveSourceBuffer() domcore.EventHandlerFunc

OnRemoveSourceBuffer returning attribute 'onremovesourcebuffer' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SourceBufferList) SetOnAddSourceBuffer

func (_this *SourceBufferList) SetOnAddSourceBuffer(listener func(event *domcore.Event, currentTarget *SourceBufferList)) js.Func

SetOnAddSourceBuffer is assigning a function to 'onaddsourcebuffer'. This This method is returning allocated javascript function that need to be released.

func (*SourceBufferList) SetOnRemoveSourceBuffer

func (_this *SourceBufferList) SetOnRemoveSourceBuffer(listener func(event *domcore.Event, currentTarget *SourceBufferList)) js.Func

SetOnRemoveSourceBuffer is assigning a function to 'onremovesourcebuffer'. This This method is returning allocated javascript function that need to be released.

type TextTrack

type TextTrack struct {
	domcore.EventTarget
}

class: TextTrack

func TextTrackFromJS

func TextTrackFromJS(value js.Value) *TextTrack

TextTrackFromJS is casting a js.Value into TextTrack.

func TextTrackFromWrapper

func TextTrackFromWrapper(input core.Wrapper) *TextTrack

TextTrackFromJS is casting from something that holds a js.Value into TextTrack.

func (*TextTrack) ActiveCues

func (_this *TextTrack) ActiveCues() *TextTrackCueList

ActiveCues returning attribute 'activeCues' with type TextTrackCueList (idl: TextTrackCueList).

func (*TextTrack) AddCue

func (_this *TextTrack) AddCue(cue *TextTrackCue)

func (*TextTrack) AddEventCueChange

func (_this *TextTrack) AddEventCueChange(listener func(event *domcore.Event, currentTarget *TextTrack)) js.Func

AddCueChange is adding doing AddEventListener for 'CueChange' on target. This method is returning allocated javascript function that need to be released.

func (*TextTrack) Cues

func (_this *TextTrack) Cues() *TextTrackCueList

Cues returning attribute 'cues' with type TextTrackCueList (idl: TextTrackCueList).

func (*TextTrack) Id

func (_this *TextTrack) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*TextTrack) InBandMetadataTrackDispatchType

func (_this *TextTrack) InBandMetadataTrackDispatchType() string

InBandMetadataTrackDispatchType returning attribute 'inBandMetadataTrackDispatchType' with type string (idl: DOMString).

func (*TextTrack) Kind

func (_this *TextTrack) Kind() TextTrackKind

Kind returning attribute 'kind' with type TextTrackKind (idl: TextTrackKind).

func (*TextTrack) Label

func (_this *TextTrack) Label() string

Label returning attribute 'label' with type string (idl: DOMString).

func (*TextTrack) Language

func (_this *TextTrack) Language() string

Language returning attribute 'language' with type string (idl: DOMString).

func (*TextTrack) Mode

func (_this *TextTrack) Mode() TextTrackMode

Mode returning attribute 'mode' with type TextTrackMode (idl: TextTrackMode).

func (*TextTrack) OnCueChange

func (_this *TextTrack) OnCueChange() domcore.EventHandlerFunc

OnCueChange returning attribute 'oncuechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*TextTrack) RemoveCue

func (_this *TextTrack) RemoveCue(cue *TextTrackCue)

func (*TextTrack) SetMode

func (_this *TextTrack) SetMode(value TextTrackMode)

SetMode setting attribute 'mode' with type TextTrackMode (idl: TextTrackMode).

func (*TextTrack) SetOnCueChange

func (_this *TextTrack) SetOnCueChange(listener func(event *domcore.Event, currentTarget *TextTrack)) js.Func

SetOnCueChange is assigning a function to 'oncuechange'. This This method is returning allocated javascript function that need to be released.

func (*TextTrack) SourceBuffer

func (_this *TextTrack) SourceBuffer() *SourceBuffer

SourceBuffer returning attribute 'sourceBuffer' with type SourceBuffer (idl: SourceBuffer).

type TextTrackCue

type TextTrackCue struct {
	domcore.EventTarget
}

class: TextTrackCue

func TextTrackCueFromJS

func TextTrackCueFromJS(value js.Value) *TextTrackCue

TextTrackCueFromJS is casting a js.Value into TextTrackCue.

func TextTrackCueFromWrapper

func TextTrackCueFromWrapper(input core.Wrapper) *TextTrackCue

TextTrackCueFromJS is casting from something that holds a js.Value into TextTrackCue.

func (*TextTrackCue) AddEventEnter

func (_this *TextTrackCue) AddEventEnter(listener func(event *domcore.Event, currentTarget *TextTrackCue)) js.Func

AddEnter is adding doing AddEventListener for 'Enter' on target. This method is returning allocated javascript function that need to be released.

func (*TextTrackCue) AddEventExit

func (_this *TextTrackCue) AddEventExit(listener func(event *domcore.Event, currentTarget *TextTrackCue)) js.Func

AddExit is adding doing AddEventListener for 'Exit' on target. This method is returning allocated javascript function that need to be released.

func (*TextTrackCue) EndTime

func (_this *TextTrackCue) EndTime() float64

EndTime returning attribute 'endTime' with type float64 (idl: double).

func (*TextTrackCue) Id

func (_this *TextTrackCue) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*TextTrackCue) OnEnter

func (_this *TextTrackCue) OnEnter() domcore.EventHandlerFunc

OnEnter returning attribute 'onenter' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*TextTrackCue) OnExit

func (_this *TextTrackCue) OnExit() domcore.EventHandlerFunc

OnExit returning attribute 'onexit' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*TextTrackCue) PauseOnExit

func (_this *TextTrackCue) PauseOnExit() bool

PauseOnExit returning attribute 'pauseOnExit' with type bool (idl: boolean).

func (*TextTrackCue) SetEndTime

func (_this *TextTrackCue) SetEndTime(value float64)

SetEndTime setting attribute 'endTime' with type float64 (idl: double).

func (*TextTrackCue) SetId

func (_this *TextTrackCue) SetId(value string)

SetId setting attribute 'id' with type string (idl: DOMString).

func (*TextTrackCue) SetOnEnter

func (_this *TextTrackCue) SetOnEnter(listener func(event *domcore.Event, currentTarget *TextTrackCue)) js.Func

SetOnEnter is assigning a function to 'onenter'. This This method is returning allocated javascript function that need to be released.

func (*TextTrackCue) SetOnExit

func (_this *TextTrackCue) SetOnExit(listener func(event *domcore.Event, currentTarget *TextTrackCue)) js.Func

SetOnExit is assigning a function to 'onexit'. This This method is returning allocated javascript function that need to be released.

func (*TextTrackCue) SetPauseOnExit

func (_this *TextTrackCue) SetPauseOnExit(value bool)

SetPauseOnExit setting attribute 'pauseOnExit' with type bool (idl: boolean).

func (*TextTrackCue) SetStartTime

func (_this *TextTrackCue) SetStartTime(value float64)

SetStartTime setting attribute 'startTime' with type float64 (idl: double).

func (*TextTrackCue) StartTime

func (_this *TextTrackCue) StartTime() float64

StartTime returning attribute 'startTime' with type float64 (idl: double).

func (*TextTrackCue) Track

func (_this *TextTrackCue) Track() *TextTrack

Track returning attribute 'track' with type TextTrack (idl: TextTrack).

type TextTrackCueList

type TextTrackCueList struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: TextTrackCueList

func TextTrackCueListFromJS

func TextTrackCueListFromJS(value js.Value) *TextTrackCueList

TextTrackCueListFromJS is casting a js.Value into TextTrackCueList.

func TextTrackCueListFromWrapper

func TextTrackCueListFromWrapper(input core.Wrapper) *TextTrackCueList

TextTrackCueListFromJS is casting from something that holds a js.Value into TextTrackCueList.

func (*TextTrackCueList) GetCueById

func (_this *TextTrackCueList) GetCueById(id string) (_result *TextTrackCue)

func (*TextTrackCueList) Index

func (_this *TextTrackCueList) Index(index uint) (_result *TextTrackCue)

func (*TextTrackCueList) JSValue

func (_this *TextTrackCueList) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*TextTrackCueList) Length

func (_this *TextTrackCueList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

type TextTrackKind

type TextTrackKind int

enum: TextTrackKind

const (
	SubtitlesTextTrackKind TextTrackKind = iota
	CaptionsTextTrackKind
	DescriptionsTextTrackKind
	ChaptersTextTrackKind
	MetadataTextTrackKind
)

func TextTrackKindFromJS

func TextTrackKindFromJS(value js.Value) TextTrackKind

TextTrackKindFromJS is converting a javascript value into a TextTrackKind enum value.

func (*TextTrackKind) JSValue

func (this *TextTrackKind) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (TextTrackKind) Value

func (this TextTrackKind) Value() string

Value is converting this into javascript defined string value

type TextTrackList

type TextTrackList struct {
	domcore.EventTarget
}

class: TextTrackList

func TextTrackListFromJS

func TextTrackListFromJS(value js.Value) *TextTrackList

TextTrackListFromJS is casting a js.Value into TextTrackList.

func TextTrackListFromWrapper

func TextTrackListFromWrapper(input core.Wrapper) *TextTrackList

TextTrackListFromJS is casting from something that holds a js.Value into TextTrackList.

func (*TextTrackList) AddEventAddTrack

func (_this *TextTrackList) AddEventAddTrack(listener func(event *htmlevent.TrackEvent, currentTarget *TextTrackList)) js.Func

AddAddTrack is adding doing AddEventListener for 'AddTrack' on target. This method is returning allocated javascript function that need to be released.

func (*TextTrackList) AddEventChange

func (_this *TextTrackList) AddEventChange(listener func(event *domcore.Event, currentTarget *TextTrackList)) js.Func

AddChange is adding doing AddEventListener for 'Change' on target. This method is returning allocated javascript function that need to be released.

func (*TextTrackList) AddEventRemoveTrack

func (_this *TextTrackList) AddEventRemoveTrack(listener func(event *htmlevent.TrackEvent, currentTarget *TextTrackList)) js.Func

AddRemoveTrack is adding doing AddEventListener for 'RemoveTrack' on target. This method is returning allocated javascript function that need to be released.

func (*TextTrackList) GetTrackById

func (_this *TextTrackList) GetTrackById(id string) (_result *TextTrack)

func (*TextTrackList) Index

func (_this *TextTrackList) Index(index uint) (_result *TextTrack)

func (*TextTrackList) Length

func (_this *TextTrackList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*TextTrackList) OnAddTrack

func (_this *TextTrackList) OnAddTrack() domcore.EventHandlerFunc

OnAddTrack returning attribute 'onaddtrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*TextTrackList) OnChange

func (_this *TextTrackList) OnChange() domcore.EventHandlerFunc

OnChange returning attribute 'onchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*TextTrackList) OnRemoveTrack

func (_this *TextTrackList) OnRemoveTrack() domcore.EventHandlerFunc

OnRemoveTrack returning attribute 'onremovetrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*TextTrackList) SetOnAddTrack

func (_this *TextTrackList) SetOnAddTrack(listener func(event *htmlevent.TrackEvent, currentTarget *TextTrackList)) js.Func

SetOnAddTrack is assigning a function to 'onaddtrack'. This This method is returning allocated javascript function that need to be released.

func (*TextTrackList) SetOnChange

func (_this *TextTrackList) SetOnChange(listener func(event *domcore.Event, currentTarget *TextTrackList)) js.Func

SetOnChange is assigning a function to 'onchange'. This This method is returning allocated javascript function that need to be released.

func (*TextTrackList) SetOnRemoveTrack

func (_this *TextTrackList) SetOnRemoveTrack(listener func(event *htmlevent.TrackEvent, currentTarget *TextTrackList)) js.Func

SetOnRemoveTrack is assigning a function to 'onremovetrack'. This This method is returning allocated javascript function that need to be released.

type TextTrackMode

type TextTrackMode int

enum: TextTrackMode

const (
	DisabledTextTrackMode TextTrackMode = iota
	HiddenTextTrackMode
	ShowingTextTrackMode
)

func TextTrackModeFromJS

func TextTrackModeFromJS(value js.Value) TextTrackMode

TextTrackModeFromJS is converting a javascript value into a TextTrackMode enum value.

func (*TextTrackMode) JSValue

func (this *TextTrackMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (TextTrackMode) Value

func (this TextTrackMode) Value() string

Value is converting this into javascript defined string value

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

type VideoTrack

type VideoTrack struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: VideoTrack

func VideoTrackFromJS

func VideoTrackFromJS(value js.Value) *VideoTrack

VideoTrackFromJS is casting a js.Value into VideoTrack.

func VideoTrackFromWrapper

func VideoTrackFromWrapper(input core.Wrapper) *VideoTrack

VideoTrackFromJS is casting from something that holds a js.Value into VideoTrack.

func (*VideoTrack) Id

func (_this *VideoTrack) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*VideoTrack) JSValue

func (_this *VideoTrack) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*VideoTrack) Kind

func (_this *VideoTrack) Kind() string

Kind returning attribute 'kind' with type string (idl: DOMString).

func (*VideoTrack) Label

func (_this *VideoTrack) Label() string

Label returning attribute 'label' with type string (idl: DOMString).

func (*VideoTrack) Language

func (_this *VideoTrack) Language() string

Language returning attribute 'language' with type string (idl: DOMString).

func (*VideoTrack) Selected

func (_this *VideoTrack) Selected() bool

Selected returning attribute 'selected' with type bool (idl: boolean).

func (*VideoTrack) SetSelected

func (_this *VideoTrack) SetSelected(value bool)

SetSelected setting attribute 'selected' with type bool (idl: boolean).

func (*VideoTrack) SourceBuffer

func (_this *VideoTrack) SourceBuffer() *SourceBuffer

SourceBuffer returning attribute 'sourceBuffer' with type SourceBuffer (idl: SourceBuffer).

type VideoTrackList

type VideoTrackList struct {
	domcore.EventTarget
}

class: VideoTrackList

func VideoTrackListFromJS

func VideoTrackListFromJS(value js.Value) *VideoTrackList

VideoTrackListFromJS is casting a js.Value into VideoTrackList.

func VideoTrackListFromWrapper

func VideoTrackListFromWrapper(input core.Wrapper) *VideoTrackList

VideoTrackListFromJS is casting from something that holds a js.Value into VideoTrackList.

func (*VideoTrackList) AddEventAddTrack

func (_this *VideoTrackList) AddEventAddTrack(listener func(event *htmlevent.TrackEvent, currentTarget *VideoTrackList)) js.Func

AddAddTrack is adding doing AddEventListener for 'AddTrack' on target. This method is returning allocated javascript function that need to be released.

func (*VideoTrackList) AddEventChange

func (_this *VideoTrackList) AddEventChange(listener func(event *domcore.Event, currentTarget *VideoTrackList)) js.Func

AddChange is adding doing AddEventListener for 'Change' on target. This method is returning allocated javascript function that need to be released.

func (*VideoTrackList) AddEventRemoveTrack

func (_this *VideoTrackList) AddEventRemoveTrack(listener func(event *htmlevent.TrackEvent, currentTarget *VideoTrackList)) js.Func

AddRemoveTrack is adding doing AddEventListener for 'RemoveTrack' on target. This method is returning allocated javascript function that need to be released.

func (*VideoTrackList) GetTrackById

func (_this *VideoTrackList) GetTrackById(id string) (_result *VideoTrack)

func (*VideoTrackList) Index

func (_this *VideoTrackList) Index(index uint) (_result *VideoTrack)

func (*VideoTrackList) Length

func (_this *VideoTrackList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*VideoTrackList) OnAddTrack

func (_this *VideoTrackList) OnAddTrack() domcore.EventHandlerFunc

OnAddTrack returning attribute 'onaddtrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*VideoTrackList) OnChange

func (_this *VideoTrackList) OnChange() domcore.EventHandlerFunc

OnChange returning attribute 'onchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*VideoTrackList) OnRemoveTrack

func (_this *VideoTrackList) OnRemoveTrack() domcore.EventHandlerFunc

OnRemoveTrack returning attribute 'onremovetrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*VideoTrackList) SelectedIndex

func (_this *VideoTrackList) SelectedIndex() int

SelectedIndex returning attribute 'selectedIndex' with type int (idl: long).

func (*VideoTrackList) SetOnAddTrack

func (_this *VideoTrackList) SetOnAddTrack(listener func(event *htmlevent.TrackEvent, currentTarget *VideoTrackList)) js.Func

SetOnAddTrack is assigning a function to 'onaddtrack'. This This method is returning allocated javascript function that need to be released.

func (*VideoTrackList) SetOnChange

func (_this *VideoTrackList) SetOnChange(listener func(event *domcore.Event, currentTarget *VideoTrackList)) js.Func

SetOnChange is assigning a function to 'onchange'. This This method is returning allocated javascript function that need to be released.

func (*VideoTrackList) SetOnRemoveTrack

func (_this *VideoTrackList) SetOnRemoveTrack(listener func(event *htmlevent.TrackEvent, currentTarget *VideoTrackList)) js.Func

SetOnRemoveTrack is assigning a function to 'onremovetrack'. This This method is returning allocated javascript function that need to be released.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL