webapi: github.com/gowebapi/webapi/html/media Index | Files

package media

import "github.com/gowebapi/webapi/html/media"

Package media contains HTML media related types.

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

Index

Package Files

doc.go media.go

Constants

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
)
const (
    NONE    int = 0
    LOADING int = 1
    LOADED  int = 2
    ERROR   int = 3
)
const (
    MEDIA_ERR_ABORTED           int = 1
    MEDIA_ERR_NETWORK           int = 2
    MEDIA_ERR_DECODE            int = 3
    MEDIA_ERR_SRC_NOT_SUPPORTED int = 4
)

func IsTypeSupported Uses

func IsTypeSupported(_type string) (_result bool)

type AppendMode Uses

type AppendMode int

enum: AppendMode

const (
    SegmentsAppendMode AppendMode = iota
    SequenceAppendMode
)

func AppendModeFromJS Uses

func AppendModeFromJS(value js.Value) AppendMode

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

func (*AppendMode) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (AppendMode) Value Uses

func (this AppendMode) Value() string

Value is converting this into javascript defined string value

type AudioTrack Uses

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

class: AudioTrack

func AudioTrackFromJS Uses

func AudioTrackFromJS(value js.Wrapper) *AudioTrack

AudioTrackFromJS is casting a js.Wrapper into AudioTrack.

func (*AudioTrack) Enabled Uses

func (_this *AudioTrack) Enabled() bool

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

func (*AudioTrack) Id Uses

func (_this *AudioTrack) Id() string

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

func (*AudioTrack) JSValue Uses

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

func (*AudioTrack) Kind Uses

func (_this *AudioTrack) Kind() string

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

func (*AudioTrack) Label Uses

func (_this *AudioTrack) Label() string

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

func (*AudioTrack) Language Uses

func (_this *AudioTrack) Language() string

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

func (*AudioTrack) SetEnabled Uses

func (_this *AudioTrack) SetEnabled(value bool)

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

func (*AudioTrack) SourceBuffer Uses

func (_this *AudioTrack) SourceBuffer() *SourceBuffer

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

type AudioTrackList Uses

type AudioTrackList struct {
    domcore.EventTarget
}

class: AudioTrackList

func AudioTrackListFromJS Uses

func AudioTrackListFromJS(value js.Wrapper) *AudioTrackList

AudioTrackListFromJS is casting a js.Wrapper into AudioTrackList.

func (*AudioTrackList) AddEventAddTrack Uses

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 Uses

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 Uses

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 Uses

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

func (*AudioTrackList) Index Uses

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

func (*AudioTrackList) Length Uses

func (_this *AudioTrackList) Length() uint

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

func (*AudioTrackList) OnAddTrack Uses

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

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

func (*AudioTrackList) OnChange Uses

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

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

func (*AudioTrackList) OnRemoveTrack Uses

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

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

func (*AudioTrackList) SetOnAddTrack Uses

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 Uses

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 Uses

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 Uses

type CanPlayTypeResult int

enum: CanPlayTypeResult

const (
    EmptyString0CanPlayTypeResult CanPlayTypeResult = iota
    MaybeCanPlayTypeResult
    ProbablyCanPlayTypeResult
)

func CanPlayTypeResultFromJS Uses

func CanPlayTypeResultFromJS(value js.Value) CanPlayTypeResult

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

func (*CanPlayTypeResult) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (CanPlayTypeResult) Value Uses

func (this CanPlayTypeResult) Value() string

Value is converting this into javascript defined string value

type EndOfStreamError Uses

type EndOfStreamError int

enum: EndOfStreamError

const (
    NetworkEndOfStreamError EndOfStreamError = iota
    DecodeEndOfStreamError
)

func EndOfStreamErrorFromJS Uses

func EndOfStreamErrorFromJS(value js.Value) EndOfStreamError

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

func (*EndOfStreamError) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (EndOfStreamError) Value Uses

func (this EndOfStreamError) Value() string

Value is converting this into javascript defined string value

type HTMLAudioElement Uses

type HTMLAudioElement struct {
    HTMLMediaElement
}

class: HTMLAudioElement

func HTMLAudioElementFromJS Uses

func HTMLAudioElementFromJS(value js.Wrapper) *HTMLAudioElement

HTMLAudioElementFromJS is casting a js.Wrapper into HTMLAudioElement.

type HTMLMediaElement Uses

type HTMLMediaElement struct {
    html.HTMLElement
}

class: HTMLMediaElement

func HTMLMediaElementFromJS Uses

func HTMLMediaElementFromJS(value js.Wrapper) *HTMLMediaElement

HTMLMediaElementFromJS is casting a js.Wrapper into HTMLMediaElement.

func (*HTMLMediaElement) AddEventEncrypted Uses

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 Uses

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 Uses

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

func (*HTMLMediaElement) AudioTracks Uses

func (_this *HTMLMediaElement) AudioTracks() *AudioTrackList

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

func (*HTMLMediaElement) Autoplay Uses

func (_this *HTMLMediaElement) Autoplay() bool

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

func (*HTMLMediaElement) Buffered Uses

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

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

func (*HTMLMediaElement) CanPlayType Uses

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

func (*HTMLMediaElement) CaptureStream Uses

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

func (*HTMLMediaElement) Controls Uses

func (_this *HTMLMediaElement) Controls() bool

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

func (*HTMLMediaElement) CrossOrigin Uses

func (_this *HTMLMediaElement) CrossOrigin() *string

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

func (*HTMLMediaElement) CurrentSrc Uses

func (_this *HTMLMediaElement) CurrentSrc() string

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

func (*HTMLMediaElement) CurrentTime Uses

func (_this *HTMLMediaElement) CurrentTime() float64

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

func (*HTMLMediaElement) DefaultMuted Uses

func (_this *HTMLMediaElement) DefaultMuted() bool

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

func (*HTMLMediaElement) DefaultPlaybackRate Uses

func (_this *HTMLMediaElement) DefaultPlaybackRate() float64

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

func (*HTMLMediaElement) DisableRemotePlayback Uses

func (_this *HTMLMediaElement) DisableRemotePlayback() bool

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

func (*HTMLMediaElement) Duration Uses

func (_this *HTMLMediaElement) Duration() float64

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

func (*HTMLMediaElement) Ended Uses

func (_this *HTMLMediaElement) Ended() bool

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

func (*HTMLMediaElement) Error Uses

func (_this *HTMLMediaElement) Error() *MediaError

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

func (*HTMLMediaElement) FastSeek Uses

func (_this *HTMLMediaElement) FastSeek(time float64)

func (*HTMLMediaElement) GetStartDate Uses

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

func (*HTMLMediaElement) Load Uses

func (_this *HTMLMediaElement) Load()

func (*HTMLMediaElement) Loop Uses

func (_this *HTMLMediaElement) Loop() bool

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

func (*HTMLMediaElement) MediaKeys Uses

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

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

func (*HTMLMediaElement) Muted Uses

func (_this *HTMLMediaElement) Muted() bool

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

func (*HTMLMediaElement) NetworkState Uses

func (_this *HTMLMediaElement) NetworkState() int

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

func (*HTMLMediaElement) OnEncrypted Uses

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

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

func (*HTMLMediaElement) OnWaitingForKey Uses

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

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

func (*HTMLMediaElement) Pause Uses

func (_this *HTMLMediaElement) Pause()

func (*HTMLMediaElement) Paused Uses

func (_this *HTMLMediaElement) Paused() bool

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

func (*HTMLMediaElement) Play Uses

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

func (*HTMLMediaElement) PlaybackRate Uses

func (_this *HTMLMediaElement) PlaybackRate() float64

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

func (*HTMLMediaElement) Played Uses

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

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

func (*HTMLMediaElement) Preload Uses

func (_this *HTMLMediaElement) Preload() string

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

func (*HTMLMediaElement) ReadyState Uses

func (_this *HTMLMediaElement) ReadyState() int

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

func (*HTMLMediaElement) Remote Uses

func (_this *HTMLMediaElement) Remote() *remoteplayback.RemotePlayback

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

func (*HTMLMediaElement) Seekable Uses

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

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

func (*HTMLMediaElement) Seeking Uses

func (_this *HTMLMediaElement) Seeking() bool

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

func (*HTMLMediaElement) SetAutoplay Uses

func (_this *HTMLMediaElement) SetAutoplay(value bool)

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

func (*HTMLMediaElement) SetControls Uses

func (_this *HTMLMediaElement) SetControls(value bool)

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

func (*HTMLMediaElement) SetCrossOrigin Uses

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

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

func (*HTMLMediaElement) SetCurrentTime Uses

func (_this *HTMLMediaElement) SetCurrentTime(value float64)

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

func (*HTMLMediaElement) SetDefaultMuted Uses

func (_this *HTMLMediaElement) SetDefaultMuted(value bool)

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

func (*HTMLMediaElement) SetDefaultPlaybackRate Uses

func (_this *HTMLMediaElement) SetDefaultPlaybackRate(value float64)

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

func (*HTMLMediaElement) SetDisableRemotePlayback Uses

func (_this *HTMLMediaElement) SetDisableRemotePlayback(value bool)

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

func (*HTMLMediaElement) SetLoop Uses

func (_this *HTMLMediaElement) SetLoop(value bool)

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

func (*HTMLMediaElement) SetMediaKeys Uses

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

func (*HTMLMediaElement) SetMuted Uses

func (_this *HTMLMediaElement) SetMuted(value bool)

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

func (*HTMLMediaElement) SetOnEncrypted Uses

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 Uses

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 Uses

func (_this *HTMLMediaElement) SetPlaybackRate(value float64)

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

func (*HTMLMediaElement) SetPreload Uses

func (_this *HTMLMediaElement) SetPreload(value string)

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

func (*HTMLMediaElement) SetSinkId Uses

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

func (*HTMLMediaElement) SetSrc Uses

func (_this *HTMLMediaElement) SetSrc(value string)

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

func (*HTMLMediaElement) SetSrcObject Uses

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

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

func (*HTMLMediaElement) SetVolume Uses

func (_this *HTMLMediaElement) SetVolume(value float64)

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

func (*HTMLMediaElement) SinkId Uses

func (_this *HTMLMediaElement) SinkId() string

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

func (*HTMLMediaElement) Src Uses

func (_this *HTMLMediaElement) Src() string

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

func (*HTMLMediaElement) SrcObject Uses

func (_this *HTMLMediaElement) SrcObject() *Union

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

func (*HTMLMediaElement) TextTracks Uses

func (_this *HTMLMediaElement) TextTracks() *TextTrackList

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

func (*HTMLMediaElement) VideoTracks Uses

func (_this *HTMLMediaElement) VideoTracks() *VideoTrackList

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

func (*HTMLMediaElement) Volume Uses

func (_this *HTMLMediaElement) Volume() float64

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

type HTMLTrackElement Uses

type HTMLTrackElement struct {
    html.HTMLElement
}

class: HTMLTrackElement

func HTMLTrackElementFromJS Uses

func HTMLTrackElementFromJS(value js.Wrapper) *HTMLTrackElement

HTMLTrackElementFromJS is casting a js.Wrapper into HTMLTrackElement.

func (*HTMLTrackElement) Default Uses

func (_this *HTMLTrackElement) Default() bool

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

func (*HTMLTrackElement) Kind Uses

func (_this *HTMLTrackElement) Kind() string

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

func (*HTMLTrackElement) Label Uses

func (_this *HTMLTrackElement) Label() string

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

func (*HTMLTrackElement) ReadyState Uses

func (_this *HTMLTrackElement) ReadyState() int

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

func (*HTMLTrackElement) SetDefault Uses

func (_this *HTMLTrackElement) SetDefault(value bool)

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

func (*HTMLTrackElement) SetKind Uses

func (_this *HTMLTrackElement) SetKind(value string)

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

func (*HTMLTrackElement) SetLabel Uses

func (_this *HTMLTrackElement) SetLabel(value string)

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

func (*HTMLTrackElement) SetSrc Uses

func (_this *HTMLTrackElement) SetSrc(value string)

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

func (*HTMLTrackElement) SetSrclang Uses

func (_this *HTMLTrackElement) SetSrclang(value string)

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

func (*HTMLTrackElement) Src Uses

func (_this *HTMLTrackElement) Src() string

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

func (*HTMLTrackElement) Srclang Uses

func (_this *HTMLTrackElement) Srclang() string

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

func (*HTMLTrackElement) Track Uses

func (_this *HTMLTrackElement) Track() *TextTrack

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

type HTMLVideoElement Uses

type HTMLVideoElement struct {
    HTMLMediaElement
}

class: HTMLVideoElement

func HTMLVideoElementFromJS Uses

func HTMLVideoElementFromJS(value js.Wrapper) *HTMLVideoElement

HTMLVideoElementFromJS is casting a js.Wrapper into HTMLVideoElement.

func (*HTMLVideoElement) AddEventEnterPictureInPicture Uses

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 Uses

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 Uses

func (_this *HTMLVideoElement) AutoPictureInPicture() bool

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

func (*HTMLVideoElement) DisablePictureInPicture Uses

func (_this *HTMLVideoElement) DisablePictureInPicture() bool

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

func (*HTMLVideoElement) Height Uses

func (_this *HTMLVideoElement) Height() uint

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

func (*HTMLVideoElement) OnEnterPictureInPicture Uses

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

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

func (*HTMLVideoElement) OnLeavePictureInPicture Uses

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

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

func (*HTMLVideoElement) PlaysInline Uses

func (_this *HTMLVideoElement) PlaysInline() bool

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

func (*HTMLVideoElement) Poster Uses

func (_this *HTMLVideoElement) Poster() string

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

func (*HTMLVideoElement) RequestPictureInPicture Uses

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

func (*HTMLVideoElement) SetAutoPictureInPicture Uses

func (_this *HTMLVideoElement) SetAutoPictureInPicture(value bool)

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

func (*HTMLVideoElement) SetDisablePictureInPicture Uses

func (_this *HTMLVideoElement) SetDisablePictureInPicture(value bool)

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

func (*HTMLVideoElement) SetHeight Uses

func (_this *HTMLVideoElement) SetHeight(value uint)

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

func (*HTMLVideoElement) SetOnEnterPictureInPicture Uses

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 Uses

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 Uses

func (_this *HTMLVideoElement) SetPlaysInline(value bool)

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

func (*HTMLVideoElement) SetPoster Uses

func (_this *HTMLVideoElement) SetPoster(value string)

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

func (*HTMLVideoElement) SetWidth Uses

func (_this *HTMLVideoElement) SetWidth(value uint)

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

func (*HTMLVideoElement) VideoHeight Uses

func (_this *HTMLVideoElement) VideoHeight() uint

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

func (*HTMLVideoElement) VideoWidth Uses

func (_this *HTMLVideoElement) VideoWidth() uint

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

func (*HTMLVideoElement) Width Uses

func (_this *HTMLVideoElement) Width() uint

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

type MediaError Uses

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

class: MediaError

func MediaErrorFromJS Uses

func MediaErrorFromJS(value js.Wrapper) *MediaError

MediaErrorFromJS is casting a js.Wrapper into MediaError.

func (*MediaError) Code Uses

func (_this *MediaError) Code() int

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

func (*MediaError) JSValue Uses

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

func (*MediaError) Message Uses

func (_this *MediaError) Message() string

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

type MediaSource Uses

type MediaSource struct {
    domcore.EventTarget
}

class: MediaSource

func MediaSourceFromJS Uses

func MediaSourceFromJS(value js.Wrapper) *MediaSource

MediaSourceFromJS is casting a js.Wrapper into MediaSource.

func NewMediaSource Uses

func NewMediaSource() (_result *MediaSource)

func (*MediaSource) ActiveSourceBuffers Uses

func (_this *MediaSource) ActiveSourceBuffers() *SourceBufferList

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

func (*MediaSource) AddEventSourceClose Uses

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 Uses

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 Uses

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 Uses

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

func (*MediaSource) ClearLiveSeekableRange Uses

func (_this *MediaSource) ClearLiveSeekableRange()

func (*MediaSource) Duration Uses

func (_this *MediaSource) Duration() float64

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

func (*MediaSource) EndOfStream Uses

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

func (*MediaSource) OnSourceClose Uses

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

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

func (*MediaSource) OnSourceEnded Uses

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

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

func (*MediaSource) OnSourceOpen Uses

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

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

func (*MediaSource) ReadyState Uses

func (_this *MediaSource) ReadyState() ReadyState

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

func (*MediaSource) RemoveSourceBuffer Uses

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

func (*MediaSource) SetDuration Uses

func (_this *MediaSource) SetDuration(value float64)

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

func (*MediaSource) SetLiveSeekableRange Uses

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

func (*MediaSource) SetOnSourceClose Uses

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 Uses

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 Uses

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 Uses

func (_this *MediaSource) SourceBuffers() *SourceBufferList

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

type ReadyState Uses

type ReadyState int

enum: ReadyState

const (
    ClosedReadyState ReadyState = iota
    OpenReadyState
    EndedReadyState
)

func ReadyStateFromJS Uses

func ReadyStateFromJS(value js.Value) ReadyState

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

func (*ReadyState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (ReadyState) Value Uses

func (this ReadyState) Value() string

Value is converting this into javascript defined string value

type SourceBuffer Uses

type SourceBuffer struct {
    domcore.EventTarget
}

class: SourceBuffer

func SourceBufferFromJS Uses

func SourceBufferFromJS(value js.Wrapper) *SourceBuffer

SourceBufferFromJS is casting a js.Wrapper into SourceBuffer.

func (*SourceBuffer) Abort Uses

func (_this *SourceBuffer) Abort()

func (*SourceBuffer) AddEventAbort Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*SourceBuffer) AppendWindowEnd Uses

func (_this *SourceBuffer) AppendWindowEnd() float64

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

func (*SourceBuffer) AppendWindowStart Uses

func (_this *SourceBuffer) AppendWindowStart() float64

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

func (*SourceBuffer) AudioTracks Uses

func (_this *SourceBuffer) AudioTracks() *AudioTrackList

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

func (*SourceBuffer) Buffered Uses

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

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

func (*SourceBuffer) Mode Uses

func (_this *SourceBuffer) Mode() AppendMode

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

func (*SourceBuffer) OnAbort Uses

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

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

func (*SourceBuffer) OnError Uses

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

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

func (*SourceBuffer) OnUpdate Uses

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

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

func (*SourceBuffer) OnUpdateEnd Uses

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

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

func (*SourceBuffer) OnUpdateStart Uses

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

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

func (*SourceBuffer) Remove Uses

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

func (*SourceBuffer) SetAppendWindowEnd Uses

func (_this *SourceBuffer) SetAppendWindowEnd(value float64)

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

func (*SourceBuffer) SetAppendWindowStart Uses

func (_this *SourceBuffer) SetAppendWindowStart(value float64)

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

func (*SourceBuffer) SetMode Uses

func (_this *SourceBuffer) SetMode(value AppendMode)

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

func (*SourceBuffer) SetOnAbort Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (_this *SourceBuffer) SetTimestampOffset(value float64)

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

func (*SourceBuffer) TextTracks Uses

func (_this *SourceBuffer) TextTracks() *TextTrackList

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

func (*SourceBuffer) TimestampOffset Uses

func (_this *SourceBuffer) TimestampOffset() float64

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

func (*SourceBuffer) Updating Uses

func (_this *SourceBuffer) Updating() bool

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

func (*SourceBuffer) VideoTracks Uses

func (_this *SourceBuffer) VideoTracks() *VideoTrackList

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

type SourceBufferList Uses

type SourceBufferList struct {
    domcore.EventTarget
}

class: SourceBufferList

func SourceBufferListFromJS Uses

func SourceBufferListFromJS(value js.Wrapper) *SourceBufferList

SourceBufferListFromJS is casting a js.Wrapper into SourceBufferList.

func (*SourceBufferList) AddEventAddSourceBuffer Uses

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 Uses

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 Uses

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

func (*SourceBufferList) Length Uses

func (_this *SourceBufferList) Length() uint

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

func (*SourceBufferList) OnAddSourceBuffer Uses

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

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

func (*SourceBufferList) OnRemoveSourceBuffer Uses

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

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

func (*SourceBufferList) SetOnAddSourceBuffer Uses

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 Uses

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 Uses

type TextTrack struct {
    domcore.EventTarget
}

class: TextTrack

func TextTrackFromJS Uses

func TextTrackFromJS(value js.Wrapper) *TextTrack

TextTrackFromJS is casting a js.Wrapper into TextTrack.

func (*TextTrack) ActiveCues Uses

func (_this *TextTrack) ActiveCues() *TextTrackCueList

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

func (*TextTrack) AddCue Uses

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

func (*TextTrack) AddEventCueChange Uses

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 Uses

func (_this *TextTrack) Cues() *TextTrackCueList

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

func (*TextTrack) Id Uses

func (_this *TextTrack) Id() string

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

func (*TextTrack) InBandMetadataTrackDispatchType Uses

func (_this *TextTrack) InBandMetadataTrackDispatchType() string

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

func (*TextTrack) Kind Uses

func (_this *TextTrack) Kind() TextTrackKind

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

func (*TextTrack) Label Uses

func (_this *TextTrack) Label() string

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

func (*TextTrack) Language Uses

func (_this *TextTrack) Language() string

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

func (*TextTrack) Mode Uses

func (_this *TextTrack) Mode() TextTrackMode

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

func (*TextTrack) OnCueChange Uses

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

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

func (*TextTrack) RemoveCue Uses

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

func (*TextTrack) SetMode Uses

func (_this *TextTrack) SetMode(value TextTrackMode)

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

func (*TextTrack) SetOnCueChange Uses

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 Uses

func (_this *TextTrack) SourceBuffer() *SourceBuffer

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

type TextTrackCue Uses

type TextTrackCue struct {
    domcore.EventTarget
}

class: TextTrackCue

func TextTrackCueFromJS Uses

func TextTrackCueFromJS(value js.Wrapper) *TextTrackCue

TextTrackCueFromJS is casting a js.Wrapper into TextTrackCue.

func (*TextTrackCue) AddEventEnter Uses

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 Uses

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 Uses

func (_this *TextTrackCue) EndTime() float64

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

func (*TextTrackCue) Id Uses

func (_this *TextTrackCue) Id() string

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

func (*TextTrackCue) OnEnter Uses

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

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

func (*TextTrackCue) OnExit Uses

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

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

func (*TextTrackCue) PauseOnExit Uses

func (_this *TextTrackCue) PauseOnExit() bool

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

func (*TextTrackCue) SetEndTime Uses

func (_this *TextTrackCue) SetEndTime(value float64)

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

func (*TextTrackCue) SetId Uses

func (_this *TextTrackCue) SetId(value string)

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

func (*TextTrackCue) SetOnEnter Uses

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 Uses

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 Uses

func (_this *TextTrackCue) SetPauseOnExit(value bool)

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

func (*TextTrackCue) SetStartTime Uses

func (_this *TextTrackCue) SetStartTime(value float64)

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

func (*TextTrackCue) StartTime Uses

func (_this *TextTrackCue) StartTime() float64

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

func (*TextTrackCue) Track Uses

func (_this *TextTrackCue) Track() *TextTrack

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

type TextTrackCueList Uses

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

class: TextTrackCueList

func TextTrackCueListFromJS Uses

func TextTrackCueListFromJS(value js.Wrapper) *TextTrackCueList

TextTrackCueListFromJS is casting a js.Wrapper into TextTrackCueList.

func (*TextTrackCueList) GetCueById Uses

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

func (*TextTrackCueList) Index Uses

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

func (*TextTrackCueList) JSValue Uses

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

func (*TextTrackCueList) Length Uses

func (_this *TextTrackCueList) Length() uint

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

type TextTrackKind Uses

type TextTrackKind int

enum: TextTrackKind

const (
    SubtitlesTextTrackKind TextTrackKind = iota
    CaptionsTextTrackKind
    DescriptionsTextTrackKind
    ChaptersTextTrackKind
    MetadataTextTrackKind
)

func TextTrackKindFromJS Uses

func TextTrackKindFromJS(value js.Value) TextTrackKind

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

func (*TextTrackKind) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (TextTrackKind) Value Uses

func (this TextTrackKind) Value() string

Value is converting this into javascript defined string value

type TextTrackList Uses

type TextTrackList struct {
    domcore.EventTarget
}

class: TextTrackList

func TextTrackListFromJS Uses

func TextTrackListFromJS(value js.Wrapper) *TextTrackList

TextTrackListFromJS is casting a js.Wrapper into TextTrackList.

func (*TextTrackList) AddEventAddTrack Uses

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 Uses

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 Uses

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 Uses

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

func (*TextTrackList) Index Uses

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

func (*TextTrackList) Length Uses

func (_this *TextTrackList) Length() uint

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

func (*TextTrackList) OnAddTrack Uses

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

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

func (*TextTrackList) OnChange Uses

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

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

func (*TextTrackList) OnRemoveTrack Uses

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

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

func (*TextTrackList) SetOnAddTrack Uses

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 Uses

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 Uses

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 Uses

type TextTrackMode int

enum: TextTrackMode

const (
    DisabledTextTrackMode TextTrackMode = iota
    HiddenTextTrackMode
    ShowingTextTrackMode
)

func TextTrackModeFromJS Uses

func TextTrackModeFromJS(value js.Value) TextTrackMode

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

func (*TextTrackMode) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (TextTrackMode) Value Uses

func (this TextTrackMode) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

type VideoTrack Uses

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

class: VideoTrack

func VideoTrackFromJS Uses

func VideoTrackFromJS(value js.Wrapper) *VideoTrack

VideoTrackFromJS is casting a js.Wrapper into VideoTrack.

func (*VideoTrack) Id Uses

func (_this *VideoTrack) Id() string

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

func (*VideoTrack) JSValue Uses

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

func (*VideoTrack) Kind Uses

func (_this *VideoTrack) Kind() string

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

func (*VideoTrack) Label Uses

func (_this *VideoTrack) Label() string

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

func (*VideoTrack) Language Uses

func (_this *VideoTrack) Language() string

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

func (*VideoTrack) Selected Uses

func (_this *VideoTrack) Selected() bool

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

func (*VideoTrack) SetSelected Uses

func (_this *VideoTrack) SetSelected(value bool)

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

func (*VideoTrack) SourceBuffer Uses

func (_this *VideoTrack) SourceBuffer() *SourceBuffer

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

type VideoTrackList Uses

type VideoTrackList struct {
    domcore.EventTarget
}

class: VideoTrackList

func VideoTrackListFromJS Uses

func VideoTrackListFromJS(value js.Wrapper) *VideoTrackList

VideoTrackListFromJS is casting a js.Wrapper into VideoTrackList.

func (*VideoTrackList) AddEventAddTrack Uses

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 Uses

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 Uses

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 Uses

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

func (*VideoTrackList) Index Uses

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

func (*VideoTrackList) Length Uses

func (_this *VideoTrackList) Length() uint

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

func (*VideoTrackList) OnAddTrack Uses

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

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

func (*VideoTrackList) OnChange Uses

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

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

func (*VideoTrackList) OnRemoveTrack Uses

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

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

func (*VideoTrackList) SelectedIndex Uses

func (_this *VideoTrackList) SelectedIndex() int

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

func (*VideoTrackList) SetOnAddTrack Uses

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 Uses

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 Uses

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.

Package media imports 9 packages (graph) and is imported by 3 packages. Updated 2019-09-16. Refresh now. Tools for package owners.