streamers

package
Version: v0.0.0-...-cab0b4b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStreamer

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

func (*FileStreamer) Close

func (s *FileStreamer) Close() error

func (*FileStreamer) Read

func (s *FileStreamer) Read(p []byte) (n int, err error)

func (*FileStreamer) Seek

func (s *FileStreamer) Seek(offset int64, whence int) (n int64, err error)

type Streamer

type Streamer interface {
	io.Closer
	io.ReadSeeker
}

func NewFileStreamer

func NewFileStreamer(path string) (streamer Streamer, err error)

func NewTranscodeStreamer

func NewTranscodeStreamer(song *models.Song, codec transcoders.CodecType) (streamer Streamer, err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL