player

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL_PLAY_RANDOM = "https://radiooooo.app/play/random"
	URL_PLAY        = "https://radiooooo.app/play"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorInJSON

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

func (ErrorInJSON) Error

func (e ErrorInJSON) Error() string

type ErrorPlayerNotSpecified added in v0.1.3

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

func (ErrorPlayerNotSpecified) Error added in v0.1.3

func (e ErrorPlayerNotSpecified) Error() string

type RadioooooPlayer

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

func New

func New(params *params.Params) (*RadioooooPlayer, error)

func (*RadioooooPlayer) GetNextSong added in v0.1.5

func (r *RadioooooPlayer) GetNextSong() (*Song, error)

func (*RadioooooPlayer) Play

func (r *RadioooooPlayer) Play(song *Song) error

func (*RadioooooPlayer) SetParams

func (r *RadioooooPlayer) SetParams(p *params.Params)

type Song

type Song struct {
	Links   map[string]string
	Artist  string
	Album   string
	Title   string
	Year    string
	Country string
	Mood    string
}

func (*Song) String

func (s *Song) String() string

Jump to

Keyboard shortcuts

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