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

package webvtt

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

Package webvtt is video text track like captions, subtitles, chapters for content navigation, and more generally any form of metadata that is time-aligned with audio or video content.

Index

Package Files

doc.go webvtt.go

type AlignSetting Uses

type AlignSetting int

enum: AlignSetting

const (
    StartAlignSetting AlignSetting = iota
    CenterAlignSetting
    EndAlignSetting
    LeftAlignSetting
    RightAlignSetting
)

func AlignSettingFromJS Uses

func AlignSettingFromJS(value js.Value) AlignSetting

AlignSettingFromJS is converting a javascript value into a AlignSetting enum value.

func (*AlignSetting) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (AlignSetting) Value Uses

func (this AlignSetting) Value() string

Value is converting this into javascript defined string value

type AutoKeyword Uses

type AutoKeyword int

enum: AutoKeyword

const (
    AutoAutoKeyword AutoKeyword = iota
)

func AutoKeywordFromJS Uses

func AutoKeywordFromJS(value js.Value) AutoKeyword

AutoKeywordFromJS is converting a javascript value into a AutoKeyword enum value.

func (*AutoKeyword) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (AutoKeyword) Value Uses

func (this AutoKeyword) Value() string

Value is converting this into javascript defined string value

type DirectionSetting Uses

type DirectionSetting int

enum: DirectionSetting

const (
    EmptyString0DirectionSetting DirectionSetting = iota
    RlDirectionSetting
    LrDirectionSetting
)

func DirectionSettingFromJS Uses

func DirectionSettingFromJS(value js.Value) DirectionSetting

DirectionSettingFromJS is converting a javascript value into a DirectionSetting enum value.

func (*DirectionSetting) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (DirectionSetting) Value Uses

func (this DirectionSetting) Value() string

Value is converting this into javascript defined string value

type LineAlignSetting Uses

type LineAlignSetting int

enum: LineAlignSetting

const (
    StartLineAlignSetting LineAlignSetting = iota
    CenterLineAlignSetting
    EndLineAlignSetting
)

func LineAlignSettingFromJS Uses

func LineAlignSettingFromJS(value js.Value) LineAlignSetting

LineAlignSettingFromJS is converting a javascript value into a LineAlignSetting enum value.

func (*LineAlignSetting) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (LineAlignSetting) Value Uses

func (this LineAlignSetting) Value() string

Value is converting this into javascript defined string value

type PositionAlignSetting Uses

type PositionAlignSetting int

enum: PositionAlignSetting

const (
    LineLeftPositionAlignSetting PositionAlignSetting = iota
    CenterPositionAlignSetting
    LineRightPositionAlignSetting
    AutoPositionAlignSetting
)

func PositionAlignSettingFromJS Uses

func PositionAlignSettingFromJS(value js.Value) PositionAlignSetting

PositionAlignSettingFromJS is converting a javascript value into a PositionAlignSetting enum value.

func (*PositionAlignSetting) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PositionAlignSetting) Value Uses

func (this PositionAlignSetting) Value() string

Value is converting this into javascript defined string value

type ScrollSetting Uses

type ScrollSetting int

enum: ScrollSetting

const (
    EmptyString0ScrollSetting ScrollSetting = iota
    UpScrollSetting
)

func ScrollSettingFromJS Uses

func ScrollSettingFromJS(value js.Value) ScrollSetting

ScrollSettingFromJS is converting a javascript value into a ScrollSetting enum value.

func (*ScrollSetting) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (ScrollSetting) Value Uses

func (this ScrollSetting) 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 VTTCue Uses

type VTTCue struct {
    media.TextTrackCue
}

class: VTTCue

func NewVTTCue Uses

func NewVTTCue(startTime float64, endTime float64, text string) (_result *VTTCue)

func VTTCueFromJS Uses

func VTTCueFromJS(value js.Wrapper) *VTTCue

VTTCueFromJS is casting a js.Wrapper into VTTCue.

func (*VTTCue) Align Uses

func (_this *VTTCue) Align() AlignSetting

Align returning attribute 'align' with type AlignSetting (idl: AlignSetting).

func (*VTTCue) GetCueAsHTML Uses

func (_this *VTTCue) GetCueAsHTML() (_result *dom.DocumentFragment)

func (*VTTCue) Line Uses

func (_this *VTTCue) Line() *Union

Line returning attribute 'line' with type Union (idl: Union).

func (*VTTCue) LineAlign Uses

func (_this *VTTCue) LineAlign() LineAlignSetting

LineAlign returning attribute 'lineAlign' with type LineAlignSetting (idl: LineAlignSetting).

func (*VTTCue) Position Uses

func (_this *VTTCue) Position() *Union

Position returning attribute 'position' with type Union (idl: Union).

func (*VTTCue) PositionAlign Uses

func (_this *VTTCue) PositionAlign() PositionAlignSetting

PositionAlign returning attribute 'positionAlign' with type PositionAlignSetting (idl: PositionAlignSetting).

func (*VTTCue) Region Uses

func (_this *VTTCue) Region() *VTTRegion

Region returning attribute 'region' with type VTTRegion (idl: VTTRegion).

func (*VTTCue) SetAlign Uses

func (_this *VTTCue) SetAlign(value AlignSetting)

SetAlign setting attribute 'align' with type AlignSetting (idl: AlignSetting).

func (*VTTCue) SetLine Uses

func (_this *VTTCue) SetLine(value *Union)

SetLine setting attribute 'line' with type Union (idl: Union).

func (*VTTCue) SetLineAlign Uses

func (_this *VTTCue) SetLineAlign(value LineAlignSetting)

SetLineAlign setting attribute 'lineAlign' with type LineAlignSetting (idl: LineAlignSetting).

func (*VTTCue) SetPosition Uses

func (_this *VTTCue) SetPosition(value *Union)

SetPosition setting attribute 'position' with type Union (idl: Union).

func (*VTTCue) SetPositionAlign Uses

func (_this *VTTCue) SetPositionAlign(value PositionAlignSetting)

SetPositionAlign setting attribute 'positionAlign' with type PositionAlignSetting (idl: PositionAlignSetting).

func (*VTTCue) SetRegion Uses

func (_this *VTTCue) SetRegion(value *VTTRegion)

SetRegion setting attribute 'region' with type VTTRegion (idl: VTTRegion).

func (*VTTCue) SetSize Uses

func (_this *VTTCue) SetSize(value float64)

SetSize setting attribute 'size' with type float64 (idl: double).

func (*VTTCue) SetSnapToLines Uses

func (_this *VTTCue) SetSnapToLines(value bool)

SetSnapToLines setting attribute 'snapToLines' with type bool (idl: boolean).

func (*VTTCue) SetText Uses

func (_this *VTTCue) SetText(value string)

SetText setting attribute 'text' with type string (idl: DOMString).

func (*VTTCue) SetVertical Uses

func (_this *VTTCue) SetVertical(value DirectionSetting)

SetVertical setting attribute 'vertical' with type DirectionSetting (idl: DirectionSetting).

func (*VTTCue) Size Uses

func (_this *VTTCue) Size() float64

Size returning attribute 'size' with type float64 (idl: double).

func (*VTTCue) SnapToLines Uses

func (_this *VTTCue) SnapToLines() bool

SnapToLines returning attribute 'snapToLines' with type bool (idl: boolean).

func (*VTTCue) Text Uses

func (_this *VTTCue) Text() string

Text returning attribute 'text' with type string (idl: DOMString).

func (*VTTCue) Vertical Uses

func (_this *VTTCue) Vertical() DirectionSetting

Vertical returning attribute 'vertical' with type DirectionSetting (idl: DirectionSetting).

type VTTRegion Uses

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

class: VTTRegion

func NewVTTRegion Uses

func NewVTTRegion() (_result *VTTRegion)

func VTTRegionFromJS Uses

func VTTRegionFromJS(value js.Wrapper) *VTTRegion

VTTRegionFromJS is casting a js.Wrapper into VTTRegion.

func (*VTTRegion) Id Uses

func (_this *VTTRegion) Id() string

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

func (*VTTRegion) JSValue Uses

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

func (*VTTRegion) Lines Uses

func (_this *VTTRegion) Lines() uint

Lines returning attribute 'lines' with type uint (idl: unsigned long).

func (*VTTRegion) RegionAnchorX Uses

func (_this *VTTRegion) RegionAnchorX() float64

RegionAnchorX returning attribute 'regionAnchorX' with type float64 (idl: double).

func (*VTTRegion) RegionAnchorY Uses

func (_this *VTTRegion) RegionAnchorY() float64

RegionAnchorY returning attribute 'regionAnchorY' with type float64 (idl: double).

func (*VTTRegion) Scroll Uses

func (_this *VTTRegion) Scroll() ScrollSetting

Scroll returning attribute 'scroll' with type ScrollSetting (idl: ScrollSetting).

func (*VTTRegion) SetId Uses

func (_this *VTTRegion) SetId(value string)

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

func (*VTTRegion) SetLines Uses

func (_this *VTTRegion) SetLines(value uint)

SetLines setting attribute 'lines' with type uint (idl: unsigned long).

func (*VTTRegion) SetRegionAnchorX Uses

func (_this *VTTRegion) SetRegionAnchorX(value float64)

SetRegionAnchorX setting attribute 'regionAnchorX' with type float64 (idl: double).

func (*VTTRegion) SetRegionAnchorY Uses

func (_this *VTTRegion) SetRegionAnchorY(value float64)

SetRegionAnchorY setting attribute 'regionAnchorY' with type float64 (idl: double).

func (*VTTRegion) SetScroll Uses

func (_this *VTTRegion) SetScroll(value ScrollSetting)

SetScroll setting attribute 'scroll' with type ScrollSetting (idl: ScrollSetting).

func (*VTTRegion) SetViewportAnchorX Uses

func (_this *VTTRegion) SetViewportAnchorX(value float64)

SetViewportAnchorX setting attribute 'viewportAnchorX' with type float64 (idl: double).

func (*VTTRegion) SetViewportAnchorY Uses

func (_this *VTTRegion) SetViewportAnchorY(value float64)

SetViewportAnchorY setting attribute 'viewportAnchorY' with type float64 (idl: double).

func (*VTTRegion) SetWidth Uses

func (_this *VTTRegion) SetWidth(value float64)

SetWidth setting attribute 'width' with type float64 (idl: double).

func (*VTTRegion) ViewportAnchorX Uses

func (_this *VTTRegion) ViewportAnchorX() float64

ViewportAnchorX returning attribute 'viewportAnchorX' with type float64 (idl: double).

func (*VTTRegion) ViewportAnchorY Uses

func (_this *VTTRegion) ViewportAnchorY() float64

ViewportAnchorY returning attribute 'viewportAnchorY' with type float64 (idl: double).

func (*VTTRegion) Width Uses

func (_this *VTTRegion) Width() float64

Width returning attribute 'width' with type float64 (idl: double).

Package webvtt imports 3 packages (graph). Updated 2019-09-16. Refresh now. Tools for package owners.