webmplayer

package module
v0.0.0-...-8f0eb0f Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

WebM Player using Ebitengine

Under development. Do not use in production.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	// contains filtered or unexported fields
}

func NewPlayer

func NewPlayer(streams ...io.ReadSeeker) (*Player, error)

func (*Player) AudioChannels

func (p *Player) AudioChannels() int

func (*Player) AudioCodecID

func (p *Player) AudioCodecID() string

func (*Player) AudioDuration

func (p *Player) AudioDuration() time.Duration

func (*Player) AudioSamplingFrequency

func (p *Player) AudioSamplingFrequency() int

func (*Player) Draw

func (p *Player) Draw(screen *ebiten.Image, options *PlayerDrawOptions)

func (*Player) Update

func (p *Player) Update() error

func (*Player) VideoCodecID

func (p *Player) VideoCodecID() string

func (*Player) VideoDuration

func (p *Player) VideoDuration() time.Duration

func (*Player) VideoSize

func (p *Player) VideoSize() (int, int)

type PlayerDrawOptions

type PlayerDrawOptions struct {
	GeoM       ebiten.GeoM
	ColorScale ebiten.ColorScale
	Blend      ebiten.Blend
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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