media

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MP4  = "video/mp4"
	OGG  = "video/ogg"
	WEBM = "video/webm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Track

type Track struct {
	*tinydom.Element
}

func NewTrack

func NewTrack(src, kind, srcLang, label string) *Track

type Video

type Video struct {
	*tinydom.Element
}

func NewVideo

func NewVideo() *Video

func NewVideoParams

func NewVideoParams(
	width, height int,
	autoplay, muted, controls bool,
	sources ...*VideoSource,
) *Video

func (*Video) Height

func (v *Video) Height() (int, error)

func (*Video) Reload

func (v *Video) Reload() *Video

func (*Video) SetAltText

func (v *Video) SetAltText() *Video

func (*Video) SetAutoplay

func (v *Video) SetAutoplay() *Video

func (*Video) SetControl

func (v *Video) SetControl() *Video

func (*Video) SetHeight

func (v *Video) SetHeight(height int) *Video

func (*Video) SetMuted

func (v *Video) SetMuted() *Video

func (*Video) SetSource

func (v *Video) SetSource(source *VideoSource) *Video

func (*Video) SetWidth

func (v *Video) SetWidth(width int) *Video

func (*Video) Width

func (v *Video) Width() (int, error)

type VideoSource

type VideoSource struct {
	Source string
	Type   string
}

Jump to

Keyboard shortcuts

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