streamSources

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseStreamSource

type BaseStreamSource struct {
	StreamSource
	// contains filtered or unexported fields
}

func (*BaseStreamSource) Active

func (stream *BaseStreamSource) Active() bool

func (*BaseStreamSource) HealthCheck

func (stream *BaseStreamSource) HealthCheck() error

func (*BaseStreamSource) IsRadio

func (stream *BaseStreamSource) IsRadio() bool

func (*BaseStreamSource) M3UTags

func (stream *BaseStreamSource) M3UTags() m3uparser.M3UTags

func (*BaseStreamSource) MediaName

func (stream *BaseStreamSource) MediaName() string

func (*BaseStreamSource) MediaType

func (stream *BaseStreamSource) MediaType() contenttype.MediaType

func (*BaseStreamSource) Url

func (stream *BaseStreamSource) Url() string

type M3UStreamSource

type M3UStreamSource struct {
	BaseStreamSource
}

func (*M3UStreamSource) MasterPlaylist

func (stream *M3UStreamSource) MasterPlaylist() string

func (*M3UStreamSource) ServeManifest added in v0.6.0

func (stream *M3UStreamSource) ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)

func (*M3UStreamSource) ServeMedia added in v0.6.0

func (stream *M3UStreamSource) ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)

type MPDStreamSource

type MPDStreamSource struct {
	BaseStreamSource
}

func (*MPDStreamSource) MasterPlaylist

func (stream *MPDStreamSource) MasterPlaylist() string

func (*MPDStreamSource) ServeManifest added in v0.6.0

func (stream *MPDStreamSource) ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)

func (*MPDStreamSource) ServeMedia added in v0.6.0

func (stream *MPDStreamSource) ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)

type Sources

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

func CreateSources

func CreateSources() Sources

func (*Sources) Active

func (s *Sources) Active() bool

func (*Sources) AddSource

func (s *Sources) AddSource(entry m3uparser.M3UEntry, timeout int) (bool, error)

func (*Sources) GetActiveSource

func (s *Sources) GetActiveSource() StreamSource

func (*Sources) HealthCheck

func (s *Sources) HealthCheck() error

func (*Sources) IsRadio

func (s *Sources) IsRadio() bool

func (*Sources) M3UTags

func (s *Sources) M3UTags() m3uparser.M3UTags

func (*Sources) MasterPlaylist

func (s *Sources) MasterPlaylist() string

func (*Sources) MediaName

func (s *Sources) MediaName() string

func (*Sources) ServeManifest added in v0.6.0

func (s *Sources) ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)

func (*Sources) ServeMedia added in v0.6.0

func (s *Sources) ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)

func (*Sources) SourceExists added in v0.5.0

func (s *Sources) SourceExists(entry m3uparser.M3UEntry) bool

func (*Sources) Sources added in v0.5.0

func (s *Sources) Sources() []StreamSource

type StreamSource

type StreamSource interface {
	ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)
	ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)
	HealthCheck() error
	Active() bool
	MediaType() contenttype.MediaType
	MediaName() string
	MasterPlaylist() string
	M3UTags() m3uparser.M3UTags
	IsRadio() bool
	Url() string
}

Jump to

Keyboard shortcuts

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