player

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package playes provides a music player, which also downloads and caches songs from a Subsonic server.

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
}

Player implements a gapless music player, which also downloads and caches songs.

Listen to its events for status updates (playing, paused, play duration, errors, ...).

func NewPlayer

func NewPlayer(cfg config.Config) (Player, error)

func (Player) PlayerCmds

func (p Player) PlayerCmds() chan<- playercom.PlayerCmd

func (Player) PlayerFeedback

func (p Player) PlayerFeedback() <-chan playercom.PlayerFeedback

func (Player) QueueCmds

func (p Player) QueueCmds() chan<- playercom.QueueCmd

func (Player) QueueFeedback

func (p Player) QueueFeedback() <-chan playercom.QueueFeedback

func (Player) Status

func (p Player) Status() <-chan playercom.Status

Directories

Path Synopsis
Package streamplayer provides a gapless music player that works with io.ReadCloser.
Package streamplayer provides a gapless music player that works with io.ReadCloser.

Jump to

Keyboard shortcuts

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