Documentation
¶
Index ¶
- Constants
- func AddPreload(stream *Stream, rawQuery string) error
- func AppendDOT(dot []byte, stream *Stream) []byte
- func DelPreload(stream *Stream) error
- func Delete(name string)
- func GetAllNames() []string
- func GetAllSources() map[string][]string
- func GetConsumer(url string) (core.Consumer, func(), error)
- func GetProducer(url string) (core.Producer, error)
- func HandleConsumerFunc(scheme string, handler ConsumerHandler)
- func HandleFunc(scheme string, handler Handler)
- func HasProducer(url string) bool
- func Init()
- func Location(url string) (string, error)
- func ParseQuery(s string) url.Values
- func Preload(stream *Stream, rawQuery string)
- func Publish(stream *Stream, destination any)
- func RedirectFunc(scheme string, redirect Redirect)
- func Validate(source string) error
- type ConsumerHandler
- type Handler
- type Producer
- func (p *Producer) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error
- func (p *Producer) Dial() error
- func (p *Producer) GetMedias() []*core.Media
- func (p *Producer) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (p *Producer) MarshalJSON() ([]byte, error)
- func (p *Producer) SetSource(s string)
- type Redirect
- type Stream
- func (s *Stream) AddConsumer(cons core.Consumer) (err error)
- func (s *Stream) AddInternalConsumer(conn core.Consumer)
- func (s *Stream) AddInternalProducer(conn core.Producer)
- func (s *Stream) AddProducer(prod core.Producer)
- func (s *Stream) MarshalJSON() ([]byte, error)
- func (s *Stream) Play(urlOrProd any) error
- func (s *Stream) Publish(url string) error
- func (s *Stream) RemoveConsumer(cons core.Consumer)
- func (s *Stream) RemoveInternalConsumer(conn core.Consumer)
- func (s *Stream) RemoveProducer(prod core.Producer)
- func (s *Stream) SetSource(source string)
- func (s *Stream) Sources() []string
Constants ¶
View Source
const SourceTemplate = "{input}"
Variables ¶
This section is empty.
Functions ¶
func AddPreload ¶ added in v1.9.11
func DelPreload ¶ added in v1.9.11
func GetAllNames ¶ added in v1.9.9
func GetAllNames() []string
func GetAllSources ¶ added in v1.9.9
func HandleConsumerFunc ¶ added in v1.8.0
func HandleConsumerFunc(scheme string, handler ConsumerHandler)
func HandleFunc ¶
func HasProducer ¶
func ParseQuery ¶ added in v1.6.0
func RedirectFunc ¶ added in v1.7.0
Types ¶
type ConsumerHandler ¶ added in v1.8.0
type Producer ¶
func NewProducer ¶ added in v1.6.1
func (*Producer) MarshalJSON ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func GetOrPatch ¶ added in v1.6.1
func (*Stream) AddInternalConsumer ¶
func (*Stream) AddInternalProducer ¶
func (*Stream) AddProducer ¶
func (*Stream) MarshalJSON ¶
func (*Stream) RemoveConsumer ¶
func (*Stream) RemoveInternalConsumer ¶
func (*Stream) RemoveProducer ¶
Click to show internal directories.
Click to hide internal directories.