Documentation ¶
Overview ¶
Package stream is responsible for creating streams from URLs and retrieving any relevant data such as file type
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMediaTypeUnsupported is the error for an unsupported media type being detected ErrMediaTypeUnsupported = errors.New("This media type is not supported by ep, yet") )
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File contains the information of the file to be streamed, and methods to begin streaming
func (File) GetDecoder ¶
func (f File) GetDecoder() (player.DecodeFunc, error)
GetDecoder returns the audio decoder function for the data type detected. This function first tries to detect the data type, then returns a decode function or an error.
Click to show internal directories.
Click to hide internal directories.