stream

package
v0.0.0-...-9992a52 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host        string
	Port        int
	Mount       string
	User        string
	Password    string
	Name        string
	URL         string
	Genre       string
	Description string
	Abort       bool
	Connection  net.Conn
	BufferSize  int
	Connected   bool
}

Config holds the information for a stream.

func (*Config) Connect

func (c *Config) Connect(info mpeg.Info) error

Connect connects to the server in the config.

func (Config) Play

func (c Config) Play(filename string) error

Play streams a file from filename.

func (Config) Receive

func (c Config) Receive() ([]byte, error)

Receive returns the response from a c.Connection.

func (*Config) Send

func (c *Config) Send(buffer []byte) error

Send the buffer to the Connection in c.

func (*Config) Stop

func (c *Config) Stop(err error) error

Stop the stream from broadcasting.

Jump to

Keyboard shortcuts

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