audio

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EventCanPlay = "audio.event.canplay"
View Source
const EventEnded = "audio.event.ended"
View Source
const EventPause = "audio.event.pause"
View Source
const EventPlay = "audio.event.play"
View Source
const EventSeeked = "audio.event.seeked"
View Source
const EventTimeUpdate = "audio.event.timeupdate"

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	app.Context
}

func Action

func Action(ctx app.Context) *Actions

func (*Actions) CurrentTime

func (ac *Actions) CurrentTime(value float64)

func (*Actions) Pause

func (ac *Actions) Pause()

func (*Actions) Play

func (ac *Actions) Play()

func (*Actions) Src

func (ac *Actions) Src(md *model.Metadata)

func (*Actions) Start

func (ac *Actions) Start(md *model.Metadata)

func (*Actions) Volume added in v0.11.5

func (ac *Actions) Volume(value float64)

type Audio

type Audio struct {
	app.Compo
	goapp.Logging
	// contains filtered or unexported fields
}

func (*Audio) OnMount

func (a *Audio) OnMount(ctx app.Context)

func (*Audio) Render

func (a *Audio) Render() app.UI

type TimeUpdate

type TimeUpdate struct {
	CurrentTime float64
	Duration    float64
}

Jump to

Keyboard shortcuts

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