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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址