Versions in this module Expand all Collapse all v0 v0.0.13 Nov 7, 2026 Changes in this version + type Player struct + func Open(ctx context.Context, s Source) (*Player, error) + func (p *Player) Close(ctx context.Context) error + func (p *Player) Pause(ctx context.Context) error + func (p *Player) Play(ctx context.Context) error + func (p *Player) Seek(ctx context.Context, seconds float64) error + func (p *Player) SetLoop(ctx context.Context, loop bool) error + func (p *Player) SetRate(ctx context.Context, rate float64) error + func (p *Player) SetVolume(ctx context.Context, volume float64) error + func (p *Player) Status(ctx context.Context) (Status, error) + func (p *Player) Watch(ctx context.Context, f func(Status)) error + type Source struct + Data []byte + Type string + URL string + type Status struct + Duration float64 + Ended bool + Playing bool + Position float64